Package: xinetd
Version: 1:2.3.13-3
Severity: wishlist
Tags: patch
Debian turns off entries in inetd.conf by putting "#<off>#" at the
beginning of the line. It would be nice if xconv.pl processed those
lines as well, adding a "disable = yes" line to the xinetd.conf entry.
The attached patch does exactly that.
.....Ron
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: sparc (sparc64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13.4-curly-0
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages xinetd depends on:
ii libc6 2.3.5-6 GNU C Library: Shared libraries an
ii libwrap0 7.6.dbs-8 Wietse Venema's TCP wrappers libra
ii netbase 4.22 Basic TCP/IP networking system
Versions of packages xinetd recommends:
ii logrotate 3.7.1-2 Log rotation utility
ii sysklogd [system-log-daemon] 1.4.1-17 System Logging Daemon
-- no debconf information
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager at postmaster at dor.state.ma.us.
**********************************************************************
*** xconv.pl.orig Thu Mar 10 06:14:39 2005
--- xconv.pl Thu Oct 27 08:09:19 2005
***************
*** 16,23 ****
--- 16,31 ----
while( <STDIN> ) {
+ $disable = 0; # Default to 'enable'
+
chomp;
+ # Check for disable before we check for comments
+ if (m/^\#<off>\#/i) {
+ s/^.*?\s//;
+ $disable = 1;
+ }
+
# Remove comment lines
if( grep /^#/, $_ ) {
next;
***************
*** 87,92 ****
--- 95,105 ----
print "\n";
}
+
+ if ($disable) {
+ print "\tdisable = yes\n";
+ }
+
print "}\n";
print "\n";
}