diff options
-rw-r--r-- | sysutils/topless/Makefile | 4 | ||||
-rw-r--r-- | sysutils/topless/files/patch-Makefile | 20 |
2 files changed, 21 insertions, 3 deletions
diff --git a/sysutils/topless/Makefile b/sysutils/topless/Makefile index 8458250bcb44..bce8a57a6bf0 100644 --- a/sysutils/topless/Makefile +++ b/sysutils/topless/Makefile @@ -12,8 +12,6 @@ COMMENT= Display command output on the whole screen like "top" USES= perl5 USE_PERL5= build -MAN1= topless.1 -PLIST_FILES= bin/topless +PLIST_FILES= bin/topless man/man1/topless.1.gz -NO_STAGE= yes .include <bsd.port.mk> diff --git a/sysutils/topless/files/patch-Makefile b/sysutils/topless/files/patch-Makefile new file mode 100644 index 000000000000..a911131ec01f --- /dev/null +++ b/sysutils/topless/files/patch-Makefile @@ -0,0 +1,20 @@ +--- Makefile.orig 2014-06-29 23:25:53.573437041 +0800 ++++ Makefile 2014-06-29 23:26:20.982465783 +0800 +@@ -33,12 +33,12 @@ ${MAN1}: ${POD} + ${POD2MAN} -c "${POD_CENTER}" -r "${POD_RELEASE}" ${POD} > ${MAN1} + + install: +- ${MKDIR} ${BINDIR} ${MANDIR}/man1 +- ${BSD_INSTALL_SCRIPT} ${PROG} ${BINDIR} +- ${BSD_INSTALL_MAN} ${MAN1} ${MANDIR}/man1 ++ ${MKDIR} ${BINDIR} $(DESTDIR)${MANDIR}/man1 ++ ${BSD_INSTALL_SCRIPT} ${PROG} $(DESTDIR)${BINDIR} ++ ${BSD_INSTALL_MAN} ${MAN1} $(DESTDIR)${MANDIR}/man1 + if [ `id -u` = 0 ]; then \ +- ${CHOWN} ${BINOWN}:${BINGRP} ${BINDIR}/${PROG}; \ +- ${CHOWN} ${MANOWN}:${MANGRP} ${MANDIR}/man1/${MAN1}; \ ++ ${CHOWN} ${BINOWN}:${BINGRP} $(DESTDIR)${BINDIR}/${PROG}; \ ++ ${CHOWN} ${MANOWN}:${MANGRP} $(DESTDIR)${MANDIR}/man1/${MAN1}; \ + fi + + clean: |