1 # $Id: Makefile,v 1.1 2005/06/11 11:40:04 wbx Exp $
3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=6b53ad390a51f0835e66b1efa84d710a
10 PKG_SOURCE_URL
:=http
://www.openwall.com
/scanlogd
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,SCANLOGD
,scanlogd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
22 $(SED
) "s,/var/empty,/tmp/.scanlogd," $(PKG_BUILD_DIR
)/params.h
23 $(SED
) "s,#undef SCANLOGD_DEVICE,#define SCANLOGD_DEVICE \"all\"," $(PKG_BUILD_DIR
)/params.h
26 $(PKG_BUILD_DIR
)/.built
:
27 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
28 $(TARGET_CONFIGURE_OPTS
) \
29 CC
=$(TARGET_CC
) LD
=$(TARGET_CC
) CFLAGS
="-c $(TARGET_CFLAGS)" \
31 PCAP_H
="-I$(STAGING_DIR)/usr/include" \
32 NIDS_H
="-I$(STAGING_DIR)/usr/include" \
33 NIDS_L
="-L$(STAGING_DIR)/usr/lib -lnids -lnet -lpcap" \
38 install -d
-m0755
$(IDIR_SCANLOGD
)/etc
/init.d
39 install -m0755 .
/files
/scanlogd.init
$(IDIR_SCANLOGD
)/etc
/init.d
/S60scanlogd
40 install -d
-m0755
$(IDIR_SCANLOGD
)/usr
/sbin
41 install -m0755
$(PKG_BUILD_DIR
)/$(PKG_NAME
) $(IDIR_SCANLOGD
)/usr
/sbin
/
42 $(RSTRIP
) $(IDIR_SCANLOGD
)
43 $(IPKG_BUILD
) $(IDIR_SCANLOGD
) $(PACKAGE_DIR
)