+nwho (1.15) stable; urgency=low
+
+ * New upstream version. Packaging for Debian Stretch.
+
+ -- Martin Mares <mj@ucw.cz> Thu, 15 Feb 2018 18:00:07 +0100
+
nwho (1.14) stable; urgency=low
* New upstream version.
Priority: optional
Maintainer: Martin Mares <mj@ucw.cz>
Standards-Version: 2.1.0.0
-Build-Depends: debhelper (>= 7.0)
+Build-Depends: debhelper (>= 10.0)
Package: nwho
Architecture: any
--- /dev/null
+/var/state/nwho
+++ /dev/null
-#!/bin/sh
-# Start/stop the nwho daemon.
-
-### BEGIN INIT INFO
-# Provides: nwho
-# Required-Start: $network $local_fs
-# Required-Stop: $network $local_fs
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: The network who daemon
-# Description: This is Yet Another RWho Replacement utility. It collects information
-# about all logged in users on a central server where it can be displayed.
-### END INIT INFO
-
-test -f /usr/sbin/nwhod || exit 0
-
-if [ -f /etc/default/nwho ] ; then
- . /etc/default/nwho
-fi
-
-case "$1" in
-start) echo -n "Starting network who daemon: nwhod"
- start-stop-daemon --start --quiet --exec /usr/sbin/nwhod $NWHOSERVER
- echo "."
- ;;
-stop) echo -n "Stopping network who daemon: nwhod"
- start-stop-daemon --stop --quiet --exec /usr/sbin/nwhod
- [ -z "$NWHOSERVER" ] && rm -f /var/state/nwho/*
- echo "."
- ;;
-restart|reload|force-reload) echo -n "Restarting network who daemon: nwhod"
- start-stop-daemon --stop --quiet --exec /usr/sbin/nwhod
- start-stop-daemon --start --quiet --exec /usr/sbin/nwhod $NWHOSERVER
- echo "."
- ;;
-*) echo "Usage: /etc/init.d/nwho start|stop|restart|reload|force-reload"
- exit 1
- ;;
-esac
-exit 0
--- /dev/null
+[Unit]
+Description=Network who service
+After=network.target
+
+[Service]
+EnvironmentFile=/etc/default/nwho
+ExecStart=/usr/sbin/nwhod -d ${NWHOSERVER}
+ExecStopPost=/bin/sh -c 'rm -f /var/state/nwho/*'
+
+[Install]
+WantedBy=multi-user.target
#!/usr/bin/make -f
-# Rules for building of nwho Debian/UCW Package
-# (c) 2002--2010 Martin Mares <mj@ucw.cz>
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-build: build-stamp
-build-stamp:
- dh_testdir
- $(MAKE)
- touch build-stamp
+%:
+ dh $@
-clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp
- $(MAKE) clean
- dh_clean
-
-binary-indep: build
-
-binary-arch: build
- dh_testdir
- dh_testroot
- dh_prep
- dh_installdirs etc/init.d etc/default usr/bin usr/sbin var/state/nwho
-
- $(MAKE) ROOT=`pwd`/debian/nwho install
-
- dh_installchangelogs
- dh_installdocs README
- dh_installinit
- dh_strip
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-indep binary-arch
-
-.PHONY: build clean binary-indep binary-arch binary
+override_dh_auto_install:
+ dh_auto_install -- ROOT=debian/nwho