aboutsummaryrefslogtreecommitdiffstats
path: root/www/wcol/Makefile
blob: 42764786f204a1e3830357d91646793e7e351845 (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
# New ports collection makefile for:    wcolEpre
# Version required: 980713_100245
# Date created:     17 July 1998
# Whom:         Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp>
#
# $Id: Makefile,v 1.1.1.1 1998/08/24 02:11:20 steve Exp $
#

DISTNAME=   wcolEpre.980713_100245
PKGNAME=    wcolEpre-1998.07.13
CATEGORIES= www
MASTER_SITES=   http://shika.aist-nara.ac.jp/products/DEST/Wcol/

MAINTAINER= shige@FreeBSD.ORG

WRKSRC=     ${WRKDIR}/${DISTNAME}/src

GNU_CONFIGURE=  yes

STARTUP_SCRIPT=${PREFIX}/etc/rc.d/wcol.sh.sample

# wcol pooldir
DEFAULT_POOLDIR?=/var/spool/wcol
MAKE_ENV+=DEFAULT_POOLDIR=${DEFAULT_POOLDIR}

pre-patch:
    @rm -f ${WRKSRC}/../admin/killwcol.in
    @mv -f ${WRKSRC}/../admin/killwcol ${WRKSRC}/../admin/killwcol.in

post-install:
    @if [ ! -d ${DEFAULT_POOLDIR} ]; then \
      ${ECHO} "Making wcol pool directory." ; \
      ${MKDIR} ${DEFAULT_POOLDIR} ; \
    fi
    ${TOUCH} /var/log/wcol.log

    @${ECHO} "Installing sample configuration file."
    @${INSTALL_DATA} ${WRKSRC}/wcol.conf-dist ${PREFIX}/etc/wcol.conf.sample

    @if [ ! -f ${STARTUP_SCRIPT} ]; then \
      ${ECHO} "Installing ${STARTUP_SCRIPT} startup file." ; \
      ${INSTALL_SCRIPT} ${FILESDIR}/wcol.sh.sample ${STARTUP_SCRIPT} ; \
    fi

.include <bsd.port.mk>