Added scanlogd, thanks to Stephen Rose for his work
[openwrt/svn-archive/archive.git] / openwrt / package / scanlogd / Makefile
1 # $Id: Makefile,v 1.1 2005/06/11 11:40:04 wbx Exp $
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=scanlogd
6 PKG_VERSION:=2.2.5
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=6b53ad390a51f0835e66b1efa84d710a
9
10 PKG_SOURCE_URL:=http://www.openwall.com/scanlogd/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,SCANLOGD,scanlogd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 $(SED) "s,/var/empty,/tmp/.scanlogd," $(PKG_BUILD_DIR)/params.h
23 touch $@
24
25 $(PKG_BUILD_DIR)/.built:
26 $(MAKE) -C $(PKG_BUILD_DIR) \
27 $(TARGET_CONFIGURE_OPTS) \
28 CC=$(TARGET_CC) LD=$(TARGET_CC) CFLAGS="-c $(TARGET_CFLAGS)" \
29 LDFLAGS= \
30 PCAP_H="-I$(STAGING_DIR)/usr/include" \
31 NIDS_H="-I$(STAGING_DIR)/usr/include" \
32 NIDS_L="-L$(STAGING_DIR)/usr/lib -lnids -lnet -lpcap" \
33 libnids
34 touch $@
35
36 $(IPKG_SCANLOGD):
37 install -d -m0755 $(IDIR_SCANLOGD)/etc/init.d
38 install -m0755 ./files/scanlogd.init $(IDIR_SCANLOGD)/etc/init.d/S60scanlogd
39 install -d -m0755 $(IDIR_SCANLOGD)/usr/sbin
40 install -m0755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_SCANLOGD)/usr/sbin/
41 $(RSTRIP) $(IDIR_SCANLOGD)
42 $(IPKG_BUILD) $(IDIR_SCANLOGD) $(PACKAGE_DIR)