# New ports collection makefile for: gn # Version required: 2.17 # Date created: 20 Sep 1994 # Whom: adam # # $Id: Makefile,v 1.7 1995/04/15 05:41:29 asami Exp $ # DISTNAME= gn-2.22 CATEGORIES+= networking MASTER_SITES= ftp://ftp.acns.nwu.edu/pub/gn/ DEPENDS= ${PORTSDIR}/net/wais IS_INTERACTIVE= yes INETD_CONF= /etc/inetd.conf CONF= ' stream tcp nowait nobody /usr/local/etc/gn gn' pre-build: @ln -fs ${PORTSDIR}/net/wais/work/freeWAIS-0.3/ir ${WRKSRC}/waisgn @ln -fs ${PORTSDIR}/net/wais/work/freeWAIS-0.3/bin ${WRKSRC}/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