add detail, preprocess and realm sub-packages,
[openwrt.git] / package / arpwatch / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=arpwatch
6 PKG_VERSION:=2.1a11
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=9ecd00db892737431b0e524f3e52e19e
9
10 PKG_SOURCE_URL:=http://nbd.vd-s.ath.cx/openwrt
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
14
15 include $(TOPDIR)/package/rules.mk
16
17 $(eval $(call PKG_template,ARPWATCH,arpwatch,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19 $(PKG_BUILD_DIR)/.configured:
20 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
21 $(TARGET_CONFIGURE_OPTS) \
22 CFLAGS="$(TARGET_CFLAGS)" \
23 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
24 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --program-prefix="" \
30 --program-suffix="" \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --datadir=/usr/share \
35 --includedir=/usr/include \
36 --infodir=/usr/share/info \
37 --libdir=/usr/lib \
38 --libexecdir=/usr/lib \
39 --localstatedir=/var \
40 --mandir=/usr/share/man \
41 --sbindir=/usr/sbin \
42 --sysconfdir=/etc \
43 $(DISABLE_NLS) \
44 $(DISABLE_LARGEFILE) \
45 );
46 touch $@
47
48 $(PKG_BUILD_DIR)/.built:
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 ARPDIR=/etc/arpwatch \
51 CCOPT="$(TARGET_CFLAGS)" \
52 INCLS="-I. -I$(STAGING_DIR)/usr/include" \
53 LIBS="-L$(STAGING_DIR)/usr/lib -lpcap"
54 touch $@
55
56 $(IPKG_ARPWATCH):
57 mkdir -p $(IDIR_ARPWATCH)/usr/sbin
58 cp $(PKG_BUILD_DIR)/arpwatch $(IDIR_ARPWATCH)/usr/sbin/
59 cp $(PKG_BUILD_DIR)/arpsnmp $(IDIR_ARPWATCH)/usr/sbin/
60 $(STRIP) $(IDIR_ARPWATCH)/usr/sbin/*
61 mkdir -p $(IDIR_ARPWATCH)/etc/arpwatch
62 cp $(PKG_BUILD_DIR)/arp.dat $(IDIR_ARPWATCH)/etc/arpwatch/
63 $(IPKG_BUILD) $(IDIR_ARPWATCH) $(PACKAGE_DIR)
This page took 0.04231 seconds and 5 git commands to generate.