From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/knock/Config.in | 41 +++++++++++++++++++++++++++++++++++++ package/knock/Makefile | 33 +++++++++++++++++++++++++++++ package/knock/ipkg/knock.control | 5 +++++ package/knock/ipkg/knockd.conffiles | 1 + package/knock/ipkg/knockd.control | 5 +++++ 5 files changed, 85 insertions(+) create mode 100644 package/knock/Config.in create mode 100644 package/knock/Makefile create mode 100644 package/knock/ipkg/knock.control create mode 100644 package/knock/ipkg/knockd.conffiles create mode 100644 package/knock/ipkg/knockd.control (limited to 'package/knock') diff --git a/package/knock/Config.in b/package/knock/Config.in new file mode 100644 index 000000000..ada7f06c8 --- /dev/null +++ b/package/knock/Config.in @@ -0,0 +1,41 @@ +config ADK_COMPILE_KNOCK + tristate + default n + depends ADK_PACKAGE_KNOCK || ADK_PACKAGE_KNOCKD + +config ADK_PACKAGE_KNOCK + prompt "knock............................. A port-knocking client" + tristate + default n + select ADK_COMPILE_KNOCK + help + It listens to all traffic on an ethernet (or PPP) interface, + looking for special "knock" sequences of port-hits. A client + makes these port-hits by sending a TCP (or UDP) packet to a + port on the server. This port need not be open -- since + knockd listens at the link-layer level, it sees all traffic + even if it's destined for a closed port. When the server + detects a specific sequence of port-hits, it runs a command + defined in its configuration file. This can be used to open + up holes in a firewall for quick access. + + http://www.zeroflux.org/cgi-bin/cvstrac/knock/wiki + +config ADK_PACKAGE_KNOCKD + prompt "knockd............................ A port-knocking server" + tristate + default n + select ADK_COMPILE_KNOCK + help + It listens to all traffic on an ethernet (or PPP) interface, + looking for special "knock" sequences of port-hits. A client + makes these port-hits by sending a TCP (or UDP) packet to a + port on the server. This port need not be open -- since + knockd listens at the link-layer level, it sees all traffic + even if it's destined for a closed port. When the server + detects a specific sequence of port-hits, it runs a command + defined in its configuration file. This can be used to open + up holes in a firewall for quick access. + + http://www.zeroflux.org/cgi-bin/cvstrac/knock/wiki + diff --git a/package/knock/Makefile b/package/knock/Makefile new file mode 100644 index 000000000..13e57d43b --- /dev/null +++ b/package/knock/Makefile @@ -0,0 +1,33 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= knock +PKG_VERSION:= 0.5 +PKG_RELEASE:= 1 +PKG_MD5SUM:= ca09d61458974cff90a700aba6120891 +MASTER_SITES:= http://www.zeroflux.org/proj/knock/files/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,KNOCK,knock,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) +$(eval $(call PKG_template,KNOCKD,knockd,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +TCXXFLAGS+= ${TCPPFLAGS} ${TCFLAGS} +CONFIGURE_STYLE= gnu +CONFIGURE_ENV+= ac_cv_lib_pcap_pcap_open_live=yes +BUILD_STYLE= auto +INSTALL_STYLE= auto + +post-install: + ${INSTALL_DIR} ${IDIR_KNOCK}/usr/bin + ${CP} ${WRKINST}/usr/bin/knock ${IDIR_KNOCK}/usr/bin/ + ${INSTALL_DIR} ${IDIR_KNOCKD}/etc + install -m0600 ${WRKINST}/etc/knockd.conf ${IDIR_KNOCKD}/etc/ + ${INSTALL_DIR} ${IDIR_KNOCKD}/usr/sbin + ${CP} ${WRKINST}/usr/sbin/knockd ${IDIR_KNOCKD}/usr/sbin/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/knock/ipkg/knock.control b/package/knock/ipkg/knock.control new file mode 100644 index 000000000..72e635ff4 --- /dev/null +++ b/package/knock/ipkg/knock.control @@ -0,0 +1,5 @@ +Package: knock +Priority: optional +Section: net +Depends: +Description: A port-knocking client diff --git a/package/knock/ipkg/knockd.conffiles b/package/knock/ipkg/knockd.conffiles new file mode 100644 index 000000000..e191bfd70 --- /dev/null +++ b/package/knock/ipkg/knockd.conffiles @@ -0,0 +1 @@ +/etc/knockd.conf \ No newline at end of file diff --git a/package/knock/ipkg/knockd.control b/package/knock/ipkg/knockd.control new file mode 100644 index 000000000..e0c943915 --- /dev/null +++ b/package/knock/ipkg/knockd.control @@ -0,0 +1,5 @@ +Package: knockd +Priority: optional +Section: net +Depends: libpcap +Description: A port-knocking server -- cgit v1.2.3