freebsd-ports/www/gn/Makefile

34 lines
945 B
Makefile
Raw Normal View History

1994-09-23 16:25:10 -04:00
# New ports collection makefile for: gn
# Version required: 2.13
# Date created: 20 Sep 1994
# Whom: adam
#
1994-10-05 22:57:01 -04:00
# $Id: Makefile,v 1.2 1994/09/25 19:11:34 adam Exp $
1994-09-23 16:25:10 -04:00
#
DISTNAME= gn-2.13
MASTER_SITES= ftp://ftp.acns.nwu.edu/pub/gn/
1994-09-23 16:25:10 -04:00
INETD_CONF= /etc/inetd.conf
CONF= ' stream tcp nowait nobody /usr/local/etc/gn gn'
1994-10-05 22:57:01 -04:00
DEPENDS= ${PORTSDIR}/net/wais
1994-09-23 16:25:10 -04:00
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>