aboutsummaryrefslogtreecommitdiffstats
path: root/www/wn/Makefile
blob: 7b316242dab22fa8af9036268bd1bc6c9faaca6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# New ports collection makefile for:    wn
# Version required:     1.18
# Date created:         4 May 1995
# Whom:                 adam
#
# $Id: Makefile,v 1.24 1997/09/17 05:14:37 adam Exp $
#

DISTNAME=       wn-1.18.5
CATEGORIES= www
MASTER_SITES=   ftp://ftp.acns.nwu.edu/pub/wn/

MAINTAINER= adam@veda.is

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/mkwnpasswd ${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 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 \
        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>