mirror of
https://github.com/gophernicus/gophernicus.git
synced 2025-01-03 14:56:43 -05:00
Fix Debian package building for inetd systems
This commit is contained in:
parent
1ac3b6e220
commit
dddb647153
@ -1,5 +1,9 @@
|
|||||||
[ Automatically generated from git log ]
|
[ Automatically generated from git log ]
|
||||||
|
|
||||||
|
2016-11-13 Kim Holviala <kim@holviala.com>
|
||||||
|
|
||||||
|
* Added systemd entries to Debian logcheck ignore file
|
||||||
|
|
||||||
2016-10-18 Kim Holviala <kim@holviala.com>
|
2016-10-18 Kim Holviala <kim@holviala.com>
|
||||||
|
|
||||||
* Fixed a potentially uninitialized char in strcut()
|
* Fixed a potentially uninitialized char in strcut()
|
||||||
|
5
Makefile
5
Makefile
@ -69,10 +69,7 @@ withwrap:
|
|||||||
# Special targets
|
# Special targets
|
||||||
#
|
#
|
||||||
deb: ChangeLog
|
deb: ChangeLog
|
||||||
@echo
|
dpkg-buildpackage -rfakeroot -uc -us
|
||||||
@echo "Debian package building can haz borken, plz wait some moar..."
|
|
||||||
@echo
|
|
||||||
@#dpkg-buildpackage -rfakeroot -uc -us
|
|
||||||
|
|
||||||
ChangeLog:
|
ChangeLog:
|
||||||
if [ -d .git ]; then \
|
if [ -d .git ]; then \
|
||||||
|
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
|||||||
|
gophernicus (2.1) unstable; urgency=low
|
||||||
|
|
||||||
|
* New upstream release
|
||||||
|
|
||||||
|
-- Kim Holviala <kim@holviala.com> Sun, 13 Nov 2016 11:11:11 +0200
|
||||||
|
|
||||||
gophernicus (1.8.1) unstable; urgency=low
|
gophernicus (1.8.1) unstable; urgency=low
|
||||||
|
|
||||||
* New upstream release
|
* New upstream release
|
||||||
|
6
debian/control
vendored
6
debian/control
vendored
@ -2,15 +2,15 @@ Source: gophernicus
|
|||||||
Section: net
|
Section: net
|
||||||
Priority: extra
|
Priority: extra
|
||||||
Maintainer: Kim Holviala <kim@holviala.com>
|
Maintainer: Kim Holviala <kim@holviala.com>
|
||||||
Build-Depends: debhelper (>= 5)
|
Build-Depends: debhelper (>= 5), libwrap0-dev
|
||||||
Standards-Version: 3.7.3
|
Standards-Version: 3.7.3
|
||||||
Homepage: gopher://gophernicus.org/1/software/gophernicus/server/
|
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 | systemd
|
Depends: ${shlibs:Depends}, debconf, netbase, update-inetd, libwrap0, openbsd-inetd | inet-superserver | systemd
|
||||||
Recommends: lsb-release
|
Recommends: lsb-release
|
||||||
Suggests: lynx, php5-cli
|
Suggests: php5-cli
|
||||||
Description: Modern full-featured gopher server
|
Description: Modern full-featured gopher server
|
||||||
Gophernicus is a modern full-featured (and hopefully) secure
|
Gophernicus is a modern full-featured (and hopefully) secure
|
||||||
gopher daemon.
|
gopher daemon.
|
||||||
|
6
debian/gophernicus.default
vendored
6
debian/gophernicus.default
vendored
@ -1,4 +1,4 @@
|
|||||||
# Options for Gophernicus
|
# Options for Gophernicus for use with systemd
|
||||||
#
|
#
|
||||||
# See README or run "in.gophernicus -?" to see a full list of
|
# See README or run "in.gophernicus -?" to see a full list of
|
||||||
# configuration options.
|
# configuration options.
|
||||||
@ -6,5 +6,5 @@
|
|||||||
# Example:
|
# Example:
|
||||||
# OPTIONS="-h full.hostname -D \"I find your lack of gopher disturbing.\""
|
# OPTIONS="-h full.hostname -D \"I find your lack of gopher disturbing.\""
|
||||||
#
|
#
|
||||||
# Uncomment and add your options here:
|
# Add your options here:
|
||||||
OPTIONS="-h $HOSTNAME -l $LOGDIR/server.log -f /usr/lib/$PACKAGE/filters"
|
OPTIONS="-h __HOSTNAME__ -l __LOGDIR__/server.log -f /usr/lib/__PACKAGE__/filters"
|
||||||
|
9
debian/postinst
vendored
9
debian/postinst
vendored
@ -12,6 +12,7 @@ PACKAGE=gophernicus
|
|||||||
LOGDIR=/var/log/$PACKAGE
|
LOGDIR=/var/log/$PACKAGE
|
||||||
LIBDIR=/usr/lib/$PACKAGE
|
LIBDIR=/usr/lib/$PACKAGE
|
||||||
BINARY=in.gophernicus
|
BINARY=in.gophernicus
|
||||||
|
DEFAULT=/etc/default/$PACKAGE
|
||||||
USER=nobody
|
USER=nobody
|
||||||
|
|
||||||
# Get hostname from debconf
|
# Get hostname from debconf
|
||||||
@ -29,6 +30,12 @@ if [ "$1" = "configure" ]; then
|
|||||||
chown $USER.adm $LOGDIR
|
chown $USER.adm $LOGDIR
|
||||||
chmod 0750 $LOGDIR
|
chmod 0750 $LOGDIR
|
||||||
|
|
||||||
#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"
|
sed -i -e "s|-h [^ ]* |-h $HOSTNAME |" $DEFAULT
|
||||||
|
sed -i -e "s|__PACKAGE__|$PACKAGE|g" $DEFAULT
|
||||||
|
sed -i -e "s|__LOGDIR__|$LOGDIR|g" $DEFAULT
|
||||||
|
|
||||||
|
if [ -f /etc/inetd.conf ]; then
|
||||||
|
/usr/sbin/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
|
fi
|
||||||
|
|
||||||
|
6
debian/postrm
vendored
6
debian/postrm
vendored
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ "$1" = "purge" -a -x "/usr/sbin/update-inetd" ]; then
|
if [ "$1" = "purge" -a -f "/etc/inetd.conf" ]; then
|
||||||
/usr/sbin/update-inetd --remove "#<off># gopher"
|
/usr/sbin/update-inetd --remove "#<off># gopher"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -8,8 +8,4 @@ if [ -d "/run/systemd/system" ]; then
|
|||||||
systemctl --system daemon-reload >/dev/null || true
|
systemctl --system daemon-reload >/dev/null || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -x "/usr/bin/deb-systemd-helper" ]; then
|
|
||||||
/usr/bin/deb-systemd-helper disable gophernicus.socket >/dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
8
debian/prerm
vendored
8
debian/prerm
vendored
@ -1,6 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
#update-inetd --disable gopher
|
if [ -f "/etc/inetd.conf" ]; then
|
||||||
|
/usr/sbin/update-inetd --disable gopher
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -x "/usr/bin/deb-systemd-helper" ]; then
|
||||||
|
/usr/bin/deb-systemd-helper disable gophernicus.socket >/dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user