r287 - /web/deps/dep9.mdwn
sez at users.alioth.debian.org
sez at users.alioth.debian.org
Mon Apr 9 07:48:07 UTC 2012
Author: sez
Date: Mon Apr 9 07:48:06 2012
New Revision: 287
URL: http://svn.debian.org/wsvn/dep/?sc=1&rev=287
Log:
dep9: update example postinst snippet to respect local changes
Modified:
web/deps/dep9.mdwn
Modified: web/deps/dep9.mdwn
URL: http://svn.debian.org/wsvn/dep/web/deps/dep9.mdwn?rev=287&op=diff
==============================================================================
--- web/deps/dep9.mdwn (original)
+++ web/deps/dep9.mdwn Mon Apr 9 07:48:06 2012
@@ -3,7 +3,7 @@
Title: inet-superserver configuration by maintainer scripts
DEP: 9
State: DRAFT
- Date: 2012-02-05
+ Date: 2012-04-09
Drivers: Serafeim Zanikolas <sez at debian.org>
URL: http://dep.debian.net/deps/dep9
Source: http://anonscm.debian.org/viewvc/dep/web/deps/dep9.mdwn
@@ -205,7 +205,7 @@
file (ie. not as a conffile);
* drop any references to update-inetd in postrm, and modify postinst to remove
any inetd.conf entries for that package that were previously added using
- update-inetd
+ update-inetd, assuming they have not had local changes
Below is an example postinst snippet for the ftpd-ssl server package (assuming
it ships /usr/share/reconf-inetc/ftpd-ssl.xinetd):
@@ -213,7 +213,10 @@
<pre>
case $1 in
configure)
- if ! -e /var/lib/reconf-inetd/ftpd-ssl.xinetd; then
+ # remove inetd.conf entry if not modified locally, and not managed
+ # already by reconf-inetd
+ if fgrep -q '^exact entry previously added by update-inetd$' /etc/inetd.conf \
+ -a ! -e /var/lib/reconf-inetd/ftpd-ssl.xinetd; then
if which update-inetd; then
update-inetd --remove ftp
fi
More information about the dep-commits
mailing list