freebsd-ports/www/wn/Makefile

51 lines
1.8 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: wn
# Version required: 1.18
# Date created: 4 May 1995
# Whom: adam
#
1998-12-02 04:48:36 -05:00
# $Id: Makefile,v 1.27 1998/12/01 11:21:33 obrien Exp $
#
1998-07-20 09:39:46 -04:00
DISTNAME= wn-1.18.6
CATEGORIES= www
MASTER_SITES= ftp://ftp.acns.nwu.edu/pub/wn/
1997-08-10 19:50:33 -04:00
MAINTAINER= adam@veda.is
1998-12-02 04:48:36 -05:00
BROKEN='single MASTER_SITE and /pub/wn/ doesnt exist on ftp.acns.nwu.edu anymore'
IS_INTERACTIVE=
NO_PACKAGE= "Hostname compiled in"
pre-patch:
@${CP} ${WRKSRC}/Makefile.dist ${WRKSRC}/Makefile
@${CP} ${WRKSRC}/config.h.dist ${WRKSRC}/config.h
post-install:
@mkdir -p ${PREFIX}/wn/wnlogs ${PREFIX}/wn/bin
@${CP} -PR ${WRKSRC}/docs ${PREFIX}/wn
@install -c -o bin -g bin ${WRKSRC}/bin/wn ${PREFIX}/libexec
@install -c -o bin -g bin ${WRKSRC}/bin/swn ${PREFIX}/sbin
@install -c -o bin -g bin ${WRKSRC}/bin/wndex ${PREFIX}/bin
1997-09-17 00:51:55 -04:00
@install -c -o bin -g bin ${WRKSRC}/bin/mkwnpasswd ${PREFIX}/wn/bin
@install -c -o bin -g bin ${WRKSRC}/bin/authwn ${PREFIX}/wn/bin
@if [ -s ${PREFIX}/etc/wn_mime.types ]; then \
1997-09-17 01:14:37 -04: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; } \
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 01:14:37 -04: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; } \
else \
install -c -o bin -g bin -m 644 ${WRKDIR}/index ${PREFIX}/wn; \
fi
@cd ${PREFIX}/wn; ../bin/wndex -r
.include <bsd.port.mk>