diff options
author | Armin Kuster <akuster@mvista.com> | 2014-08-11 16:38:09 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2014-08-27 21:09:40 -0700 |
commit | fa3c8b475c95ae4d5b20d46e3c7143014709e802 (patch) | |
tree | c556dde3632a61ecd4dca4d7c7a0857378fb128d /recipes-security/tripwire | |
parent | 14b15cc2762160b64f63a5092238b0d0ba084b48 (diff) | |
download | meta-security-fa3c8b475c95ae4d5b20d46e3c7143014709e802.tar.gz |
tripwire: Add new package to layer
Signed-off-by: Armin Kuster <akuster@mvista.com>
Diffstat (limited to 'recipes-security/tripwire')
-rw-r--r-- | recipes-security/tripwire/tripwire_2.4.2.2.bb | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/recipes-security/tripwire/tripwire_2.4.2.2.bb b/recipes-security/tripwire/tripwire_2.4.2.2.bb new file mode 100644 index 0000000..ad5363d --- /dev/null +++ b/recipes-security/tripwire/tripwire_2.4.2.2.bb | |||
@@ -0,0 +1,78 @@ | |||
1 | SUMMARY = "Tripwire: A system integrity assessment tool (IDS)" | ||
2 | DESCRIPTION = "Open Source Tripwire® software is a security and data \ | ||
3 | integrity tool useful for monitoring and alerting on specific file change(s) on a range of systems" | ||
4 | HOMEPAGE="http://sourceforge.net/projects/tripwire" | ||
5 | SECTION = "security Monitor/Admin" | ||
6 | LICENSE = "GPLv2" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=1c069be8dbbe48e89b580ab4ed86c127" | ||
8 | |||
9 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}-src/${BPN}-${PV}/${BPN}-${PV}-src.tar.bz2 \ | ||
10 | file://tripwire.cron \ | ||
11 | file://tripwire.sh \ | ||
12 | file://tripwire.txt \ | ||
13 | file://twcfg.txt \ | ||
14 | file://twinstall.sh \ | ||
15 | file://twpol-yocto.txt \ | ||
16 | " | ||
17 | SRC_URI[md5sum] = "2462ea16fb0b5ae810471011ad2f2dd6" | ||
18 | SRC_URI[sha256sum] = "e09a7bdca9302e704cc62067399e0b584488f825b0e58c82ad6d54cd2e899fad" | ||
19 | |||
20 | S = "${WORKDIR}/tripwire-${PV}-src" | ||
21 | |||
22 | inherit autotools-brokensep update-rc.d | ||
23 | |||
24 | INITSCRIPT_NAME = "tripwire" | ||
25 | INITSCRIPT_PARAMS = "start 40 S ." | ||
26 | TRIPWIRE_HOST = "${HOST_SYS}" | ||
27 | TRIPWIRE_TARGET = "${TARGET_SYS}" | ||
28 | |||
29 | CXXFLAGS += "-fno-strict-aliasing" | ||
30 | EXTRA_OECONF = "--disable-openssl --enable-static --sysconfdir=/etc/tripwire" | ||
31 | |||
32 | do_configure () { | ||
33 | # | ||
34 | # sed bits taken from http://www.linuxfromscratch.org/blfs/view/svn/postlfs/tripwire.html | ||
35 | # | ||
36 | sed -i -e 's/!Equal/!this->Equal/' src/cryptlib/algebra.h && | ||
37 | sed -i -e '/stdtwadmin.h/i#include <unistd.h>' src/twadmin/twadmincl.cpp && | ||
38 | sed -i -e 's/eArchiveOpen e\([^)]*)\)/throw ( eArchiveOpen\1 )/' \ | ||
39 | -e '/throw e;/d' src/core/archive.cpp && | ||
40 | |||
41 | oe_runconf | ||
42 | } | ||
43 | |||
44 | do_install () { | ||
45 | install -d ${D}${libdir} ${D}${datadir} ${D}${base_libdir} | ||
46 | install -d ${D}${sysconfdir} ${D}${mandir} ${D}${sbindir} | ||
47 | install -d ${D}${sysconfdir}/${PN} | ||
48 | install -d ${D}${localstatedir}/lib/${PN} ${D}${localstatedir}/lib/${BPN}/report | ||
49 | install -d ${D}${mandir}/man4 ${D}${mandir}/man5 ${D}${mandir}/man8 | ||
50 | install -d ${D}${docdir}/${BPN} ${D}${docdir}/${BPN}/templates | ||
51 | install -d ${D}${sysconfdir}/init.d | ||
52 | |||
53 | install -m 0755 ${S}/bin/* ${D}${sbindir} | ||
54 | install -m 0644 ${S}/lib/* ${D}${base_libdir} | ||
55 | install -m 0644 ${S}/lib/* ${D}${localstatedir}/lib/${PN} | ||
56 | install -m 0755 ${WORKDIR}/tripwire.cron ${D}${sysconfdir} | ||
57 | install -m 0755 ${WORKDIR}/tripwire.sh ${D}${sysconfdir}/init.d/tripwire | ||
58 | install -m 0755 ${WORKDIR}/twinstall.sh ${D}${sysconfdir}/${PN} | ||
59 | install -m 0644 ${WORKDIR}/twpol-yocto.txt ${D}${sysconfdir}/${PN}/twpol.txt | ||
60 | install -m 0644 ${WORKDIR}/twcfg.txt ${D}${sysconfdir}/${PN} | ||
61 | |||
62 | install -m 0644 ${S}/man/man4/* ${D}${mandir}/man4 | ||
63 | install -m 0644 ${S}/man/man5/* ${D}${mandir}/man5 | ||
64 | install -m 0644 ${S}/man/man8/* ${D}${mandir}/man8 | ||
65 | install -m 0644 ${S}/policy/templates/* ${D}${docdir}/${BPN}/templates | ||
66 | install -m 0644 ${S}/policy/*txt ${D}${docdir}/${BPN} | ||
67 | install -m 0644 ${S}/COPYING ${D}${docdir}/${BPN} | ||
68 | install -m 0644 ${S}/TRADEMARK ${D}${docdir}/${BPN} | ||
69 | install -m 0644 ${WORKDIR}/tripwire.txt ${D}${docdir}/${BPN} | ||
70 | } | ||
71 | |||
72 | |||
73 | FILES_${PN} += "${libdir} ${docdir}/${PN}/*" | ||
74 | FILES_${PN}-dbg += "${sysconfdir}/${PN}/.debug" | ||
75 | FILES_${PN}-staticdev += "${localstatedir}/lib/${PN}/lib*.a" | ||
76 | |||
77 | |||
78 | RDEPENDS_${PN} += " perl nano msmtp cronie" | ||