summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-04-19 00:29:52 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2012-04-19 00:57:17 +0100
commitfe4cdcdcadcc772088946d2c29263bc4dcb27555 (patch)
tree2abd43826dbee5237b8cacf00702fbe131ec52ea
parent1fd6c968e9c9df30c982e864d7b4a5d9d5328361 (diff)
downloadnyancat-fe4cdcdcadcc772088946d2c29263bc4dcb27555.tar.gz
Switch to reconf-inetd
-rw-r--r--debian/control2
-rw-r--r--debian/nyancat-server.install2
-rw-r--r--debian/nyancat-server.postinst9
-rw-r--r--debian/nyancat-server.postrm26
-rw-r--r--debian/reconf-inetd/nyancat-server.tcp1
-rw-r--r--debian/reconf-inetd/nyancat-server.tcp61
6 files changed, 5 insertions, 36 deletions
diff --git a/debian/control b/debian/control
index 261f56c..2fc1a48 100644
--- a/debian/control
+++ b/debian/control
@@ -17,7 +17,7 @@ Description: Animated terminal Nyancat
Package: nyancat-server
Architecture: all
-Depends: nyancat, openbsd-inetd | inet-superserver, ${misc:Depends}
+Depends: nyancat, openbsd-inetd | inet-superserver, reconf-inetd, ${misc:Depends}
Conflicts: telnetd
Description: Animated terminal Nyancat server configurations
nyancat-server contains the configuations required to quickly set up a nyancat
diff --git a/debian/nyancat-server.install b/debian/nyancat-server.install
new file mode 100644
index 0000000..afd8833
--- /dev/null
+++ b/debian/nyancat-server.install
@@ -0,0 +1,2 @@
+debian/reconf-inetd/nyancat-server.tcp usr/share/reconf-inetd/
+debian/reconf-inetd/nyancat-server.tcp6 usr/share/reconf-inetd/
diff --git a/debian/nyancat-server.postinst b/debian/nyancat-server.postinst
deleted file mode 100644
index c723125..0000000
--- a/debian/nyancat-server.postinst
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Set up nyancat
-update-inetd --group OTHER --add \
- '#<off># telnet\t\tstream\ttcp\tnowait\tnobody\t/usr/bin/nyancat\tnyancat -t'
-
-#DEBHELPER#
diff --git a/debian/nyancat-server.postrm b/debian/nyancat-server.postrm
deleted file mode 100644
index 9b2af53..0000000
--- a/debian/nyancat-server.postrm
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-
-set -e
-
-case "$1" in
- purge)
- if [ -x /usr/sbin/update-inetd ]; then
- update-inetd --remove nyancat
- fi
- ;;
- remove)
- if [ -x /usr/sbin/update-inetd ]; then
- update-inetd --disable nyancat
- fi
- ;;
- upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
- ;;
- *)
- echo "$0: unknown action \"$1\""
- exit 0
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
diff --git a/debian/reconf-inetd/nyancat-server.tcp b/debian/reconf-inetd/nyancat-server.tcp
new file mode 100644
index 0000000..47f4f81
--- /dev/null
+++ b/debian/reconf-inetd/nyancat-server.tcp
@@ -0,0 +1 @@
+#<off># telnet stream tcp nowait nobody /usr/bin/nyancat nyancat -t
diff --git a/debian/reconf-inetd/nyancat-server.tcp6 b/debian/reconf-inetd/nyancat-server.tcp6
new file mode 100644
index 0000000..060cb4e
--- /dev/null
+++ b/debian/reconf-inetd/nyancat-server.tcp6
@@ -0,0 +1 @@
+#<off># telnet stream tcp6 nowait nobody /usr/bin/nyancat nyancat -t
='insertions'>+6 2014-10-20delete d/dtv-scan-files.install; Upstream now supplies a MakefileJonathan McCrohan2-4/+1 2014-10-15d/control: update Standards Version to 3.9.6Jonathan McCrohan2-1/+3 2014-10-15d/control: add Build-Depends on dvb-toolsJonathan McCrohan2-1/+2 2014-10-15New Upstream Snapshot (commit d26b627)Jonathan McCrohan1-0/+10 2014-10-15Imported Upstream version 0+git20141009.d26b627upstream/0+git20141009.d26b627Jonathan McCrohan2010-11120/+159271 2014-07-23Release 0+git20140611.14bd6c7-1debian/0+git20140611.14bd6c7-1Jonathan McCrohan1-2/+2 2014-07-23New Upstream Snapshot (commit 14bd6c7)Jonathan McCrohan1-2/+3 2014-07-23Imported Upstream version 0+git20140611.14bd6c7upstream/0+git20140611.14bd6c7Jonathan McCrohan7-11/+60 2014-05-13New Upstream Snapshot (commit 1246b27)Jonathan McCrohan1-0/+6 2014-05-13Imported Upstream version 0+git20140512.1246b27upstream/0+git20140512.1246b27Jonathan McCrohan391-301/+3983 2014-04-05Release 0+git20140326.cfc2975-1debian/0+git20140326.cfc2975-1Jonathan McCrohan1-2/+2 2014-04-05d/control: update Homepage (upstream has moved from Gitweb to cgit)Jonathan McCrohan2-1/+2 2014-04-05New Upstream Snapshot (commit cfc2975)Jonathan McCrohan1-0/+6 2014-04-05Imported Upstream version 0+git20140326.cfc2975upstream/0+git20140326.cfc2975Jonathan McCrohan118-656/+877 2014-01-16Release 0+git20140107.1850cf8-1debian/0+git20140107.1850cf8-1Jonathan McCrohan1-2/+2 2014-01-16Update Standards Version to 3.9.5Jonathan McCrohan2-1/+9 No changes required