diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-02-07 23:00:19 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-02-07 23:00:19 +0000 |
commit | a033ff55aae75af974e6a57d4d1742dc9d132de5 (patch) | |
tree | fa4696e8f60f945833dd8c8b478b0e05c8257681 /package/scanlogd/Makefile | |
parent | 4b53dfd5ab2ec55e9fbf529b3e176a1f63a1bdd1 (diff) |
Added scanlogd, thanks to Stephen Rose for his work
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3186 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/scanlogd/Makefile')
-rw-r--r-- | package/scanlogd/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/package/scanlogd/Makefile b/package/scanlogd/Makefile new file mode 100644 index 0000000000..8f9175a4b4 --- /dev/null +++ b/package/scanlogd/Makefile @@ -0,0 +1,42 @@ +# $Id: Makefile,v 1.1 2005/06/11 11:40:04 wbx Exp $ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=scanlogd +PKG_VERSION:=2.2.5 +PKG_RELEASE:=1 +PKG_MD5SUM:=6b53ad390a51f0835e66b1efa84d710a + +PKG_SOURCE_URL:=http://www.openwall.com/scanlogd/ +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_CAT:=zcat + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +include $(TOPDIR)/package/rules.mk + +$(eval $(call PKG_template,SCANLOGD,scanlogd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) + +$(PKG_BUILD_DIR)/.configured: + $(SED) "s,/var/empty,/tmp/.scanlogd," $(PKG_BUILD_DIR)/params.h + touch $@ + +$(PKG_BUILD_DIR)/.built: + $(MAKE) -C $(PKG_BUILD_DIR) \ + $(TARGET_CONFIGURE_OPTS) \ + 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" \ + libnids + touch $@ + +$(IPKG_SCANLOGD): + install -d -m0755 $(IDIR_SCANLOGD)/etc/init.d + install -m0755 ./files/scanlogd.init $(IDIR_SCANLOGD)/etc/init.d/S60scanlogd + install -d -m0755 $(IDIR_SCANLOGD)/usr/sbin + install -m0755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_SCANLOGD)/usr/sbin/ + $(RSTRIP) $(IDIR_SCANLOGD) + $(IPKG_BUILD) $(IDIR_SCANLOGD) $(PACKAGE_DIR) |