From: Tollef Fog Heen Date: Fri, 25 Feb 2011 12:23:07 +0000 (+0100) Subject: Add symlink from mkfs.swap to mkswap X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a7e391530b96b7c2aa205096d9ec187cefe12f7;p=util-linux Add symlink from mkfs.swap to mkswap This makes mkfs -t swap work, which is nice for consistency. Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=544783 Signed-off-by: Tollef Fog Heen --- diff --git a/disk-utils/Makefile.am b/disk-utils/Makefile.am index ed0a6e4b..c2919848 100644 --- a/disk-utils/Makefile.am +++ b/disk-utils/Makefile.am @@ -69,3 +69,10 @@ if HAVE_SELINUX mkswap_LDADD += -lselinux endif +install-exec-hook: + $(LN_S) mkswap $(DESTDIR)$(sbindir)/mkfs.swap + echo ".so man8/mkswap.8" > $(DESTDIR)$(man8dir)/mkfs.swap.8 + +uninstall-hook: + rm -f $(DESTDIR)$(sbindir)/mkfs.swap + rm -f $(DESTDIR)$(man8dir)/mkfs.swap.8