1994-09-23 16:25:10 -04:00
|
|
|
# New ports collection makefile for: gn
|
|
|
|
# Date created: 20 Sep 1994
|
|
|
|
# Whom: adam
|
|
|
|
#
|
1999-08-30 22:43:35 -04:00
|
|
|
# $FreeBSD$
|
1994-09-23 16:25:10 -04:00
|
|
|
#
|
|
|
|
|
2000-04-09 20:07:29 -04:00
|
|
|
PORTNAME= gn
|
|
|
|
PORTVERSION= 2.24
|
1996-11-18 06:44:27 -05:00
|
|
|
CATEGORIES= www net
|
1995-04-15 01:42:12 -04:00
|
|
|
MASTER_SITES= ftp://ftp.acns.nwu.edu/pub/gn/
|
|
|
|
|
1996-03-19 10:30:42 -05:00
|
|
|
MAINTAINER= adam@veda.is
|
|
|
|
|
1995-10-20 04:52:08 -04:00
|
|
|
BUILD_DEPENDS= ${WAISDIR}/bin/waisindex:${PORTSDIR}/net/wais
|
|
|
|
|
1994-11-09 18:08:51 -05:00
|
|
|
IS_INTERACTIVE= yes
|
1996-12-07 20:45:16 -05:00
|
|
|
NO_PACKAGE= "Compiled in hostnames"
|
1996-11-18 06:44:27 -05:00
|
|
|
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
|
1999-06-26 17:56:51 -04:00
|
|
|
CONF= ' stream tcp nowait nobody ${PREFIX}/libexec/gn gn'
|
1995-04-15 01:42:12 -04:00
|
|
|
|
1994-09-23 16:25:10 -04:00
|
|
|
pre-build:
|
1999-08-27 21:58:05 -04:00
|
|
|
@${LN} -fs ${WAISDIR}/include ${WRKSRC}/waisgn/ir
|
|
|
|
@${LN} -fs ${WAISDIR}/bin ${WRKSRC}/waisgn
|
1994-09-23 16:25:10 -04:00
|
|
|
|
|
|
|
pre-install:
|
1999-08-22 19:33:47 -04:00
|
|
|
@${MKDIR} ${WRKSRC}/etc ${WRKSRC}/libexec ${WRKSRC}/gnroot
|
1995-05-05 16:07:55 -04:00
|
|
|
@cd ${WRKSRC}/gnroot; \
|
|
|
|
tar -cf - -C ${WRKSRC} docs | tar xpf - && \
|
1999-08-27 22:42:41 -04:00
|
|
|
${MV} docs/sample.root.menu menu
|
1995-05-05 16:07:55 -04:00
|
|
|
|
|
|
|
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 \
|
1999-08-27 22:42:41 -04:00
|
|
|
${ECHO} ${MV} etc/gn_mime.types etc/gn_mime.types.old; \
|
|
|
|
${MV} etc/gn_mime.types etc/gn_mime.types.old; \
|
1995-05-05 16:07:55 -04:00
|
|
|
fi; \
|
1996-02-09 04:42:10 -05:00
|
|
|
[ -s gnroot/menu ] && \
|
|
|
|
if ! cmp -s gnroot/menu ${WRKSRC}/gnroot/menu; then \
|
1999-08-27 22:42:41 -04:00
|
|
|
${ECHO} ${MV} gnroot/menu gnroot/menu.old; \
|
|
|
|
${MV} gnroot/menu gnroot/menu.old; \
|
1995-05-05 16:07:55 -04:00
|
|
|
fi; \
|
1995-10-20 04:52:08 -04:00
|
|
|
tar -cf - -C ${WRKSRC} gnroot libexec bin etc | tar xpf - && \
|
1995-05-05 16:07:55 -04:00
|
|
|
(cd gnroot; ${WRKSRC}/bin/mkcache -r); \
|
1999-08-22 19:33:47 -04:00
|
|
|
${AWK} '$$1 ~ /#*gopher/ && $$6 == "${PREFIX}/libexec/gn" { exit 1 }' \
|
1999-08-27 18:30:39 -04:00
|
|
|
${INETD_CONF} || { \ ${ECHO} '#'gopher${CONF} >>${INETD_CONF}
|
1995-05-05 16:07:55 -04:00
|
|
|
}
|
1994-09-23 16:25:10 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|