3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=7b8187ea718ebe47f22805b921b909ab
10 PKG_SOURCE_URL
:=http
://www.openwall.com
/scanlogd
/ \
11 ftp
://ftp.wiretapped.net
/pub
/openwall
/ \
12 http
://distro.ibiblio.org
/pub
/linux
/distributions
/openwall
/
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
19 include $(TOPDIR
)/package
/rules.mk
21 $(eval
$(call PKG_template
,SCANLOGD
,scanlogd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(PKG_BUILD_DIR
)/.configured
:
24 $(SED
) "s,/var/empty,/tmp/.scanlogd," $(PKG_BUILD_DIR
)/params.h
25 $(SED
) "s,#undef SCANLOGD_DEVICE,#define SCANLOGD_DEVICE \"all\"," $(PKG_BUILD_DIR
)/params.h
28 $(PKG_BUILD_DIR
)/.built
:
29 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
30 $(TARGET_CONFIGURE_OPTS
) \
31 CC
=$(TARGET_CC
) LD
=$(TARGET_CC
) CFLAGS
="-c $(TARGET_CFLAGS)" \
33 PCAP_H
="-I$(STAGING_DIR)/usr/include" \
34 NIDS_H
="-I$(STAGING_DIR)/usr/include" \
35 NIDS_L
="-L$(STAGING_DIR)/usr/lib -lnids -lnet -lpcap" \
40 install -d
-m0755
$(IDIR_SCANLOGD
)/etc
/init.d
41 install -m0755 .
/files
/scanlogd.init
$(IDIR_SCANLOGD
)/etc
/init.d
/S60scanlogd
42 install -d
-m0755
$(IDIR_SCANLOGD
)/usr
/sbin
43 install -m0755
$(PKG_BUILD_DIR
)/$(PKG_NAME
) $(IDIR_SCANLOGD
)/usr
/sbin
/
44 $(RSTRIP
) $(IDIR_SCANLOGD
)
45 $(IPKG_BUILD
) $(IDIR_SCANLOGD
) $(PACKAGE_DIR
)