fix madwifi-tools control file
[openwrt.git] / openwrt / package / knock / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=knock
6 PKG_VERSION:=0.5
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=ca09d61458974cff90a700aba6120891
9
10 PKG_SOURCE_URL:=http://www.zeroflux.org/knock/files/
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,KNOCK,knock,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20 $(eval $(call PKG_template,KNOCKD,knockd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22 $(PKG_BUILD_DIR)/.configured:
23 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
26 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
27 ac_cv_lib_pcap_pcap_open_live=yes \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --program-prefix="" \
33 --program-suffix="" \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --datadir=/usr/share \
38 --includedir=/usr/include \
39 --infodir=/usr/share/info \
40 --libdir=/usr/lib \
41 --libexecdir=/usr/lib \
42 --localstatedir=/var \
43 --mandir=/usr/share/man \
44 --sbindir=/usr/sbin \
45 --sysconfdir=/etc/kismet \
46 $(DISABLE_LARGEFILE) \
47 $(DISABLE_NLS) \
48 --enable-shared \
49 --disable-static \
50 --disable-rpath \
51 --with-gnu-ld \
52 );
53 touch $@
54
55 $(PKG_BUILD_DIR)/.built:
56 rm -rf $(PKG_INSTALL_DIR)
57 mkdir -p $(PKG_INSTALL_DIR)
58 $(MAKE) -C $(PKG_BUILD_DIR) \
59 DESTDIR="$(PKG_INSTALL_DIR)" \
60 all install
61 touch $@
62
63 $(IPKG_KNOCK):
64 install -d -m0755 $(IDIR_KNOCK)/usr/bin
65 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/knock $(IDIR_KNOCK)/usr/bin/
66 $(RSTRIP) $(IDIR_KNOCK)
67 $(IPKG_BUILD) $(IDIR_KNOCK) $(PACKAGE_DIR)
68
69 $(IPKG_KNOCKD):
70 install -d -m0755 $(IDIR_KNOCKD)/etc
71 install -m0600 $(PKG_INSTALL_DIR)/etc/knockd.conf $(IDIR_KNOCKD)/etc/
72 install -d -m0755 $(IDIR_KNOCKD)/usr/sbin
73 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/knockd $(IDIR_KNOCKD)/usr/sbin/
74 $(RSTRIP) $(IDIR_KNOCKD)
75 $(IPKG_BUILD) $(IDIR_KNOCKD) $(PACKAGE_DIR)
This page took 0.045345 seconds and 5 git commands to generate.