1995-10-20 01:42:33 +01:00
|
|
|
# New ports collection makefile for: wn
|
1996-08-16 03:27:40 +02:00
|
|
|
# Version required: 1.14
|
1995-10-20 01:42:33 +01:00
|
|
|
# Date created: 4 May 1995
|
|
|
|
# Whom: adam
|
|
|
|
#
|
1996-08-16 03:27:40 +02:00
|
|
|
# $Id: Makefile,v 1.12 1996/05/26 18:10:21 adam Exp $
|
1995-10-20 01:42:33 +01:00
|
|
|
#
|
|
|
|
|
1996-08-16 03:27:40 +02:00
|
|
|
DISTNAME= wn-1.14.5
|
1995-11-27 05:10:35 +01:00
|
|
|
CATEGORIES+= www
|
1995-10-20 01:42:33 +01:00
|
|
|
MASTER_SITES= ftp://ftp.acns.nwu.edu/pub/wn/
|
|
|
|
|
|
|
|
IS_INTERACTIVE=
|
1995-10-20 10:09:57 +01:00
|
|
|
NO_PACKAGE= # hostname compiled in
|
1995-10-20 01:42:33 +01:00
|
|
|
|
1995-12-08 23:07:46 +01:00
|
|
|
pre-patch:
|
1995-10-20 01:42:33 +01:00
|
|
|
@cp ${WRKSRC}/Makefile.dist ${WRKSRC}/Makefile
|
|
|
|
@cp ${WRKSRC}/config.h.dist ${WRKSRC}/config.h
|
|
|
|
|
|
|
|
post-install:
|
1996-05-26 20:10:47 +02:00
|
|
|
@mkdir -p ${PREFIX}/wn/wnlogs
|
1996-08-16 03:27:40 +02:00
|
|
|
@cp -PR ${WRKSRC}/docs ${PREFIX}/wn
|
1995-10-20 01:42:33 +01: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 12:41:00 +01:00
|
|
|
@install -c -o bin -g bin ${WRKSRC}/bin/wndex ${PREFIX}/bin
|
1995-10-20 01:42:33 +01: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 22:22:00 +01:00
|
|
|
@cd ${PREFIX}/wn; ../bin/wndex -r
|
1995-10-20 01:42:33 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|