summaryrefslogtreecommitdiffstats
path: root/net/gopher
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2013-09-28 15:14:32 +0000
committererwin <erwin@FreeBSD.org>2013-09-28 15:14:32 +0000
commitd9748631518bc63e8411fc3cacd959d75cc445b8 (patch)
treea996565ed8f1e8507e9f35dae764f1ae01307f49 /net/gopher
parent60bce63298e6c7bb19a73c6ae96e6e4a6e79a069 (diff)
downloadFreeBSD-ports-d9748631518bc63e8411fc3cacd959d75cc445b8.zip
FreeBSD-ports-d9748631518bc63e8411fc3cacd959d75cc445b8.tar.gz
- Override install target to make it behave sanely
- Add stage support
Diffstat (limited to 'net/gopher')
-rw-r--r--net/gopher/Makefile14
-rw-r--r--net/gopher/pkg-plist3
2 files changed, 13 insertions, 4 deletions
diff --git a/net/gopher/Makefile b/net/gopher/Makefile
index c155db7..72ff288 100644
--- a/net/gopher/Makefile
+++ b/net/gopher/Makefile
@@ -16,12 +16,18 @@ COMMENT= Gopher client for access to a distributed document service
GNU_CONFIGURE= yes
USE_GMAKE= yes
-MAN1= gopher.1 gophfilt.1
-MAN5= gopherrc.5
-
-NO_STAGE= yes
pre-patch:
@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
's,<malloc.h>,<stdlib.h>,'
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/gopher/gopher ${STAGEDIR}${PREFIX}/bin/gopher
+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/gopher
+ ${INSTALL_DATA} ${WRKSRC}/gopher/gopher.rc ${STAGEDIR}${PREFIX}/etc/gopher/gopher.rc
+ ${INSTALL_DATA} ${WRKSRC}/gopher/gopherremote.rc ${STAGEDIR}${PREFIX}/etc/gopher/gopherremote.rc
+ ${INSTALL_DATA} ${WRKSRC}/gopher/gopher.hlp ${STAGEDIR}${PREFIX}/etc/gopher/gopher.hlp
+ ${INSTALL_PROGRAM} ${WRKSRC}/gophfilt/gophfilt ${STAGEDIR}${PREFIX}/bin/gophfilt
+ ${INSTALL_MAN} ${WRKSRC}/doc/gopher.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/doc/gophfilt.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/doc/gopherrc.5 ${STAGEDIR}${MAN5PREFIX}/man/man5
.include <bsd.port.mk>
diff --git a/net/gopher/pkg-plist b/net/gopher/pkg-plist
index 0f8bd60..ba14fdb 100644
--- a/net/gopher/pkg-plist
+++ b/net/gopher/pkg-plist
@@ -4,3 +4,6 @@ etc/gopher/gopher.rc
etc/gopher/gopherremote.rc
etc/gopher/gopher.hlp
@dirrm etc/gopher
+man/man1/gopher.1.gz
+man/man1/gophfilt.1.gz
+man/man5/gopherrc.5.gz
OpenPOWER on IntegriCloud