freebsd-ports/www/gn/Makefile

53 lines
1.5 KiB
Makefile
Raw Normal View History

1994-09-23 16:25:10 -04:00
# New ports collection makefile for: gn
1996-02-09 04:42:10 -05:00
# Version required: 2.24
1994-09-23 16:25:10 -04:00
# Date created: 20 Sep 1994
# Whom: adam
#
# $Id: Makefile,v 1.18 1996/12/07 11:26:57 max Exp $
1994-09-23 16:25:10 -04:00
#
1996-02-09 04:42:10 -05:00
DISTNAME= gn-2.24
CATEGORIES= www net
1995-04-15 01:42:12 -04:00
MASTER_SITES= ftp://ftp.acns.nwu.edu/pub/gn/
MAINTAINER= adam@veda.is
BUILD_DEPENDS= ${WAISDIR}/bin/waisindex:${PORTSDIR}/net/wais
IS_INTERACTIVE= yes
NO_PACKAGE= "Compiled in hostnames"
WAISDIR= ${PORTSDIR}/net/wais/work/freeWAIS-0.5
1994-09-23 16:25:10 -04:00
1995-04-15 01:42:12 -04:00
INETD_CONF= /etc/inetd.conf
CONF= ' stream tcp nowait nobody /usr/local/libexec/gn gn'
1995-04-15 01:42:12 -04:00
1994-09-23 16:25:10 -04:00
pre-build:
1996-11-13 06:49:04 -05:00
@ln -fs ${WAISDIR}/include ${WRKSRC}/waisgn/ir
@ln -fs ${WAISDIR}/bin ${WRKSRC}/waisgn
1994-09-23 16:25:10 -04:00
pre-install:
@mkdir -p ${WRKSRC}/etc ${WRKSRC}/libexec ${WRKSRC}/gnroot
@cd ${WRKSRC}/gnroot; \
tar -cf - -C ${WRKSRC} docs | tar xpf - && \
mv docs/sample.root.menu menu
post-install:
@cd ${PREFIX}; \
1996-02-09 04:42:10 -05:00
[ -s etc/gn_mime.types ] && \
if ! cmp -s etc/gn_mime.types ${WRKSRC}/etc/gn_mime.types; then \
echo mv etc/gn_mime.types etc/gn_mime.types.old; \
mv etc/gn_mime.types etc/gn_mime.types.old; \
fi; \
1996-02-09 04:42:10 -05:00
[ -s gnroot/menu ] && \
if ! cmp -s gnroot/menu ${WRKSRC}/gnroot/menu; then \
echo mv gnroot/menu gnroot/menu.old; \
mv gnroot/menu gnroot/menu.old; \
fi; \
tar -cf - -C ${WRKSRC} gnroot libexec bin etc | tar xpf - && \
(cd gnroot; ${WRKSRC}/bin/mkcache -r); \
awk '$$1 ~ /#*gopher/ && $$6 == "/usr/local/libexec/gn" { exit 1 }' \
${INETD_CONF} || { \ echo '#'gopher${CONF} >>${INETD_CONF}
}
1994-09-23 16:25:10 -04:00
.include <bsd.port.mk>