From 6a3b98debdbf6eaf72b59945aa0e12e248838c73 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 26 Dec 2021 20:54:02 +0100 Subject: Mention that the Debian package is offensive to bump standards-version Signed-off-by: Olivier Gayot --- debian/control | 4 +-- debian/swiftstory-offensive.init | 64 +++++++++++++++++++++++++++++++++++++ debian/swiftstory-offensive.service | 15 +++++++++ debian/swiftstory-offensive.sysuser | 1 + debian/swiftstory.init | 64 ------------------------------------- debian/swiftstory.service | 15 --------- debian/swiftstory.sysuser | 1 - 7 files changed, 82 insertions(+), 82 deletions(-) create mode 100644 debian/swiftstory-offensive.init create mode 100644 debian/swiftstory-offensive.service create mode 100644 debian/swiftstory-offensive.sysuser delete mode 100644 debian/swiftstory.init delete mode 100644 debian/swiftstory.service delete mode 100644 debian/swiftstory.sysuser (limited to 'debian') diff --git a/debian/control b/debian/control index e1a89cb..01c9b95 100644 --- a/debian/control +++ b/debian/control @@ -11,9 +11,9 @@ Build-Depends: python3-setuptools, python3-websockets, python3-pkg-resources, python3 -Standards-Version: 3.9.1 +Standards-Version: 4.5.1 -Package: swiftstory +Package: swiftstory-offensive Architecture: all Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${python3:Depends}, python3-websockets, python3-pkg-resources, libjs-jquery diff --git a/debian/swiftstory-offensive.init b/debian/swiftstory-offensive.init new file mode 100644 index 0000000..821347c --- /dev/null +++ b/debian/swiftstory-offensive.init @@ -0,0 +1,64 @@ +#!/bin/bash +# +### BEGIN INIT INFO +# Provides: swiftstory +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: starts and Stop SwiftStory daemon +### END INIT INFO + +set -e + +# /etc/init.d/swiftstory: start and stop SwiftStory daemon + +NAME=SwiftStory +DESC='SwiftStory game' +DAEMON=/usr/bin/swiftstoryd +PIDFILE=/var/run/swiftstoryd.pid +USER=swiftstory + +test -x $DAEMON || exit 0 + +. /lib/init/vars.sh +. /lib/lsb/init-functions + +[ -r /etc/default/swiftstory-offensive ] && . /etc/default/swiftstory-offensive + +export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" + +case "$1" in + start) + log_daemon_msg "Starting $DESC" "$NAME" || true + if start-stop-daemon --start --quiet -b --oknodo --pidfile $PIDFILE --make-pidfile --chuid $USER --exec $DAEMON -- $OPTS; then + log_end_msg 0 || true + else + log_end_msg 1 || true + fi + ;; + stop) + log_daemon_msg "Stopping $DESC" "$NAME" || true + if start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --remove-pidfile; then + log_end_msg 0 || true + else + log_end_msg 1 || true + fi + ;; + reload|force-reload) + ;; + restart) + $0 stop + $0 start + ;; + try-restart) + ;; + status) + status_of_proc -p $PID "$DAEMON" "$NAME" && exit 0 || exit $? + ;; + *) + log_action_msg "Usage /etc/init.d/swiftstory {start|stop|reload|force-reload|restart|try_restart|status}" || true + exit 1 +esac + +exit 0 diff --git a/debian/swiftstory-offensive.service b/debian/swiftstory-offensive.service new file mode 100644 index 0000000..86d7d92 --- /dev/null +++ b/debian/swiftstory-offensive.service @@ -0,0 +1,15 @@ +[Unit] +Description=SwiftStory game server +Requires=network-online.target +After=network-online.target + +[Service] +EnvironmentFile=-/etc/default/swiftstory-offensive +ExecStart=/usr/bin/swiftstoryd +Restart=on-failure +Type=simple +User=swiftstory + +[Install] +WantedBy=multi-user.target +Alias=swiftstoryd.service diff --git a/debian/swiftstory-offensive.sysuser b/debian/swiftstory-offensive.sysuser new file mode 100644 index 0000000..da0430e --- /dev/null +++ b/debian/swiftstory-offensive.sysuser @@ -0,0 +1 @@ +swiftstory defaults diff --git a/debian/swiftstory.init b/debian/swiftstory.init deleted file mode 100644 index de1ae8f..0000000 --- a/debian/swiftstory.init +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash -# -### BEGIN INIT INFO -# Provides: swiftstory -# Required-Start: $remote_fs -# Required-Stop: $remote_fs -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: starts and Stop SwiftStory daemon -### END INIT INFO - -set -e - -# /etc/init.d/swiftstory: start and stop SwiftStory daemon - -NAME=SwiftStory -DESC='SwiftStory game' -DAEMON=/usr/bin/swiftstoryd -PIDFILE=/var/run/swiftstoryd.pid -USER=swiftstory - -test -x $DAEMON || exit 0 - -. /lib/init/vars.sh -. /lib/lsb/init-functions - -[ -r /etc/default/swiftstory ] && . /etc/default/swiftstory - -export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" - -case "$1" in - start) - log_daemon_msg "Starting $DESC" "$NAME" || true - if start-stop-daemon --start --quiet -b --oknodo --pidfile $PIDFILE --make-pidfile --chuid $USER --exec $DAEMON -- $OPTS; then - log_end_msg 0 || true - else - log_end_msg 1 || true - fi - ;; - stop) - log_daemon_msg "Stopping $DESC" "$NAME" || true - if start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --remove-pidfile; then - log_end_msg 0 || true - else - log_end_msg 1 || true - fi - ;; - reload|force-reload) - ;; - restart) - $0 stop - $0 start - ;; - try-restart) - ;; - status) - status_of_proc -p $PID "$DAEMON" "$NAME" && exit 0 || exit $? - ;; - *) - log_action_msg "Usage /etc/init.d/swiftstory {start|stop|reload|force-reload|restart|try_restart|status}" || true - exit 1 -esac - -exit 0 diff --git a/debian/swiftstory.service b/debian/swiftstory.service deleted file mode 100644 index b0e7d31..0000000 --- a/debian/swiftstory.service +++ /dev/null @@ -1,15 +0,0 @@ -[Unit] -Description=SwiftStory game server -Requires=network-online.target -After=network-online.target - -[Service] -EnvironmentFile=-/etc/default/swiftstory -ExecStart=/usr/bin/swiftstoryd -Restart=on-failure -Type=simple -User=swiftstory - -[Install] -WantedBy=multi-user.target -Alias=swiftstoryd.service diff --git a/debian/swiftstory.sysuser b/debian/swiftstory.sysuser deleted file mode 100644 index da0430e..0000000 --- a/debian/swiftstory.sysuser +++ /dev/null @@ -1 +0,0 @@ -swiftstory defaults -- cgit v1.2.3