diff --git a/net-mgmt/subcalc/Makefile b/net-mgmt/subcalc/Makefile index e33ed23c6d21..06ab2dd905bd 100644 --- a/net-mgmt/subcalc/Makefile +++ b/net-mgmt/subcalc/Makefile @@ -10,9 +10,6 @@ MASTER_SITE_SUBDIR= subcalc MAINTAINER= csjp@FreeBSD.org COMMENT= Advanced IP/IPv6 subnet calculation and discovery -MAN1= subcalc.1 -MANCOMPRESSED= yes -PLIST_FILES= bin/subcalc +PLIST_FILES= bin/subcalc man/man1/subcalc.1.gz -NO_STAGE= yes .include diff --git a/net-mgmt/subcalc/files/patch-Makefile b/net-mgmt/subcalc/files/patch-Makefile new file mode 100644 index 000000000000..8538a3d83217 --- /dev/null +++ b/net-mgmt/subcalc/files/patch-Makefile @@ -0,0 +1,13 @@ +--- Makefile.orig 2014-06-20 23:09:15.019376097 +0800 ++++ Makefile 2014-06-20 23:09:26.777375032 +0800 +@@ -15,8 +15,8 @@ subcalc: $(OBJS) + $(CC) -o $@ $(OBJS) $(LIBS) + + install: +- cp subcalc $(PREFIX)/bin +- cp subcalc.1.gz $(PREFIX)/man/man1/ ++ cp subcalc $(DESTDIR)$(PREFIX)/bin ++ cp subcalc.1.gz $(DESTDIR)$(PREFIX)/man/man1/ + + deinstall: + rm -f $(PREFIX)/man/man1/subcalc.1.gz