]> err.no Git - util-linux/commitdiff
Deliver agetty as both agetty and getty, preferring agetty.
authorLaMont Jones <lamont@debian.org>
Fri, 12 Nov 2010 02:40:31 +0000 (19:40 -0700)
committerLaMont Jones <lamont@debian.org>
Fri, 12 Nov 2010 02:40:31 +0000 (19:40 -0700)
Addresses-Debian-Bug: 117596
Signed-off-by: LaMont Jones <lamont@debian.org>
Conflicts:

debian/rules

debian/rules

index f947f0614aaf124f6a5fa60065cdb5885c900e87..e46255f71c50be71a9dce3895d508fcfd3658ec4 100755 (executable)
@@ -66,7 +66,7 @@ install: build
        dh_installdirs
        $(MAKE) install DESTDIR=`pwd`/debian/util-linux INSTALL_STRIP_FLAG=""
        dh_installdocs -i -s
-       install -m 644 login-utils/README.modems-with-agetty debian/util-linux/usr/share/doc/util-linux/README.modems-with-getty
+       install -m 644 login-utils/README.modems-with-agetty debian/util-linux/usr/share/doc/util-linux/README.modems-with-agetty
        dh_installexamples -i -s
        dh_installmenu -i -s
        dh_installcron -i -s
@@ -148,11 +148,8 @@ else
 endif
 endif
 ifneq ($(DEB_HOST_ARCH_OS),hurd)
-       cd debian/util-linux/sbin ; mv agetty getty
-       cd debian/util-linux/usr/share/man/man8 ; mv agetty.8 getty.8
-       perl -pi.bak -e 's/agetty/getty/g' debian/util-linux/usr/share/man/man8/getty.8 \
-                 debian/util-linux/usr/share/doc/util-linux/README.*
-       rm `find debian/util-linux/usr -name \*.bak`
+       cd debian/util-linux/sbin ; ln agetty getty
+       cd debian/util-linux/usr/share/man/man8 ; ln agetty.8 getty.8
 endif
 ifneq ($(DEB_HOST_ARCH_OS),linux)
        cd debian/util-linux/sbin ; mv mkswap mkswap.linux