1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${TOPDIR}/rules.mk
9 PKG_MD5SUM
:= b1abf3a9fa3486720c9a2b5eff920417
10 PKG_DESCR
:= a flexible Network Intrusion Detection System
(NIDS
)
13 PKG_DEPENDS
:= libnet libpcap libpcre
14 PKG_BUILDDEP
+= libnet libpcap pcre
15 PKG_URL
:= http
://www.snort.org
/
16 PKG_SITES
:= http
://dl.snort.org
/snort-current
/
18 include ${TOPDIR}/mk
/package.mk
20 $(eval
$(call PKG_template
,SNORT
,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
23 CONFIGURE_ARGS
+= --disable-flexresp \
24 --with-libnet-includes
="${STAGING_DIR}/usr/include" \
25 --with-libnet-libraries
="${STAGING_DIR}/usr/lib" \
26 --with-libpcap-includes
="${STAGING_DIR}/usr/include" \
27 --with-libpcap-libraries
="${STAGING_DIR}/usr/lib" \
28 --with-libpcre-includes
="${STAGING_DIR}/usr/include" \
29 --with-libpcre-libraries
="${STAGING_DIR}/usr/lib" \
31 --without-postgresql \
37 ${INSTALL_DIR} ${IDIR_SNORT}/usr
/bin
38 ${INSTALL_DIR} ${IDIR_SNORT}/etc
/snort
39 ${INSTALL_DATA} ${WRKBUILD}/etc
/snort.conf
${IDIR_SNORT}/etc
/snort
/
40 ${INSTALL_DATA} ${WRKBUILD}/etc
/classification.config \
41 ${IDIR_SNORT}/etc
/snort
/
42 ${INSTALL_DATA} ${WRKBUILD}/etc
/gen-msg.map
${IDIR_SNORT}/etc
/snort
/
43 ${INSTALL_DATA} ${WRKBUILD}/etc
/reference.config
${IDIR_SNORT}/etc
/snort
/
44 ${INSTALL_DATA} ${WRKBUILD}/etc
/sid-msg.map
${IDIR_SNORT}/etc
/snort
/
45 ${INSTALL_DATA} ${WRKBUILD}/etc
/threshold.conf
${IDIR_SNORT}/etc
/snort
/
46 ${INSTALL_DATA} ${WRKBUILD}/etc
/unicode.map
${IDIR_SNORT}/etc
/snort
/
47 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/snort
${IDIR_SNORT}/usr
/bin
49 include ${TOPDIR}/mk
/pkg-bottom.mk