1995-10-19 20:42:33 -04:00
|
|
|
# New ports collection makefile for: wn
|
1996-11-01 10:05:11 -05:00
|
|
|
# Version required: 1.16
|
1995-10-19 20:42:33 -04:00
|
|
|
# Date created: 4 May 1995
|
|
|
|
# Whom: adam
|
|
|
|
#
|
1997-07-02 17:06:24 -04:00
|
|
|
# $Id: Makefile,v 1.19 1997/05/28 02:21:43 fenner Exp $
|
1995-10-19 20:42:33 -04:00
|
|
|
#
|
|
|
|
|
1997-07-02 17:06:24 -04:00
|
|
|
DISTNAME= wn-1.16.8
|
1996-11-18 06:44:27 -05:00
|
|
|
CATEGORIES= www
|
1995-10-19 20:42:33 -04:00
|
|
|
MASTER_SITES= ftp://ftp.acns.nwu.edu/pub/wn/
|
|
|
|
|
|
|
|
IS_INTERACTIVE=
|
1996-12-07 20:05:19 -05:00
|
|
|
NO_PACKAGE= "Hostname compiled in"
|
1995-10-19 20:42:33 -04:00
|
|
|
|
1995-12-08 17:07:46 -05:00
|
|
|
pre-patch:
|
1996-12-07 20:05:19 -05:00
|
|
|
@${CP} ${WRKSRC}/Makefile.dist ${WRKSRC}/Makefile
|
|
|
|
@${CP} ${WRKSRC}/config.h.dist ${WRKSRC}/config.h
|
1995-10-19 20:42:33 -04:00
|
|
|
|
|
|
|
post-install:
|
1996-08-29 00:17:34 -04:00
|
|
|
@mkdir -p ${PREFIX}/wn/wnlogs ${PREFIX}/wn/bin
|
1996-12-07 20:05:19 -05:00
|
|
|
@${CP} -PR ${WRKSRC}/docs ${PREFIX}/wn
|
1995-10-19 20:42:33 -04: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 06:41:00 -05:00
|
|
|
@install -c -o bin -g bin ${WRKSRC}/bin/wndex ${PREFIX}/bin
|
1996-08-29 00:17:34 -04:00
|
|
|
@install -c -o bin -g bin ${WRKSRC}/bin/mkpasswd ${PREFIX}/wn/bin
|
|
|
|
@install -c -o bin -g bin ${WRKSRC}/bin/authwn ${PREFIX}/wn/bin
|
1995-10-19 20:42:33 -04:00
|
|
|
@if [ -s ${PREFIX}/etc/wn_mime.types ]; then \
|
|
|
|
cmp -s ${PREFIX}/etc/wn_mime.types ${WRKSRC}/lib/mime.types || \
|
|
|
|
echo Warning: new ${PREFIX}/etc/wn_mime.types not installed; \
|
|
|
|
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 \
|
|
|
|
cmp -s ${PREFIX}/wn/index ${WRKDIR}/index || \
|
|
|
|
echo Warning: new ${PREFIX}/wn/index not installed; \
|
|
|
|
else \
|
|
|
|
install -c -o bin -g bin -m 644 ${WRKDIR}/index ${PREFIX}/wn; \
|
|
|
|
fi
|
1996-01-17 16:22:00 -05:00
|
|
|
@cd ${PREFIX}/wn; ../bin/wndex -r
|
1995-10-19 20:42:33 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|