Hi,
I just did an NMU of gsfonts-other to move it to the FHS. Here's the
diff:
--- gsfonts-other-5.10.orig/debian/changelog
+++ gsfonts-other-5.10/debian/changelog
@@ -1,3 +1,12 @@
+gsfonts-other (5.10-2.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Move /usr/doc to /usr/share/doc (closes: #91485).
+ * Include Section: and Priority: fields in the .deb.
+ * Bump standards-version to 3.1.1.
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 4 Aug 2001 12:32:52 +0100
+
gsfonts-other (5.10-2) unstable; urgency=low
* New maintainer.
--- gsfonts-other-5.10.orig/debian/control
+++ gsfonts-other-5.10/debian/control
@@ -2,7 +2,7 @@
Section: non-free/text
Priority: optional
Maintainer: Torsten Landschoff <torsten@debian.org>
-Standards-Version: 2.4.0.0
+Standards-Version: 3.1.1
Package: gsfonts-other
Architecture: all
--- gsfonts-other-5.10.orig/debian/rules
+++ gsfonts-other-5.10/debian/rules
@@ -32,21 +32,25 @@
-rm -rf debian/tmp
install -d -o root -g root -m 0755 debian/tmp debian/tmp/DEBIAN
install -d -o root -g root -m 0755 debian/tmp/usr/lib/ghostscript/fonts
- install -d -o root -g root -m 0755 debian/tmp/usr/doc/gsfonts-other
+ install -d -o root -g root -m 0755 \
+ debian/tmp/usr/share/doc/gsfonts-other
install -d -o root -g root -m 0755 debian/tmp/etc
+ install -o root -g root -m 0755 debian/postinst debian/prerm \
+ debian/tmp/DEBIAN
install -o root -g root -m 0644 \
*.pfa *.gsf *.afm debian/tmp/usr/lib/ghostscript/fonts
# install -o root -g root -m 0644 \
# Fontmap debian/tmp/etc/gs.Fontmap
# ln -sf /etc/gs.Fontmap debian/tmp/usr/lib/ghostscript/fonts/Fontmap
install -o root -g root -m 0644 \
- debian/changelog debian/tmp/usr/doc/gsfonts-other/changelog.Debian
- gzip -9v debian/tmp/usr/doc/gsfonts-other/*
+ debian/changelog \
+ debian/tmp/usr/share/doc/gsfonts-other/changelog.Debian
+ gzip -9v debian/tmp/usr/share/doc/gsfonts-other/*
install -o root -g root -m 0644 \
- debian/copyright debian/tmp/usr/doc/gsfonts-other/copyright
+ debian/copyright debian/tmp/usr/share/doc/gsfonts-other/copyright
# install -o root -g root -m 0644 \
# debian/conffiles debian/tmp/DEBIAN/conffiles
- dpkg-gencontrol
+ dpkg-gencontrol -isp
chown -R root.root debian/tmp
chmod -R g-ws debian/tmp
dpkg --build debian/tmp ..
--- gsfonts-other-5.10.orig/debian/prerm
+++ gsfonts-other-5.10/debian/prerm
@@ -0,0 +1,5 @@
+#! /bin/sh -e
+
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/gsfonts-other ]; then
+ rm -f /usr/doc/gsfonts-other
+fi
--- gsfonts-other-5.10.orig/debian/postinst
+++ gsfonts-other-5.10/debian/postinst
@@ -0,0 +1,7 @@
+#! /bin/sh -e
+
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/gsfonts-other -a -d /usr/share/doc/gsfonts-other ]; then
+ ln -sf ../share/doc/gsfonts-other /usr/doc/gsfonts-other
+ fi
+fi
Thanks,