From 7e44e2ccd479669075c7e36450194b1bf33d0640 Mon Sep 17 00:00:00 2001 From: Manoj Srivastava Date: Thu, 16 Jun 2005 05:12:51 +0000 Subject: [PATCH] * Line up s Author: jdg Date: 2001/05/02 17:05:22 * Line up s; should work a little more nicely now (modulo a wishlist bug against debiandoc-sgml) git-archimport-id: srivasta@debian.org--etch/debian-policy--devel--3.0--patch-114 --- policy.sgml | 481 +++++++++++++++++++++++++++------------------------- 1 file changed, 252 insertions(+), 229 deletions(-) diff --git a/policy.sgml b/policy.sgml index 13d176d..b1c1018 100644 --- a/policy.sgml +++ b/policy.sgml @@ -1489,7 +1489,7 @@ ignored there; it is conventional to put a single space after the colon. For example, a field might be: - Package: libc6 +Package: libc6 the field name is Package and the field value libc6. @@ -2729,7 +2729,7 @@

If a version of the package is already installed, call - old-prerm upgrade new-version +old-prerm upgrade new-version

@@ -2737,11 +2737,11 @@ If the script runs but exits with a non-zero exit status, dpkg will attempt: - new-prerm failed-upgrade old-version +new-prerm failed-upgrade old-version Error unwind, for both the above cases: - old-postinst abort-upgrade new-version +old-postinst abort-upgrade new-version

@@ -2757,15 +2757,15 @@ package and --auto-deconfigure is specified, call, for each such package: - deconfigured's-prerm deconfigure \ - in-favour package-being-installed version \ - removing conflicting-package version +deconfigured's-prerm deconfigure \ + in-favour package-being-installed version \ + removing conflicting-package version Error unwind: - deconfigured's-postinst abort-deconfigure \ - in-favour package-being-installed-but-failed version \ - removing conflicting-package version +deconfigured's-postinst abort-deconfigure \ + in-favour package-being-installed-but-failed version \ + removing conflicting-package version The deconfigured packages are marked as requiring configuration, so that if @@ -2775,12 +2775,13 @@

To prepare for removal of the conflicting package, call: - conflictor's-prerm remove in-favour package new-version +conflictor's-prerm remove \ + in-favour package new-version Error unwind: - conflictor's-postinst abort-remove \ - in-favour package new-version +conflictor's-postinst abort-remove \ + in-favour package new-version

@@ -2793,7 +2794,7 @@

If the package is being upgraded, call: - new-preinst upgrade old-version +new-preinst upgrade old-version

@@ -2802,19 +2803,19 @@ files from a previous version installed (i.e., it is in the `configuration files only' state): - new-preinst install old-version +new-preinst install old-version

Otherwise (i.e., the package was completely purged): - new-preinst install +new-preinst install Error unwind actions, respectively: - new-postrm abort-upgrade old-version - new-postrm abort-install old-version - new-postrm abort-install +new-postrm abort-upgrade old-version +new-postrm abort-install old-version +new-postrm abort-install

@@ -2884,17 +2885,17 @@

If the package is being upgraded, call - old-postrm upgrade new-version +old-postrm upgrade new-version

If this fails, dpkg will attempt: - new-postrm failed-upgrade old-version +new-postrm failed-upgrade old-version Error unwind, for both cases: - old-preinst abort-upgrade new-version +old-preinst abort-upgrade new-version

@@ -2930,8 +2931,8 @@

dpkg calls: - disappearer's-postrm disappear \ - overwriter overwriter-version +disappearer's-postrm disappear \ + overwriter overwriter-version

@@ -3004,7 +3005,7 @@ --install, or with --configure), we first update any conffiles and then call: - postinst configure most-recently-configured-version +postinst configure most-recently-configured-version

@@ -3030,7 +3031,7 @@

- prerm remove +prerm remove

@@ -3040,9 +3041,11 @@

-

- postrm remove -

+

+ +postrm remove + +

@@ -3064,9 +3067,11 @@ .dpkg-{old,new,tmp}, etc.) are removed.

-

- postrm purge -

+

+ +postrm purge + +

The package's file list is removed.

@@ -3166,9 +3171,9 @@

For example, a list of dependencies might appear as: - Package: mutt - Version: 1.3.17-1 - Depends: libc6 (>= 2.2.1), exim | mail-transport-agent +Package: mutt +Version: 1.3.17-1 +Depends: libc6 (>= 2.2.1), exim | mail-transport-agent

@@ -3193,10 +3198,10 @@

For example: - Source: glibc - Build-Depends-Indep: texinfo - Build-Depends: kernel-headers-2.2.10 [!hurd-i386], - hurd-dev [hurd-i386], gnumach-dev [hurd-i386] +Source: glibc +Build-Depends-Indep: texinfo +Build-Depends: kernel-headers-2.2.10 [!hurd-i386], +hurd-dev [hurd-i386], gnumach-dev [hurd-i386]

@@ -3447,15 +3452,15 @@ packages which provide it. This is so that, for example, supposing we have - Package: foo - Depends: bar +Package: foo +Depends: bar and someone else releases an enhanced version of the bar package (for example, a non-US variant), they can say: - Package: bar-plus - Provides: bar +Package: bar-plus +Provides: bar and the bar-plus package will now also satisfy the dependency for the foo package. @@ -3924,8 +3929,8 @@ Replaces: mail-transport-agent compiled binaries and libraries (but no scripts), you can use a command such as: - dpkg-shlibdeps debian/tmp/usr/bin/* debian/tmp/usr/sbin/* \ - debian/tmp/usr/lib/* +dpkg-shlibdeps debian/tmp/usr/bin/* debian/tmp/usr/sbin/* \ + debian/tmp/usr/lib/* Otherwise, you will need to explicitly list the compiled binaries and libraries. @@ -3973,7 +3978,7 @@ Replaces: mail-transport-agent beginning with # are considered to be commments and are ignored. Each line is of the form: - library-name soname-version-number dependencies ... +library-name soname-version-number dependencies ...

@@ -4000,7 +4005,7 @@ Replaces: mail-transport-agent

This can be determined using the command - objdump -p /usr/lib/libz.so.1.1.3 | grep SONAME +objdump -p /usr/lib/libz.so.1.1.3 | grep SONAME

@@ -4022,7 +4027,7 @@ Replaces: mail-transport-agent 1.3 was 1:1.1.3-1, then the shlibs entry for this library could say: - libz 1 zlib1g (>= 1:1.1.3) +libz 1 zlib1g (>= 1:1.1.3) The version-specific dependency is to avoid warnings from the dynamic linker about using older shared libraries with @@ -4041,11 +4046,11 @@ Replaces: mail-transport-agent debian/shlibs.package instead). Then let debian/rules install it in the control area: - install -m644 debian/shlibs debian/tmp/DEBIAN +install -m644 debian/shlibs debian/tmp/DEBIAN or, in the case of a multi-binary package: - install -m644 debian/shlibs.package debian/package/DEBIAN/shlibs +install -m644 debian/shlibs.package debian/package/DEBIAN/shlibs An alternative way of doing this is to create the shlibs file in the control area directly from @@ -4089,19 +4094,19 @@ Replaces: mail-transport-agent debian/substvars, and the lines have been wrapped for ease of reading): - $ dpkg-shlibdeps -O debian/tmp/usr/bin/foo - dpkg-shlibdeps: warning: unable to find dependency - information for shared library libbar (soname 1, - path /usr/lib/libbar.so.1, dependency field Depends) - shlibs:Depends=libc6 (>= 2.2.2-2) +$ dpkg-shlibdeps -O debian/tmp/usr/bin/foo +dpkg-shlibdeps: warning: unable to find dependency + information for shared library libbar (soname 1, + path /usr/lib/libbar.so.1, dependency field Depends) +shlibs:Depends=libc6 (>= 2.2.2-2) You can then run ldd on the binary to find the full location of the library concerned: - $ ldd foo - libbar.so.1 => /usr/lib/libbar.so.1 (0x4001e000) - libc.so.6 => /lib/libc.so.6 (0x40032000) - /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) +$ ldd foo +libbar.so.1 => /usr/lib/libbar.so.1 (0x4001e000) +libc.so.6 => /lib/libc.so.6 (0x40032000) +/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) So the foo binary depends on the libbar shared library, but no package seems to @@ -4109,10 +4114,10 @@ Replaces: mail-transport-agent libbar.so.1 in /var/lib/dpkg/info/. Let's determine the package responsible: - $ dpkg -S /usr/lib/libbar.so.1 - bar1: /usr/lib/libbar.so.1 - $ dpkg -s bar1 | grep Version - Version: 1.0-1 +$ dpkg -S /usr/lib/libbar.so.1 +bar1: /usr/lib/libbar.so.1 +$ dpkg -s bar1 | grep Version +Version: 1.0-1 This tells us that the bar1 package, version 1.0-1, is the one we are using. Now we can file a bug against the @@ -4121,7 +4126,7 @@ Replaces: mail-transport-agent Including the following line into your debian/shlibs.local file: - libbar 1 bar1 (>= 1.0-1) +libbar 1 bar1 (>= 1.0-1) should allow the package build to work.

@@ -4198,12 +4203,12 @@ Replaces: mail-transport-agent

For example, the emacs package will contain - mkdir -p /usr/local/lib/emacs/site-lisp || true +mkdir -p /usr/local/lib/emacs/site-lisp || true in the postinst script, and - rmdir /usr/local/lib/emacs/site-lisp || true - rmdir /usr/local/lib/emacs || true +rmdir /usr/local/lib/emacs/site-lisp || true +rmdir /usr/local/lib/emacs || true in the prerm script.

@@ -4437,8 +4442,8 @@ Replaces: mail-transport-agent bind would have a lower number than the script that starts inn so that it runs first: - /etc/rc2.d/S17bind - /etc/rc2.d/S70inn +/etc/rc2.d/S17bind +/etc/rc2.d/S70inn

@@ -4507,7 +4512,7 @@ Replaces: mail-transport-agent should include a test statement at the top of the script, like this: - test -f program-executed-later-in-script || exit 0 +test -f program-executed-later-in-script || exit 0

@@ -4575,13 +4580,13 @@ Replaces: mail-transport-agent To get the default behavior for your package, put in your postinst script - update-rc.d package defaults >/dev/null +update-rc.d package defaults >/dev/null and in your postrm - if [ purge = "$1" ]; then - update-rc.d package remove >/dev/null - fi +if [ purge = "$1" ]; then + update-rc.d package remove >/dev/null +fi

@@ -4656,54 +4661,54 @@ Replaces: mail-transport-agent

- #!/bin/sh - # - # Original version by Robert Leslie - # <rob@mars.org>, edited by iwj and cs - - test -x /usr/sbin/named || exit 0 - - # Source defaults file. - PARAMS='' - if [ -f /etc/default/bind ]; then - . /etc/default/bind - fi - - - case "$1" in - start) - echo -n "Starting domain name service: named" - start-stop-daemon --start --quiet --exec /usr/sbin/named \ - -- $PARAMS - echo "." - ;; - stop) - echo -n "Stopping domain name service: named" - start-stop-daemon --stop --quiet \ - --pidfile /var/run/named.pid --exec /usr/sbin/named - echo "." - ;; - restart) - echo -n "Restarting domain name service: named" - start-stop-daemon --stop --quiet \ - --pidfile /var/run/named.pid --exec /usr/sbin/named - start-stop-daemon --start --verbose --exec /usr/sbin/named \ - -- $PARAMS - echo "." - ;; - force-reload|reload) - echo -n "Reloading configuration of domain name service: named" - start-stop-daemon --stop --signal 1 --quiet \ - --pidfile /var/run/named.pid --exec /usr/sbin/named - echo "." - ;; - *) - echo "Usage: /etc/init.d/bind {start|stop|restart|reload|force-reload}" >&2 - exit 1 - ;; - esac - - exit 0 +#!/bin/sh +# +# Original version by Robert Leslie +# <rob@mars.org>, edited by iwj and cs + +test -x /usr/sbin/named || exit 0 + +# Source defaults file. +PARAMS='' +if [ -f /etc/default/bind ]; then + . /etc/default/bind +fi + + +case "$1" in +start) + echo -n "Starting domain name service: named" + start-stop-daemon --start --quiet --exec /usr/sbin/named \ + -- $PARAMS + echo "." + ;; +stop) + echo -n "Stopping domain name service: named" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/named.pid --exec /usr/sbin/named + echo "." + ;; +restart) + echo -n "Restarting domain name service: named" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/named.pid --exec /usr/sbin/named + start-stop-daemon --start --verbose --exec /usr/sbin/named \ + -- $PARAMS + echo "." + ;; +force-reload|reload) + echo -n "Reloading configuration of domain name service: named" + start-stop-daemon --stop --signal 1 --quiet \ + --pidfile /var/run/named.pid --exec /usr/sbin/named + echo "." + ;; +*) + echo "Usage: /etc/init.d/bind {start|stop|restart|reload|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0

@@ -4714,9 +4719,9 @@ Replaces: mail-transport-agent

- # Specified parameters to pass to named. See named(8). - # You may uncomment the following line, and edit to taste. - #PARAMS="-u nobody" +# Specified parameters to pass to named. See named(8). +# You may uncomment the following line, and edit to taste. +#PARAMS="-u nobody"

@@ -4730,14 +4735,14 @@ Replaces: mail-transport-agent and having named running in all runlevels, it can say in its postinst: - update-rc.d bind defaults >/dev/null +update-rc.d bind defaults >/dev/null And in its postrm, to remove the links when the package is purged: - if [ purge = "$1" ]; then - update-rc.d bind remove >/dev/null - fi +if [ purge = "$1" ]; then + update-rc.d bind remove >/dev/null +fi

@@ -4754,9 +4759,9 @@ Replaces: mail-transport-agent via cron, it should place a file with the name of the package in one of the following directories: - /etc/cron.daily - /etc/cron.weekly - /etc/cron.monthly +/etc/cron.daily +/etc/cron.weekly +/etc/cron.monthly As these directory names imply, the files within them are executed on a daily, weekly, or monthly basis, @@ -4834,13 +4839,16 @@ Replaces: mail-transport-agent mention ``him'' directly. For example, if you think of saying - I'm starting network daemons: nfsd mountd. +I'm starting network daemons: nfsd mountd. just say - Starting network daemons: nfsd mountd. -

-

+Starting network daemons: nfsd mountd. +
+

+ + +

The following formats should be used

@@ -4855,7 +4863,7 @@ Replaces: mail-transport-agent daemons. The output should look like this (a single line, no leading spaces): - Starting <description>: <daemon-1> <daemon-2> <...> <daemon-n>. +Starting <description>: <daemon-1> <daemon-2> <...> <daemon-n>. The <description> should describe the subsystem the daemon or set of daemons are part of, while @@ -4866,24 +4874,24 @@ Replaces: mail-transport-agent

For example, the output of /etc/init.d/lpd would look like: - Starting printer spooler: lpd. +Starting printer spooler: lpd.

This can be achieved by saying - echo -n "Starting printer spooler: lpd" - start-stop-daemon --start --quiet lpd - echo "." +echo -n "Starting printer spooler: lpd" +start-stop-daemon --start --quiet lpd +echo "." in the script. If you have more than one daemon to start, you should do the following: - echo -n "Starting remote file system services:" - echo -n " nfsd"; start-stop-daemon --start --quiet nfsd - echo -n " mountd"; start-stop-daemon --start --quiet mountd - echo -n " ugidd"; start-stop-daemon --start --quiet ugidd - echo "." +echo -n "Starting remote file system services:" +echo -n " nfsd"; start-stop-daemon --start --quiet nfsd +echo -n " mountd"; start-stop-daemon --start --quiet mountd +echo -n " ugidd"; start-stop-daemon --start --quiet ugidd +echo "." This makes it possible for the user to see what takes so long and when the final daemon has been @@ -4891,8 +4899,9 @@ Replaces: mail-transport-agent example above the system administrator can easily comment out a line if he don't wants to start a specific daemon, while the displayed message still - looks good.

- + looks good. +

+

when something needs to be configured.

@@ -4901,18 +4910,22 @@ Replaces: mail-transport-agent If you have to set up different parameters of the system upon boot up, you should use this format: - Setting <parameter> to `<value>'. -

+Setting <parameter> to `<value>'. +
+

You can use the following echo statement to get the quotes right: - echo "Setting DNS domainname to \`"value"'." -

+echo "Setting DNS domainname to \`"value"'." + +

Note that the left quotation mark (`) is different - from the right (').

+ from the right ('). +

+

when a daemon is stopped.

@@ -4925,7 +4938,7 @@ Replaces: mail-transport-agent

So stopping the printer daemon will like like this: - Stopping printer spooler: lpd. +Stopping printer spooler: lpd.

@@ -4938,17 +4951,19 @@ Replaces: mail-transport-agent via `netdate' or killing all processes when the system comes down. Your message should like this: - Doing something very useful...done. +Doing something very useful...done. You should print the `done.' right after the job has been completed, so that the user gets informed why he has to wait. You can get this behavior by saying - echo -n "Doing something very useful..." - do_something - echo "done." +echo -n "Doing something very useful..." +do_something +echo "done." - in your script.

+ in your script. +

+

when the configuration is reloaded.

@@ -4957,8 +4972,10 @@ Replaces: mail-transport-agent When a daemon is forced to reload its configuration files you should use the following format: - Reloading <daemon's-name> configuration...done. -

+Reloading <daemon's-name> configuration...done. + +

+

when none of the above rules apply.

@@ -4967,9 +4984,12 @@ Replaces: mail-transport-agent If you have to print a message that doesn't fit into the styles described above, you can use something appropriate, but please have a look at the overall - rules listed above.

-

- + rules listed above. +

+ + +

+ Menus @@ -5182,10 +5202,10 @@ Replaces: mail-transport-agent Here is an example of a wrapper script for this purpose: - #!/bin/sh - BAR=${BAR:-/var/lib/fubar} - export BAR - exec /usr/lib/foo/foo "$@" +#!/bin/sh +BAR=${BAR:-/var/lib/fubar} +export BAR +exec /usr/lib/foo/foo "$@"

@@ -5217,10 +5237,10 @@ Replaces: mail-transport-agent

Generally the following compilation parameters should be used: - CC = gcc - CFLAGS = -O2 -Wall # sane warning options vary between programs - LDFLAGS = # none - install -s # (or use strip on the files in debian/tmp) +CC = gcc +CFLAGS = -O2 -Wall # sane warning options vary between programs +LDFLAGS = # none +install -s # (or use strip on the files in debian/tmp)

@@ -5288,19 +5308,19 @@ Replaces: mail-transport-agent - CFLAGS = -O2 -Wall - INSTALL = install - INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644 - INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755 - INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755 - INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755 - - ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) - CFLAGS += -g - endif - ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) - INSTALL_PROGRAM += -s - endif +CFLAGS = -O2 -Wall +INSTALL = install +INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644 +INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755 +INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755 +INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755 + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) +CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) +INSTALL_PROGRAM += -s +endif Please note that the above example is merely informative, @@ -5341,7 +5361,7 @@ Replaces: mail-transport-agent Note that all installed shared libraries should be stripped with - strip --strip-unneeded <your-lib> +strip --strip-unneeded <your-lib> (The option `--strip-unneeded' makes strip remove only the symbols which aren't needed for relocation @@ -5590,10 +5610,10 @@ Replaces: mail-transport-agent For example, in your Makefile or debian/rules, do things like: - ln -fs gcc $(prefix)/bin/cc - ln -fs gcc debian/tmp/usr/bin/cc - ln -fs ../sbin/sendmail $(prefix)/bin/runq - ln -fs ../sbin/sendmail debian/tmp/usr/bin/runq +ln -fs gcc $(prefix)/bin/cc +ln -fs gcc debian/tmp/usr/bin/cc +ln -fs ../sbin/sendmail $(prefix)/bin/runq +ln -fs ../sbin/sendmail debian/tmp/usr/bin/runq

@@ -5918,14 +5938,14 @@ Replaces: mail-transport-agent file (for more information see ): - /var/log/foo/* { - rotate 12 - weekly - compress - postrotate - /etc/init.d/foo force-reload - endscript - } +/var/log/foo/* { +rotate 12 +weekly +compress +postrotate +/etc/init.d/foo force-reload +endscript +} Which rotates all files under `/var/log/foo', saves 12 compressed generations, and sends a HUP signal at the end of @@ -6050,7 +6070,7 @@ Replaces: mail-transport-agent If a program needs to specify an architecture specification string in some place, the following format should be used: - <arch>-<os> +<arch>-<os> where `<arch>' is one of the following: i386, alpha, arm, m68k, powerpc, sparc and `<os>' is one of: linux, gnu. Use @@ -6189,13 +6209,14 @@ Replaces: mail-transport-agent

Cgi-bin executable files are installed in the directory - /usr/lib/cgi-bin/<cgi-bin-name> +/usr/lib/cgi-bin/<cgi-bin-name> and should be referred to as - http://localhost/cgi-bin/<cgi-bin-name> -

- +http://localhost/cgi-bin/<cgi-bin-name> + +

+

Access to html documents

@@ -6207,9 +6228,10 @@ Replaces: mail-transport-agent backward compatibility, see and can be referred to as - http://localhost/doc/<package>/<filename> -

- +http://localhost/doc/<package>/<filename> + +

+

Web Document Root

@@ -6220,7 +6242,7 @@ Replaces: mail-transport-agent register the Web Application via the menu package. If access to the web-root is unavoidable then use - /var/www +/var/www as the Document Root. This might be just a symbolic link to the location where the sysadmin has @@ -6327,15 +6349,16 @@ Replaces: mail-transport-agent name will not just be used by that package. For example, in this situation the INN package says: - Please enter the `mail name' of your system. This is the - hostname portion of the address to be shown on outgoing - news and mail messages. The default is - syshostname, your system's host name. Mail - name [`syshostname']: +Please enter the `mail name' of your system. This is the +hostname portion of the address to be shown on outgoing +news and mail messages. The default is +syshostname, your system's host name. Mail +name [`syshostname']: where syshostname is the output of hostname - --fqdn.

- + --fqdn. +

+ News system configuration @@ -6749,8 +6772,8 @@ Replaces: mail-transport-agent may be provided. This symbolic link can be created from debian/rules like this: - ln -s ../man7/undocumented.7.gz \ - debian/tmp/usr/share/man/man[1-9]/the_requested_manpage.[1-9].gz +ln -s ../man7/undocumented.7.gz \ +debian/tmp/usr/share/man/man[1-9]/the_requested_manpage.[1-9].gz This manpage claims that the lack of a manpage has been reported as a bug, so you may only do this if it really has @@ -6795,8 +6818,8 @@ Replaces: mail-transport-agent dir file, in its post-installation script: - install-info --quiet --section Development Development \ - /usr/share/info/foobar.info +install-info --quiet --section Development Development \ +/usr/share/info/foobar.info

@@ -6813,7 +6836,7 @@ Replaces: mail-transport-agent

You should remove the entries in the pre-removal script: - install-info --quiet --remove /usr/share/info/foobar.info +install-info --quiet --remove /usr/share/info/foobar.info

@@ -6880,19 +6903,19 @@ Replaces: mail-transport-agent this is to put the following in the package's postinst: - if [ "$1" = "configure" ]; then - if [ -d /usr/doc -a ! -e /usr/doc/#PACKAGE# \ - -a -d /usr/share/doc/#PACKAGE# ]; then - ln -sf ../share/doc/#PACKAGE# /usr/doc/#PACKAGE# - fi - fi +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/#PACKAGE# \ + -a -d /usr/share/doc/#PACKAGE# ]; then + ln -sf ../share/doc/#PACKAGE# /usr/doc/#PACKAGE# + fi +fi And the following in the package's prerm: - if [ \( "$1" = "upgrade" -o "$1" = "remove" \) \ - -a -L /usr/doc/#PACKAGE# ]; then - rm -f /usr/doc/#PACKAGE# - fi +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) \ + -a -L /usr/doc/#PACKAGE# ]; then + rm -f /usr/doc/#PACKAGE# +fi

-- 2.39.2