blob: 4963d4590ca8185104997eec14321349c986e8c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# $Id$
#-
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
include ${TOPDIR}/rules.mk
PKG_NAME:= scanlogd
PKG_VERSION:= 2.2.6
PKG_RELEASE:= 8
PKG_MD5SUM:= 7b8187ea718ebe47f22805b921b909ab
MASTER_SITES:= http://www.openwall.com/scanlogd/ \
ftp://ftp.wiretapped.net/pub/openwall/ \
http://distro.ibiblio.org/pub/linux/distributions/openwall/
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,SCANLOGD,scanlogd,${PKG_VERSION}-${PKG_RELEASE}))
BUILD_STYLE:= auto
MAKE_FLAGS+= CC="${TARGET_CC}" LD="${TARGET_CC}" CFLAGS="-c ${TARGET_CFLAGS}" \
LDFLAGS= \
PCAP_H="-I${STAGING_DIR}/usr/include" \
NIDS_H="-I${STAGING_DIR}/usr/include" \
NIDS_L="-L${STAGING_DIR}/usr/lib -lnids -lnet -lpcap"
ALL_TARGET:= libnids
do-configure:
${SED} "s,/var/empty,/tmp/.scanlogd," ${WRKBUILD}/params.h
${SED} "s,#undef SCANLOGD_DEVICE,#define SCANLOGD_DEVICE \"all\"," ${WRKBUILD}/params.h
do-install:
${INSTALL_DIR} ${IDIR_SCANLOGD}/etc/init.d
${INSTALL_DIR} ${IDIR_SCANLOGD}/usr/sbin
${INSTALL_BIN} ./files/scanlogd.init \
${IDIR_SCANLOGD}/etc/init.d/${PKG_NAME}
${INSTALL_BIN} ${WRKBUILD}/${PKG_NAME} ${IDIR_SCANLOGD}/usr/sbin/
include ${TOPDIR}/mk/pkg-bottom.mk
|