1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 9938479c321066424f74c61f6bee46dfd355a828263dc89561a1ece3f56578a4
10 PKG_DESCR
:= port-knocking client
11 PKG_SECTION
:= net
/firewall
12 PKG_BUILDDEP
:= libpcap
13 PKG_URL
:= http
://www.zeroflux.org
/projects
/knock
14 PKG_SITES
:= http
://www.zeroflux.org
/proj
/knock
/files
/
16 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
18 PKG_SUBPKGS
:= KNOCK KNOCKD
19 PKGSD_KNOCKD
:= port-knocking server
20 PKGSS_KNOCKD
:= libpcap
22 include ${ADK_TOPDIR}/mk
/package.mk
24 $(eval
$(call PKG_template
,KNOCK
,knock
,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR},${PKG_SECTION}))
25 $(eval
$(call PKG_template
,KNOCKD
,knockd
,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_KNOCKD},${PKGSD_KNOCKD},${PKG_SECTION}))
27 CONFIGURE_ENV
+= ac_cv_lib_pcap_pcap_open_live
=yes
30 ${INSTALL_DIR} ${IDIR_KNOCK}/usr
/bin
31 ${CP} ${WRKINST}/usr
/bin
/knock
${IDIR_KNOCK}/usr
/bin
/
34 ${INSTALL_DIR} ${IDIR_KNOCKD}/etc
35 install -m0600
${WRKINST}/etc
/knockd.conf
${IDIR_KNOCKD}/etc
/
36 ${INSTALL_DIR} ${IDIR_KNOCKD}/usr
/sbin
37 ${CP} ${WRKINST}/usr
/sbin
/knockd
${IDIR_KNOCKD}/usr
/sbin
/
39 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk