diff --git a/net-mgmt/subcalc/Makefile b/net-mgmt/subcalc/Makefile index c3731d5b7938..3b2915c4583f 100644 --- a/net-mgmt/subcalc/Makefile +++ b/net-mgmt/subcalc/Makefile @@ -1,15 +1,16 @@ PORTNAME= subcalc DISTVERSIONPREFIX= v DISTVERSION= 1.3 +PORTREVISION= 1 CATEGORIES= net-mgmt MAINTAINER= csjp@FreeBSD.org COMMENT= Advanced IP/IPv6 subnet calculation and discovery WWW= http://www.seccuris.com USE_GITHUB= yes GH_ACCOUNT= csjayp -PLIST_FILES= bin/subcalc man/man1/subcalc.1.gz +PLIST_FILES= bin/subcalc share/man/man1/subcalc.1.gz .include diff --git a/net-mgmt/subcalc/files/patch-Makefile b/net-mgmt/subcalc/files/patch-Makefile index 363210787d9e..2169a11d559c 100644 --- a/net-mgmt/subcalc/files/patch-Makefile +++ b/net-mgmt/subcalc/files/patch-Makefile @@ -1,23 +1,23 @@ ---- Makefile.orig 2018-06-30 14:11:02.000000000 -0700 -+++ Makefile 2020-03-18 08:43:27.327184000 -0700 -@@ -13,14 +13,14 @@ +--- Makefile.orig 2018-06-30 21:11:02 UTC ++++ Makefile +@@ -13,14 +13,14 @@ install: $(CC) -o $@ $(OBJS) $(LIBS) $(CFLAGS) install: - [ -d $(PREFIX)/bin ] || mkdir -p $(PREFIX)/bin - cp subcalc $(PREFIX)/bin - [ -d $(PREFIX)/share/man/man1/ ] || mkdir -p $(PREFIX)/share/man/man1/ - cp subcalc.1 $(PREFIX)/share/man/man1/ + [ -d $(DESTDIR)$(PREFIX)/bin ] || mkdir -p $(DESTDIR)$(PREFIX)/bin + cp subcalc $(DESTDIR)$(PREFIX)/bin -+ [ -d $(DESTDIR)$(PREFIX)/man/man1/ ] || mkdir -p $(DESTDIR)$(PREFIX)/man/man1/ -+ cp subcalc.1 $(DESTDIR)$(PREFIX)/man/man1/ ++ [ -d $(DESTDIR)$(PREFIX)/share/man/man1/ ] || mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1/ ++ cp subcalc.1 $(DESTDIR)$(PREFIX)/share/man/man1/ deinstall: - rm -f $(PREFIX)/share/man/man1/subcalc.1.gz - rm -f $(PREFIX)/bin/subcalc -+ rm -f $(DESTDIR)$(PREFIX)/man/man1/subcalc.1.gz ++ rm -f $(DESTDIR)$(PREFIX)/share/man/man1/subcalc.1.gz + rm -f $(DESTDIR)$(PREFIX)/bin/subcalc clean: rm -f subcalc