From 8a7e391530b96b7c2aa205096d9ec187cefe12f7 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Fri, 25 Feb 2011 13:23:07 +0100 Subject: [PATCH] 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 --- disk-utils/Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.39.5