summaryrefslogtreecommitdiff
path: root/www/gn/Makefile
diff options
context:
space:
mode:
authorAdam David <adam@FreeBSD.org>1994-09-23 20:25:10 +0000
committerAdam David <adam@FreeBSD.org>1994-09-23 20:25:10 +0000
commit4acfb010e79e54e487695942b4e53a82e507371e (patch)
tree2bf47d86f35d8d6653e7bb9cf08541e6f6769e6d /www/gn/Makefile
parentInitial import of freewais, needed for using WAIS indexing with GN. (diff)
GN gopher and http server
Notes
Notes: svn path=/head/; revision=114
Diffstat (limited to 'www/gn/Makefile')
-rw-r--r--www/gn/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/www/gn/Makefile b/www/gn/Makefile
new file mode 100644
index 000000000000..71fa07ab4f3f
--- /dev/null
+++ b/www/gn/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: gn
+# Version required: 2.13
+# Date created: 20 Sep 1994
+# Whom: adam
+#
+# $Id: Makefile,v $
+#
+
+DISTNAME= gn-2.13
+MASTER_SITES= ftp://ftp.acns.nwu.edu/pub/gn
+INETD_CONF= /etc/inetd.conf
+CONF= ' stream tcp nowait nobody /usr/local/etc/gn gn'
+DEPENDS= net/wais
+
+pre-build:
+ @ln -s ../../../../wais/work/freeWAIS-0.3/ir work/${DISTNAME}/waisgn
+ @ln -s ../../../../wais/work/freeWAIS-0.3/bin work/${DISTNAME}/waisgn
+
+pre-install:
+ @grep -q '^gopher' ${INETD_CONF} || { \
+ echo gopher${CONF} >>${INETD_CONF}; \
+ kill -HUP \
+ `ps ax | grep inetd | grep -v grep | awk '{ print $$1 }'`; \
+ }
+ @if [ ! -d /usr/local/gnroot ]; then \
+ mkdir -p /usr/local/gnroot; \
+ cd /usr/local/gnroot; \
+ tar -C ${WRKSRC} -cf - docs | tar xpf -; \
+ mv docs/sample.root.menu menu; \
+ ${WRKSRC}/mkcache/mkcache -r; \
+ fi
+
+.include <bsd.port.mk>