preliminary sibyte support
[openwrt.git] / openwrt / package / scanlogd / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=scanlogd
6 PKG_VERSION:=2.2.6
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=7b8187ea718ebe47f22805b921b909ab
9
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
14 PKG_CAT:=zcat
15
16 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
17 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
18
19 include $(TOPDIR)/package/rules.mk
20
21 $(eval $(call PKG_template,SCANLOGD,scanlogd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
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
26 touch $@
27
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)" \
32 LDFLAGS= \
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" \
36 libnids
37 touch $@
38
39 $(IPKG_SCANLOGD):
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)
This page took 0.041854 seconds and 5 git commands to generate.