1995-10-20 00:42:33 +00:00
|
|
|
# New ports collection makefile for: wn
|
1997-09-07 17:24:52 +00:00
|
|
|
# Version required: 1.18
|
1995-10-20 00:42:33 +00:00
|
|
|
# Date created: 4 May 1995
|
|
|
|
# Whom: adam
|
|
|
|
#
|
1998-01-21 21:51:41 +00:00
|
|
|
# $Id: Makefile,v 1.24 1997/09/17 05:14:37 adam Exp $
|
1995-10-20 00:42:33 +00:00
|
|
|
#
|
|
|
|
|
1998-01-21 21:51:41 +00:00
|
|
|
DISTNAME= wn-1.18.5
|
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
|
|
|
|
|
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:
|
1996-08-29 04:17:34 +00:00
|
|
|
@mkdir -p ${PREFIX}/wn/wnlogs ${PREFIX}/wn/bin
|
1996-12-08 01:05:19 +00:00
|
|
|
@${CP} -PR ${WRKSRC}/docs ${PREFIX}/wn
|
1995-10-20 00:42:33 +00:00
|
|
|
@install -c -o bin -g bin ${WRKSRC}/bin/wn ${PREFIX}/libexec
|
|
|
|
@install -c -o bin -g bin ${WRKSRC}/bin/swn ${PREFIX}/sbin
|
1995-12-01 11:41:00 +00:00
|
|
|
@install -c -o bin -g bin ${WRKSRC}/bin/wndex ${PREFIX}/bin
|
1997-09-17 04:51:55 +00:00
|
|
|
@install -c -o bin -g bin ${WRKSRC}/bin/mkwnpasswd ${PREFIX}/wn/bin
|
1996-08-29 04:17:34 +00:00
|
|
|
@install -c -o bin -g bin ${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 || { \
|
|
|
|
echo Warning: new mime.types installed as ${PREFIX}/etc/wn_mime.types-dist; \
|
|
|
|
install -c -o bin -g bin -m 644 ${WRKSRC}/lib/mime.types \
|
|
|
|
${PREFIX}/etc/wn_mime.types-dist; } \
|
1995-10-20 00:42:33 +00:00
|
|
|
else \
|
|
|
|
install -c -o bin -g bin -m 644 ${WRKSRC}/lib/mime.types \
|
|
|
|
${PREFIX}/etc/wn_mime.types; \
|
|
|
|
fi
|
|
|
|
@if [ -s ${PREFIX}/wn/index ]; then \
|
1997-09-17 05:14:37 +00:00
|
|
|
cmp -s ${PREFIX}/wn/index ${WRKDIR}/index || { \
|
|
|
|
echo Warning: new index installed as ${PREFIX}/wn/index-dist; \
|
|
|
|
install -c -o bin -g bin -m 644 ${WRKDIR}/index ${PREFIX}/wn/index-dist; } \
|
1995-10-20 00:42:33 +00:00
|
|
|
else \
|
|
|
|
install -c -o bin -g bin -m 644 ${WRKDIR}/index ${PREFIX}/wn; \
|
|
|
|
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>
|