1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-06-16 06:25:23 +00:00

Updated deb package control files (still borken)

This commit is contained in:
Kim Holviala 2016-09-08 17:06:23 +03:00
parent 30bc6fc42e
commit bd4255727d
6 changed files with 25 additions and 11 deletions

2
debian/control vendored
View File

@ -8,7 +8,7 @@ Homepage: gopher://gophernicus.org/1/software/gophernicus/server/
Package: gophernicus
Architecture: any
Depends: ${shlibs:Depends}, debconf, netbase, openbsd-inetd | inet-superserver
Depends: ${shlibs:Depends}, debconf, netbase, openbsd-inetd | inet-superserver | systemd
Recommends: lsb-release
Suggests: lynx, php5-cli
Description: Modern full-featured gopher server

10
debian/gophernicus.default vendored Normal file
View File

@ -0,0 +1,10 @@
# Options for Gophernicus
#
# See README or run "in.gophernicus -?" to see a full list of
# configuration options.
#
# Example:
# OPTIONS="-h full.hostname -D \"I find your lack of gopher disturbing.\""
#
# Uncomment and add your options here:
OPTIONS="-h $HOSTNAME -l $LOGDIR/server.log -f /usr/lib/$PACKAGE/filters"

5
debian/postinst vendored
View File

@ -20,9 +20,6 @@ if [ "$RET" ]; then
HOSTNAME="`echo $RET | tr -cd 'A-Za-z0-9.-'`"
fi
# Generate inetd service
SERVICE="gopher\t\tstream\ttcp\tnowait\t$USER\t/usr/sbin/$BINARY\t$BINARY -h $HOSTNAME -l $LOGDIR/server.log -f /usr/lib/$PACKAGE/filters"
# Configure gophernicus
if [ "$1" = "configure" ]; then
if [ ! -f "$ROOT/gophermap" ]; then
@ -32,6 +29,6 @@ if [ "$1" = "configure" ]; then
chown $USER.adm $LOGDIR
chmod 0750 $LOGDIR
update-inetd --add "$SERVICE"
#update-inetd --add "gopher\t\tstream\ttcp\tnowait\t$USER\t/usr/sbin/$BINARY\t$BINARY -h $HOSTNAME -l $LOGDIR/server.log -f /usr/lib/$PACKAGE/filters"
fi

13
debian/postrm vendored
View File

@ -1,8 +1,15 @@
#!/bin/sh
if [ "$1" = "purge" ]; then
update-inetd --remove "#<off># gopher"
if [ "$1" = "purge" -a -x "/usr/sbin/update-inetd" ]; then
/usr/sbin/update-inetd --remove "#<off># gopher"
fi
if [ -d "/run/systemd/system" ]; then
systemctl --system daemon-reload >/dev/null || true
fi
if [ -x "/usr/bin/deb-systemd-helper" ]; then
/usr/bin/deb-systemd-helper disable gophernicus.socket >/dev/null
fi
#DEBHELPER#

2
debian/prerm vendored
View File

@ -1,6 +1,6 @@
#!/bin/sh
update-inetd --disable gopher
#update-inetd --disable gopher
#DEBHELPER#

4
debian/rules vendored
View File

@ -43,7 +43,7 @@ install: build
rm -rf $(DEST)/tmp
ln -s /usr/share/doc/gophernicus/ $(DEST)/var/gopher/docs
ln -s /usr/bin/php5 $(DEST)/usr/lib/gophernicus/filters/php
cp gophermap $(DEST)/usr/lib/gophernicus/
cp $(CURDIR)/gophermap $(DEST)/usr/lib/gophernicus/
# Build architecture-independent files here.
binary-indep: build install
@ -65,7 +65,7 @@ binary-arch: build install
# dh_installpam
# dh_installmime
# dh_python
# dh_installinit
dh_installinit
# dh_installcron
# dh_installinfo
# dh_installman