snort: update to 2.9.20
[openadk.git] / package / snort / Makefile
blob1c044e190c2b0bc848440a1e8cc7f5434ea6b408
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 ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= snort
7 PKG_VERSION:= 2.9.20
8 PKG_RELEASE:= 1
9 PKG_HASH:= 29400e13f53b1831e0b8b10ec1224a1cbaa6dc1533a5322a20dd80bb84b4981c
10 PKG_DESCR:= flexible network intrusion detection system
11 PKG_SECTION:= net/security
12 PKG_DEPENDS:= libnet libpcap libpcre libtirpc daq
13 PKG_BUILDDEP:= libnet libpcap pcre libtirpc daq
14 PKG_URL:= http://www.snort.org/
15 PKG_SITES:= https://www.snort.org/downloads/snort/
16 PKG_NOPARALLEL:= 1
18 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
20 PKG_LIBC_DEPENDS:= uclibc-ng glibc
22 include ${ADK_TOPDIR}/mk/package.mk
24 $(eval $(call PKG_template,SNORT,snort,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
26 AUTOTOOL_STYLE:= autoreconf
27 TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/tirpc
28 TARGET_LDFLAGS+= -ltirpc
29 CONFIGURE_ENV+= have_inaddr_none=yes
30 CONFIGURE_ARGS+= --disable-static-daq \
31 --disable-open-appid \
32 --with-libpcap-includes="${STAGING_TARGET_DIR}/usr/include" \
33 --with-libpcap-libraries="${STAGING_TARGET_DIR}/usr/lib" \
34 --with-libpcre-includes="${STAGING_TARGET_DIR}/usr/include" \
35 --with-libpcre-libraries="${STAGING_TARGET_DIR}/usr/lib" \
36 --with-dnet-includes="${STAGING_TARGET_DIR}/usr/include" \
37 --with-dnet-libraries="${STAGING_TARGET_DIR}/usr/lib"
39 snort-install:
40 ${INSTALL_DIR} ${IDIR_SNORT}/usr/bin
41 ${INSTALL_DIR} ${IDIR_SNORT}/etc/snort
42 ${INSTALL_DATA} ${WRKBUILD}/etc/snort.conf ${IDIR_SNORT}/etc/snort
43 ${INSTALL_DATA} ${WRKBUILD}/etc/classification.config \
44 ${IDIR_SNORT}/etc/snort
45 ${INSTALL_DATA} ${WRKBUILD}/etc/gen-msg.map \
46 ${IDIR_SNORT}/etc/snort
47 ${INSTALL_DATA} ${WRKBUILD}/etc/reference.config \
48 ${IDIR_SNORT}/etc/snort
49 ${INSTALL_DATA} ${WRKBUILD}/etc/threshold.conf \
50 ${IDIR_SNORT}/etc/snort
51 ${INSTALL_DATA} ${WRKBUILD}/etc/unicode.map \
52 ${IDIR_SNORT}/etc/snort
53 ${INSTALL_BIN} ${WRKINST}/usr/bin/snort ${IDIR_SNORT}/usr/bin
55 include ${ADK_TOPDIR}/mk/pkg-bottom.mk