1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-13 23:36:08 +00:00
freebsd-ports/www/wn/Makefile

51 lines
1.6 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: wn
# Date created: 4 May 1995
# Whom: adam
#
1999-08-31 02:43:35 +00:00
# $FreeBSD$
#
PORTNAME= wn
PORTVERSION= 1.18.6
CATEGORIES= www
MASTER_SITES= ftp://ftp.acns.nwu.edu/pub/wn/
1997-08-10 23:50:33 +00:00
MAINTAINER= adam@veda.is
BROKEN='single MASTER_SITE and /pub/wn/ does not 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} ${PREFIX}/wn/wnlogs ${PREFIX}/wn/bin
@${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
@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_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; } \
else \
1999-08-27 22:37:05 +00:00
${INSTALL_DATA} ${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_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; } \
else \
1999-08-27 22:37:05 +00:00
${INSTALL_DATA} ${WRKDIR}/index ${PREFIX}/wn; \
fi
@cd ${PREFIX}/wn; ../bin/wndex -r
.include <bsd.port.mk>