3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=ca09d61458974cff90a700aba6120891
10 PKG_SOURCE_URL
:=http
://www.zeroflux.org
/knock
/files
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,KNOCK
,knock
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(eval
$(call PKG_template
,KNOCKD
,knockd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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 \
29 --target
=$(GNU_TARGET_NAME
) \
30 --host
=$(GNU_TARGET_NAME
) \
31 --build
=$(GNU_HOST_NAME
) \
37 --datadir=/usr
/share \
38 --includedir=/usr
/include \
39 --infodir=/usr
/share
/info \
41 --libexecdir
=/usr
/lib \
42 --localstatedir
=/var \
43 --mandir=/usr
/share
/man \
45 --sysconfdir
=/etc
/kismet \
46 $(DISABLE_LARGEFILE
) \
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)" \
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
)
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
)