* postinst: if IKSD requested, complain if no inetd installed.
* templates: new template ckermit/iksd-no-inetd.
+ckermit (211-13) unstable; urgency=low
+
+ * Weaken inetd Depends: to Recommends (Closes: #511564).
+ * postinst: if IKSD requested, complain if no inetd installed.
+ * templates: new template ckermit/iksd-no-inetd.
+
+ -- Ian Beckwith <ianb@erislabs.net> Fri, 27 Feb 2009 02:04:49 +0000
+
ckermit (211-12) unstable; urgency=low
* Add debian/README.source pointing to quilt docs.
Package: ckermit
Architecture: any
Pre-Depends: debconf (>=0.2.17)
-Depends: openbsd-inetd | inet-superserver, ${misc:Depends}, ${shlibs:Depends}
-Recommends: openssh-client | ssh-client
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Recommends: openbsd-inetd | inet-superserver, openssh-client | ssh-client
Description: a serial and network communications package
C-Kermit is a combined serial and network communication software package
offering a consistent, medium-independent, cross-platform approach to
if [ "$1" = "configure" ]
then
+ gotinetd=0
+ if [ -x "`which update-inetd 2>/dev/null`" ]; then
+ gotinetd=1
+ fi
+
db_get ckermit/iksd || true
if [ "$RET" = true ]
then
- prefix=""
- db_get ckermit/iksd-anon || true
- if [ "$RET" = true ]
- then
- anon="on"
- db_get ckermit/iksd-anondir || true
- dir="$RET"
+ if [ $gotinetd -eq 0 ]; then
+ db_fset ckermit/iksd seen false || true
+ db_input critical ckermit/iksd-no-inetd || true
+ db_go || true
+ else
+ prefix=""
+ db_get ckermit/iksd-anon || true
+ if [ "$RET" = true ]
+ then
+ anon="on"
+ db_get ckermit/iksd-anondir || true
+ dir="$RET"
+ fi
fi
fi
- iksd_args="$iksd_args --root:$dir --anonymous:$anon"
- update-inetd --remove "kermit"
- update-inetd --add "$prefix$inetdentry $iksd_args"
+ if [ $gotinetd -eq 1 ]; then
+ iksd_args="$iksd_args --root:$dir --anonymous:$anon"
+ update-inetd --remove "kermit"
+ update-inetd --add "$prefix$inetdentry $iksd_args"
+ fi
fi
#DEBHELPER#
into this directory on login. This directory will NOT be created.
.
The default is /home/ftp (same as wu-ftpd)
+
+Template: ckermit/iksd-no-inetd
+Type: error
+_Description: No inet daemon found, so IKSD cannot be configured.
+ Please install an inetd (e.g. openbsd-inetd) and then
+ reconfigure ckermit with:
+ .
+ dpkg-reconfigure ckermit