From: LaMont Jones Date: Sun, 26 Aug 2007 17:20:53 +0000 (-0600) Subject: build: /usr/bin/rename needs to be an alternative. Closes: #439647 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=539a6ea6866e9afe2247ddbba436c0538a515617;p=util-linux build: /usr/bin/rename needs to be an alternative. Closes: #439647 --- diff --git a/debian/fdformat b/debian/fdformat deleted file mode 100644 index b398731f..00000000 --- a/debian/fdformat +++ /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. -' - diff --git a/debian/rules b/debian/rules index 598ea244..822fd513 100755 --- a/debian/rules +++ b/debian/rules @@ -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 diff --git a/debian/conffiles b/debian/util-linux.conffiles similarity index 100% rename from debian/conffiles rename to debian/util-linux.conffiles diff --git a/debian/postinst b/debian/util-linux.postinst similarity index 88% rename from debian/postinst rename to debian/util-linux.postinst index 7886e9ae..9470d828 100644 --- a/debian/postinst +++ b/debian/util-linux.postinst @@ -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". diff --git a/debian/postrm b/debian/util-linux.postrm similarity index 100% rename from debian/postrm rename to debian/util-linux.postrm diff --git a/debian/preinst b/debian/util-linux.preinst similarity index 100% rename from debian/preinst rename to debian/util-linux.preinst diff --git a/debian/prerm b/debian/util-linux.prerm similarity index 80% rename from debian/prerm rename to debian/util-linux.prerm index 81490969..2d9a068c 100644 --- a/debian/prerm +++ b/debian/util-linux.prerm @@ -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) ;;