summaryrefslogtreecommitdiff
path: root/manualPorts/knockd-ipv6-git
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-17 20:51:46 +0200
committerErich Eckner <git@eckner.net>2019-09-17 20:51:46 +0200
commitbb6c2ab6df31eace59f9d805e1724aea3d62485a (patch)
tree059937891ede76bb02735542c03155ebd388556a /manualPorts/knockd-ipv6-git
parent86a3d79625193f4ceccaac514ae45cb3c2081954 (diff)
downloadcrux-ports-bb6c2ab6df31eace59f9d805e1724aea3d62485a.tar.xz
knockd-ipv6-git neu
Diffstat (limited to 'manualPorts/knockd-ipv6-git')
-rw-r--r--manualPorts/knockd-ipv6-git/.footprint15
-rw-r--r--manualPorts/knockd-ipv6-git/.md5sum2
-rw-r--r--manualPorts/knockd-ipv6-git/.signature6
-rw-r--r--manualPorts/knockd-ipv6-git/Pkgfile23
-rwxr-xr-xmanualPorts/knockd-ipv6-git/rc.d35
5 files changed, 81 insertions, 0 deletions
diff --git a/manualPorts/knockd-ipv6-git/.footprint b/manualPorts/knockd-ipv6-git/.footprint
new file mode 100644
index 0000000..dd30e1d
--- /dev/null
+++ b/manualPorts/knockd-ipv6-git/.footprint
@@ -0,0 +1,15 @@
+drwxr-xr-x root/root etc/
+-rw-r--r-- root/root etc/knockd.conf
+drwxr-xr-x root/root etc/rc.d/
+-rwxr-xr-x root/root etc/rc.d/knockd
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/knock
+drwxr-xr-x root/root usr/sbin/
+-rwxr-xr-x root/root usr/sbin/knock_helper_ipt.sh
+-rwxr-xr-x root/root usr/sbin/knockd
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/knock.1.gz
+-rw-r--r-- root/root usr/share/man/man1/knockd.1.gz
diff --git a/manualPorts/knockd-ipv6-git/.md5sum b/manualPorts/knockd-ipv6-git/.md5sum
new file mode 100644
index 0000000..034b969
--- /dev/null
+++ b/manualPorts/knockd-ipv6-git/.md5sum
@@ -0,0 +1,2 @@
+9b0a708dcdeaec336b0bd69bff66bec2 ac5b0dc.tar.gz
+ec5ca5bd81c5d515544239e94bc5150a rc.d
diff --git a/manualPorts/knockd-ipv6-git/.signature b/manualPorts/knockd-ipv6-git/.signature
new file mode 100644
index 0000000..7ba1959
--- /dev/null
+++ b/manualPorts/knockd-ipv6-git/.signature
@@ -0,0 +1,6 @@
+untrusted comment: verify with /etc/ports/deepthought.pub
+RWQxCptPusLGGqXthmJtqUhYxST9biuh7G9B58Dr8kHIXT+HSWqifM3M6F+Drcyg2+8SAuucrDsTn1yNzjIt9C0BVisva3+SnAc=
+SHA256 (Pkgfile) = 8c5e6bf4ac94c989519c1f0dba22d7c9bb6736ccbc4b219a32461cc1dc6a24da
+SHA256 (.footprint) = fefa9ecc8e04383885619fa3ed13742d5fb2cdc0c7a348c4cb681c8b288153cc
+SHA256 (ac5b0dc.tar.gz) = 46228dca2f4d393d2ce62ca5badfe81b5d644379b0e3b7710f601498e5558dd4
+SHA256 (rc.d) = 65326dcf6cde0bb555fc63d8351dfed628e9e18d05a771880bbb69039216d418
diff --git a/manualPorts/knockd-ipv6-git/Pkgfile b/manualPorts/knockd-ipv6-git/Pkgfile
new file mode 100644
index 0000000..e1430b5
--- /dev/null
+++ b/manualPorts/knockd-ipv6-git/Pkgfile
@@ -0,0 +1,23 @@
+# Description: Latest upstream version of knockd with added IPv6 support.
+# URL: http://www.zeroflux.org/projects/knock
+# Maintainer: Erich Eckner, crux at eckner dot net
+# Depends on:
+
+name=knockd-ipv6-git
+version=0.7.8.r19.ac5b0dc
+release=1
+source=(
+"https://github.com/Coksnuss/knock/archive/${version##*.}.tar.gz"
+rc.d
+)
+
+build() {
+
+ cd knock-${version##*.}*
+ autoreconf -fi
+ ./configure --prefix=/usr --sbin=/usr/sbin --sysconfdir=/etc
+ make
+ make "DESTDIR=$PKG" install
+ rm -rf --one-file-system "$PKG/usr/share/doc/"
+ install -Dm 755 "${SRC}/rc.d" "${PKG}/etc/rc.d/knockd"
+}
diff --git a/manualPorts/knockd-ipv6-git/rc.d b/manualPorts/knockd-ipv6-git/rc.d
new file mode 100755
index 0000000..1e4abd9
--- /dev/null
+++ b/manualPorts/knockd-ipv6-git/rc.d
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# /etc/rc.d/knockd: start/stop port knock daemon
+#
+
+SSD=/sbin/start-stop-daemon
+PROG=/usr/sbin/knockd
+NAME=knockd
+
+case $1 in
+start)
+ $SSD --start -bC --exec $PROG
+ ;;
+stop)
+ $SSD --stop --retry 10 --name=$NAME
+ ;;
+restart)
+ $0 stop
+ $0 start
+ ;;
+status)
+ $SSD --status --name=$NAME
+ case $? in
+ 0) echo "$PROG is running" ;;
+ 1) echo "$PROG is not running" ;;
+ 3) echo "$PROG is not running" ;;
+ 4) echo "Unable to determine the program status" ;;
+ esac
+ ;;
+*)
+ echo "usage: $0 [start|stop|restart|status]"
+ ;;
+esac
+
+# End of file