Actually, something else just occurred to me, too.

[[oe] [meta-networking][PATCH 1/3] snort: add recipe] On 13.09.23 (Mon 17:06) 
b40...@freescale.com wrote:

> diff --git a/meta-networking/recipes-connectivity/snort/files/volatiles 
> b/meta-networking/recipes-connectivity/snort/files/volatiles
> new file mode 100644
> index 0000000..e3ab51d
> --- /dev/null
> +++ b/meta-networking/recipes-connectivity/snort/files/volatiles
> @@ -0,0 +1,2 @@
> +# <type> <owner> <group> <mode> <path> <linksource>
> +d snort snort 0755 /var/log/snort none
> \ No newline at end of file

Since you're going to be in there again anyway, can you fix this, too?

> diff --git a/meta-networking/recipes-connectivity/snort/snort_2.9.4.6.bb 
> b/meta-networking/recipes-connectivity/snort/snort_2.9.4.6.bb
> new file mode 100644
> index 0000000..5a165ef
> --- /dev/null
> +++ b/meta-networking/recipes-connectivity/snort/snort_2.9.4.6.bb
> @@ -0,0 +1,86 @@
> +DESCRIPTION = "snort - a free lightweight network intrusion detection system 
> for UNIX and Windows."
> +HOMEPAGE = "http://www.snort.org/";
> +LICENSE = "GPL"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=78fa8ef966b48fbf9095e13cc92377c5"
> +
> +DEPENDS = "libpcap libpcre daq libdnet"
> +
> +SRC_URI = " ${GENTOO_MIRROR}/${BP}.tar.gz;name=tarball \
> +            file://disable-inaddr-none.patch \
> +            file://disable-dap-address-space-id.patch \ 
> +         file://snort.init \
> +         file://default \
> +            file://logrotate \
> +         file://volatiles \
> +          "

When you go back at this, can you also try to adopt the format laid out
by Peter here:

http://permalink.gmane.org/gmane.comp.handhelds.openembedded.core/41673

And I don't think the ";name=tarball" is required here.  Is it?

-J.

> +SRC_URI[tarball.md5sum] = "4111df01a4f21bd1d328a18b76d625bd"
> +SRC_URI[tarball.sha256sum] = 
> "cfaa5390b1840aaaa68a6c05a7077dd92cb916e6186a014baa451d43cdb0b3bc"
> +
> +inherit autotools  gettext 
> +
> +EXTRA_OECONF = " \
> +     --enable-gre \    
> +     --enable-linux-smp-stats \
> +     --enable-reload \
> +     --enable-reload-error-restart \
> +     --enable-targetbased \
> +     --disable-static-daq \
> +     "
> +
> +do_install_append() {
> +     install -d ${D}/${sysconfdir}/snort/rules
> +     install -d ${D}/${sysconfdir}/snort/preproc_rules
> +     install -d ${D}/${sysconfdir}/default/volatiles
> +     mkdir -p ${D}/${sysconfdir}/init.d
> +     for i in map config conf dtd; do
> +             cp ${S}/etc/*.$i ${D}/${sysconfdir}/snort/
> +     done
> +     cp ${S}/preproc_rules/*.rules ${D}/${sysconfdir}/snort/preproc_rules/
> +     install -m 0644 ${WORKDIR}/default ${D}/${sysconfdir}/default/snort
> +     install -m 0644 ${WORKDIR}/volatiles 
> ${D}/${sysconfdir}/default/volatiles/snort
> +     install -m 0755 ${WORKDIR}/snort.init ${D}/${sysconfdir}/init.d/snort
> +     mkdir -p ${D}/${localstatedir}/log/snort
> +     install -d ${D}${sysconfdir}/logrotate.d
> +     install -m 0644 ${WORKDIR}/logrotate ${D}${sysconfdir}/logrotate.d/snort
> +}
> +
> +pkg_postinst_${PN}() {
> +     grep -q ^snort: /etc/group || addgroup snort
> +     grep -q ^snort: /etc/passwd || \
> +             adduser --disabled-password --home=/var/log/snort/ --system \
> +                     --ingroup snort --no-create-home -g "snort" snort
> +     ${sysconfdir}/init.d/populate-volatile.sh update
> +}
> +
> +PACKAGES =+ "${PN}-logrotate"
> +FILES_${PN}-logrotate = "${sysconfdir}/logrotate.d/snort"
> +FILES_${PN} += " \
> +     ${libdir}/snort_dynamicengine/*.so.* \
> +     ${libdir}/snort_dynamicpreprocessor/*.so.* \
> +     ${libdir}/snort_dynamicrules/*.so.* \
> +     "
> +FILES_${PN}-dbg += " \
> +     ${libdir}/snort_dynamicengine/.debug \
> +     ${libdir}/snort_dynamicpreprocessor/.debug \
> +     ${libdir}/snort_dynamicrules/.debug \
> +     "
> +FILES_${PN}-staticdev += " \
> +     ${libdir}/snort_dynamicengine/*.a \
> +     ${libdir}/snort_dynamicpreprocessor/*.a \
> +     ${libdir}/snort_dynamicrules/*.a \
> +     ${libdir}/snort/dynamic_preproc/*.a \
> +     ${libdir}/snort/dynamic_output/*.a \
> +     "
> +FILES_${PN}-dev += " \
> +     ${libdir}/snort_dynamicengine/*.la \
> +     ${libdir}/snort_dynamicpreprocessor/*.la \
> +     ${libdir}/snort_dynamicrules/*.la \
> +     ${libdir}/snort_dynamicengine/*.so \
> +     ${libdir}/snort_dynamicpreprocessor/*.so \
> +     ${libdir}/snort_dynamicrules/*.so \
> +     ${prefix}/src/snort_dynamicsrc \
> +     "
> +
> +RRECOMMENDS_${PN} += "${PN}-logrotate"
> +RRECOMMENDS_${PN} += "barnyard"
> +RSUGGESTS_${PN}-logrotate += "logrotate"
-- 
-Joe MacDonald.
:wq

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to