]> err.no Git - util-linux/commitdiff
build: /usr/bin/rename needs to be an alternative. Closes: #439647
authorLaMont Jones <lamont@mmjgroup.com>
Sun, 26 Aug 2007 17:20:53 +0000 (11:20 -0600)
committerLaMont Jones <lamont@mmjgroup.com>
Sun, 26 Aug 2007 17:20:53 +0000 (11:20 -0600)
debian/fdformat [deleted file]
debian/rules
debian/util-linux.conffiles [moved from debian/conffiles with 100% similarity]
debian/util-linux.postinst [moved from debian/postinst with 88% similarity]
debian/util-linux.postrm [moved from debian/postrm with 100% similarity]
debian/util-linux.preinst [moved from debian/preinst with 100% similarity]
debian/util-linux.prerm [moved from debian/prerm with 80% similarity]

diff --git a/debian/fdformat b/debian/fdformat
deleted file mode 100644 (file)
index b398731..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-echo '
-Note: /usr/bin/fdformat is obsolete and is no longer available.
-Please use /usr/bin/superformat instead (make sure you have the 
-fdutils package installed first).  Also, there had been some
-major changes from version 4.x.  Please refer to the documentation.
-'
-
index 598ea244831575a3ed161a70d141f0675fecd532..822fd513d85469e0b81cac612d9fa2e1b879c447 100755 (executable)
@@ -88,6 +88,9 @@ endif
        mv debian/util-linux/usr/share/man/man8/linux64.8 debian/util-linux/usr/share/man/man1/linux64.1
        # the version in bsdmainutils seems newer.
        rm -f debian/bsdutils/usr/bin/look debian/bsdutils/usr/share/man/man1/look.1
+       # Alternatives
+       mv debian/util-linux/usr/bin/rename debian/util-linux/usr/bin/rename.ul
+       mv debian/util-linux/usr/share/man/man1/rename.1 debian/util-linux/usr/share/man/man1/rename.ul.1
        #
        #
        mv debian/util-linux/usr/share/getopt/* debian/util-linux/usr/share/doc/util-linux/examples
similarity index 100%
rename from debian/conffiles
rename to debian/util-linux.conffiles
similarity index 88%
rename from debian/postinst
rename to debian/util-linux.postinst
index 7886e9ae23ee45d33d1782339847edb4adbc75aa..9470d8287d0a1a6dbf9c62c116c4be2c73766e87 100644 (file)
@@ -10,6 +10,8 @@ update-alternatives --install /usr/bin/pager pager /bin/more 50 \
   --slave /usr/share/man/man1/pager.1.gz pager.1.gz /usr/share/man/man1/more.1.gz
 update-alternatives --install /usr/bin/pager pager /usr/bin/pg 10 \
   --slave /usr/share/man/man1/pager.1.gz pager.1.gz /usr/share/man/man1/pg.1.gz
+update-alternatives --install /usr/bin/rename rename /usr/bin/rename.ul 20 \
+  --slave /usr/share/man/man1/rename.1.gz rename.1.gz /usr/share/man/man1/rename.ul.1.gz
 
 #
 #      Check if links to hwclock.sh are present in runlevel "6".
similarity index 100%
rename from debian/postrm
rename to debian/util-linux.postrm
similarity index 100%
rename from debian/preinst
rename to debian/util-linux.preinst
similarity index 80%
rename from debian/prerm
rename to debian/util-linux.prerm
index 81490969698ba176bcf3032dec55fac061d5954e..2d9a068c2eb8115a8a8ec2e19825c794d296b9c8 100644 (file)
@@ -8,6 +8,7 @@ case "$1" in
        remove)
                update-alternatives --remove pager /bin/more
                update-alternatives --remove pager /usr/bin/pg
+               update-alternatives --remove rename /usr/bin/rename.ul
                ;;
        upgrade|failed-upgrade|deconfigure)
                ;;