mirror of
https://github.com/gophernicus/gophernicus.git
synced 2025-01-03 14:56:43 -05:00
Updated deb package control files (still borken)
This commit is contained in:
parent
30bc6fc42e
commit
bd4255727d
2
debian/control
vendored
2
debian/control
vendored
@ -8,7 +8,7 @@ Homepage: gopher://gophernicus.org/1/software/gophernicus/server/
|
|||||||
|
|
||||||
Package: gophernicus
|
Package: gophernicus
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: ${shlibs:Depends}, debconf, netbase, openbsd-inetd | inet-superserver
|
Depends: ${shlibs:Depends}, debconf, netbase, openbsd-inetd | inet-superserver | systemd
|
||||||
Recommends: lsb-release
|
Recommends: lsb-release
|
||||||
Suggests: lynx, php5-cli
|
Suggests: lynx, php5-cli
|
||||||
Description: Modern full-featured gopher server
|
Description: Modern full-featured gopher server
|
||||||
|
10
debian/gophernicus.default
vendored
Normal file
10
debian/gophernicus.default
vendored
Normal 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
5
debian/postinst
vendored
@ -20,9 +20,6 @@ if [ "$RET" ]; then
|
|||||||
HOSTNAME="`echo $RET | tr -cd 'A-Za-z0-9.-'`"
|
HOSTNAME="`echo $RET | tr -cd 'A-Za-z0-9.-'`"
|
||||||
fi
|
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
|
# Configure gophernicus
|
||||||
if [ "$1" = "configure" ]; then
|
if [ "$1" = "configure" ]; then
|
||||||
if [ ! -f "$ROOT/gophermap" ]; then
|
if [ ! -f "$ROOT/gophermap" ]; then
|
||||||
@ -32,6 +29,6 @@ if [ "$1" = "configure" ]; then
|
|||||||
chown $USER.adm $LOGDIR
|
chown $USER.adm $LOGDIR
|
||||||
chmod 0750 $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
|
fi
|
||||||
|
|
||||||
|
13
debian/postrm
vendored
13
debian/postrm
vendored
@ -1,8 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ "$1" = "purge" ]; then
|
if [ "$1" = "purge" -a -x "/usr/sbin/update-inetd" ]; then
|
||||||
update-inetd --remove "#<off># gopher"
|
/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
|
fi
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
|
||||||
|
2
debian/prerm
vendored
2
debian/prerm
vendored
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
update-inetd --disable gopher
|
#update-inetd --disable gopher
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
|
||||||
|
4
debian/rules
vendored
4
debian/rules
vendored
@ -43,7 +43,7 @@ install: build
|
|||||||
rm -rf $(DEST)/tmp
|
rm -rf $(DEST)/tmp
|
||||||
ln -s /usr/share/doc/gophernicus/ $(DEST)/var/gopher/docs
|
ln -s /usr/share/doc/gophernicus/ $(DEST)/var/gopher/docs
|
||||||
ln -s /usr/bin/php5 $(DEST)/usr/lib/gophernicus/filters/php
|
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.
|
# Build architecture-independent files here.
|
||||||
binary-indep: build install
|
binary-indep: build install
|
||||||
@ -65,7 +65,7 @@ binary-arch: build install
|
|||||||
# dh_installpam
|
# dh_installpam
|
||||||
# dh_installmime
|
# dh_installmime
|
||||||
# dh_python
|
# dh_python
|
||||||
# dh_installinit
|
dh_installinit
|
||||||
# dh_installcron
|
# dh_installcron
|
||||||
# dh_installinfo
|
# dh_installinfo
|
||||||
# dh_installman
|
# dh_installman
|
||||||
|
Loading…
Reference in New Issue
Block a user