disable mrd6, compile is broken
[openwrt.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 $(SED) "s,#undef SCANLOGD_DEVICE,#define SCANLOGD_DEVICE \"all\"," $(PKG_BUILD_DIR)/params.h
24 touch $@
25
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)" \
30 LDFLAGS= \
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" \
34 libnids
35 touch $@
36
37 $(IPKG_SCANLOGD):
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)
This page took 0.040841 seconds and 5 git commands to generate.