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

44 lines
1.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: wn
1996-11-01 15:05:11 +00:00
# Version required: 1.16
# Date created: 4 May 1995
# Whom: adam
#
# $Id: Makefile,v 1.17 1996/12/07 11:26:58 max Exp $
#
1996-11-01 15:05:11 +00:00
DISTNAME= wn-1.16.1
CATEGORIES= www
MASTER_SITES= ftp://ftp.acns.nwu.edu/pub/wn/
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
@install -c -o bin -g bin ${WRKSRC}/bin/mkpasswd ${PREFIX}/wn/bin
@install -c -o bin -g bin ${WRKSRC}/bin/authwn ${PREFIX}/wn/bin
@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
@cd ${PREFIX}/wn; ../bin/wndex -r
.include <bsd.port.mk>