1995-10-20 00:42:33 +00:00
|
|
|
# New ports collection makefile for: wn
|
|
|
|
# Date created: 4 May 1995
|
|
|
|
# Whom: adam
|
|
|
|
#
|
1999-08-31 02:43:35 +00:00
|
|
|
# $FreeBSD$
|
1995-10-20 00:42:33 +00:00
|
|
|
#
|
|
|
|
|
2000-04-10 00:07:29 +00:00
|
|
|
PORTNAME= wn
|
|
|
|
PORTVERSION= 1.18.6
|
1996-11-18 11:44:27 +00:00
|
|
|
CATEGORIES= www
|
1995-10-20 00:42:33 +00:00
|
|
|
MASTER_SITES= ftp://ftp.acns.nwu.edu/pub/wn/
|
|
|
|
|
1997-08-10 23:50:33 +00:00
|
|
|
MAINTAINER= adam@veda.is
|
|
|
|
|
1998-12-02 09:48:36 +00:00
|
|
|
BROKEN='single MASTER_SITE and /pub/wn/ doesnt exist on ftp.acns.nwu.edu anymore'
|
1998-12-01 11:21:33 +00:00
|
|
|
|
1995-10-20 00:42:33 +00:00
|
|
|
IS_INTERACTIVE=
|
1996-12-08 01:05:19 +00:00
|
|
|
NO_PACKAGE= "Hostname compiled in"
|
1995-10-20 00:42:33 +00:00
|
|
|
|
1995-12-08 22:07:46 +00:00
|
|
|
pre-patch:
|
1996-12-08 01:05:19 +00:00
|
|
|
@${CP} ${WRKSRC}/Makefile.dist ${WRKSRC}/Makefile
|
|
|
|
@${CP} ${WRKSRC}/config.h.dist ${WRKSRC}/config.h
|
1995-10-20 00:42:33 +00:00
|
|
|
|
|
|
|
post-install:
|
1999-08-22 23:33:47 +00:00
|
|
|
@${MKDIR} ${PREFIX}/wn/wnlogs ${PREFIX}/wn/bin
|
1996-12-08 01:05:19 +00:00
|
|
|
@${CP} -PR ${WRKSRC}/docs ${PREFIX}/wn
|
1999-08-27 22:37:05 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/bin/wn ${PREFIX}/libexec
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/bin/swn ${PREFIX}/sbin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/bin/wndex ${PREFIX}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/bin/mkwnpasswd ${PREFIX}/wn/bin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/bin/authwn ${PREFIX}/wn/bin
|
1995-10-20 00:42:33 +00:00
|
|
|
@if [ -s ${PREFIX}/etc/wn_mime.types ]; then \
|
1997-09-17 05:14:37 +00:00
|
|
|
cmp -s ${PREFIX}/etc/wn_mime.types ${WRKSRC}/lib/mime.types || { \
|
1999-08-27 22:30:39 +00:00
|
|
|
${ECHO_MSG} Warning: new mime.types installed as ${PREFIX}/etc/wn_mime.types-dist; \
|
1999-08-27 22:37:05 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/mime.types \
|
1997-09-17 05:14:37 +00:00
|
|
|
${PREFIX}/etc/wn_mime.types-dist; } \
|
1995-10-20 00:42:33 +00:00
|
|
|
else \
|
1999-08-27 22:37:05 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/mime.types \
|
|
|
|
${PREFIX}/etc/wn_mime.types; \
|
1995-10-20 00:42:33 +00:00
|
|
|
fi
|
|
|
|
@if [ -s ${PREFIX}/wn/index ]; then \
|
1997-09-17 05:14:37 +00:00
|
|
|
cmp -s ${PREFIX}/wn/index ${WRKDIR}/index || { \
|
1999-08-27 22:30:39 +00:00
|
|
|
${ECHO_MSG} Warning: new index installed as ${PREFIX}/wn/index-dist; \
|
1999-08-27 22:37:05 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/index ${PREFIX}/wn/index-dist; } \
|
1995-10-20 00:42:33 +00:00
|
|
|
else \
|
1999-08-27 22:37:05 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/index ${PREFIX}/wn; \
|
1995-10-20 00:42:33 +00:00
|
|
|
fi
|
1996-01-17 21:22:00 +00:00
|
|
|
@cd ${PREFIX}/wn; ../bin/wndex -r
|
1995-10-20 00:42:33 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|