summaryrefslogtreecommitdiffstats
path: root/testing/knock
diff options
context:
space:
mode:
authorMichael Mason <ms13sp@gmail.com>2009-08-25 21:09:15 +0000
committerMichael Mason <ms13sp@gmail.com>2009-08-25 21:09:15 +0000
commit20dea49e600bb26d4c0dcc98a87b294fc5de3de1 (patch)
tree025a1e560c275b33f11cfa99951b7f67d5ba1baf /testing/knock
parent36888fa7773873b9570aab5705fec8b48d6ddb85 (diff)
downloadaports-20dea49e600bb26d4c0dcc98a87b294fc5de3de1.tar.bz2
aports-20dea49e600bb26d4c0dcc98a87b294fc5de3de1.tar.xz
testing/knock updated to include knock.confd and knock.initd
Diffstat (limited to 'testing/knock')
-rw-r--r--testing/knock/APKBUILD12
-rw-r--r--testing/knock/knock.confd6
-rw-r--r--testing/knock/knock.initd20
3 files changed, 34 insertions, 4 deletions
diff --git a/testing/knock/APKBUILD b/testing/knock/APKBUILD
index 2827d6bfd..6456b51a5 100644
--- a/testing/knock/APKBUILD
+++ b/testing/knock/APKBUILD
@@ -10,7 +10,9 @@ depends="uclibc iptables libpcap"
makedepends="libpcap-dev"
install=
subpackages="$pkgname-doc"
-source="http://www.zeroflux.org/proj/knock/files/$pkgname-$pkgver.tar.gz"
+source="http://www.zeroflux.org/proj/knock/files/$pkgname-$pkgver.tar.gz
+ knock.initd
+ knock.confd"
build() {
cd "$srcdir/$pkgname-$pkgver"
@@ -22,8 +24,10 @@ build() {
make -j1 || return 1
make -j1 DESTDIR="$pkgdir" install
- # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
- # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+ install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/knockd
+ install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/knockd
}
-md5sums="ca09d61458974cff90a700aba6120891 knock-0.5.tar.gz"
+md5sums="ca09d61458974cff90a700aba6120891 knock-0.5.tar.gz
+eb19ce993158eb3d15e1b19326256807 knock.initd
+8067d3b8401a0b5d513c44d3ff436032 knock.confd"
diff --git a/testing/knock/knock.confd b/testing/knock/knock.confd
new file mode 100644
index 000000000..301ccc199
--- /dev/null
+++ b/testing/knock/knock.confd
@@ -0,0 +1,6 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/net-misc/knock/files/knockd.confd,v 1.2 2004/07/15 00:01:08 agriffis Exp $
+
+# options for knockd daemon
+OPTS="-d -i eth0"
diff --git a/testing/knock/knock.initd b/testing/knock/knock.initd
new file mode 100644
index 000000000..18a6177ea
--- /dev/null
+++ b/testing/knock/knock.initd
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/net-misc/knock/files/knockd.initd,v 1.2 2004/07/15 00:01:08 agriffis Exp $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting knockd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/knockd -- ${OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping knockd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/knockd
+ eend $?
+}