1 DESCRIPTION = "Selection of tools for developers working with Smack"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "Security/Access Control"
10 inherit autotools-brokensep
14 #PROVIDES by smack-dev
23 #PROVIDES by smack-docs
27 #RDEPENDS of smack-dev (${PN}-dev)
28 RDEPENDS_${PN}-dev += "libsmack"
33 DEPENDS_append_class-native = " autoconf-native"
34 DEPENDS_append_class-target = " autoconf-native"
35 DEPENDS += "libtool-cross"
36 DEPENDS_append_class-native = " automake-native"
37 DEPENDS_append_class-target = " automake-native"
41 chmod -Rf a+rX,u+w,g-w,o-w ${S}
43 cp ${S}/packaging/smack.manifest .
48 bb.build.exec_func('do_prep', d)
59 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
60 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
61 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
62 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
65 CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
66 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
67 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
68 autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
69 --target=x86_64-tizen-linux \
72 --exec-prefix=${prefix} \
73 --bindir=${prefix}/bin \
74 --sbindir=${prefix}/sbin \
75 --sysconfdir=${sysconfdir} \
76 --datadir=${prefix}/share \
77 --includedir=${prefix}/include \
78 --libdir=${prefix}/lib \
79 --libexecdir=${prefix}/libexec \
80 --localstatedir=${localstatedir} \
81 --sharedstatedir=${prefix}/com \
83 --infodir=${infodir} --with-systemdsystemunitdir=/lib/systemd/system
92 echo export RPM_BUILD_ROOT=${D}
104 BINDIR=${prefix}/bin \
106 rm -f ${D}${infodir}/dir
107 find ${D} -regex ".*\.la$" | xargs rm -f --
108 find ${D} -regex ".*\.a$" | xargs rm -f --
109 install -d ${D}${sysconfdir}/smack/accesses.d
110 install -d ${D}${sysconfdir}/smack/cipso.d
111 install -d ${D}${sysconfdir}/smack/netlabel.d
116 PACKAGES += " libsmack "
117 PACKAGES += " smack-docs "
120 smack-dev_files += "smack.manifest"
121 smack-dev_files += "${prefix}/include/sys/smack.h"
122 smack-dev_files += "${prefix}/lib/libsmack.so"
123 smack-dev_files += "${prefix}/lib/pkgconfig/libsmack.pc"
126 smack_files += "smack.manifest"
127 smack_files += "${sysconfdir}/smack"
128 smack_files += "${sysconfdir}/smack/accesses.d"
129 smack_files += "${sysconfdir}/smack/cipso.d"
130 smack_files += "${sysconfdir}/smack/netlabel.d"
131 smack_files += "${prefix}/bin/*"
134 libsmack_files += "smack.manifest"
135 libsmack_files += "${prefix}/lib/libsmack.so.*"
137 smack-docs_files = ""
139 FILES_${PN}-dev = "${smack-dev_files}"
140 FILES_${PN} = "${smack_files}"
141 FILES_lib${PN} = "${libsmack_files}"
142 FILES_${PN}-docs = "${smack-docs_files}"
144 PKG_smack-dev= "smack-dev"
146 PKG_libsmack= "libsmack"
147 PKG_smack-docs= "smack-docs"
149 require smack-extraconf.inc