freebsd-ports/www/gn/Makefile

54 lines
1.5 KiB
Makefile
Raw Normal View History

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
#
PORTNAME= gn
2001-02-05 10:33:58 -05:00
PORTVERSION= 2.24
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_LOCAL} #ftp://ftp.acns.nwu.edu/pub/gn/
MASTER_SITE_SUBDIR= trevor
1995-04-15 01:42:12 -04:00
MAINTAINER= ports@FreeBSD.org
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 ${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:
@${MKDIR} ${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; \
2001-02-14 15:19:44 -05:00
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 == "${PREFIX}/libexec/gn" { exit 1 }' \
${INETD_CONF} || { \ ${ECHO} '#'gopher${CONF} >>${INETD_CONF}
}
1994-09-23 16:25:10 -04:00
.include <bsd.port.mk>