1998-08-23 22:11:20 -04:00
|
|
|
# New ports collection makefile for: wcolEpre
|
1999-09-04 13:18:35 -04:00
|
|
|
# Version required: 990110_150126
|
1998-08-23 22:11:20 -04:00
|
|
|
# Date created: 17 July 1998
|
1999-09-04 13:18:35 -04:00
|
|
|
# Whom: Shigeyuki FUKUSHIMA <shige@FreeBSD.org>
|
1998-08-23 22:11:20 -04:00
|
|
|
#
|
1999-08-30 22:43:35 -04:00
|
|
|
# $FreeBSD$
|
1998-08-23 22:11:20 -04:00
|
|
|
#
|
|
|
|
|
1999-09-04 13:18:35 -04:00
|
|
|
DISTNAME= wcolEpre.990110_150126
|
|
|
|
PKGNAME= wcolEpre-1999.01.10
|
1998-08-23 22:11:20 -04:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://shika.aist-nara.ac.jp/products/DEST/Wcol/
|
|
|
|
|
1999-08-31 02:53:31 -04:00
|
|
|
MAINTAINER= shige@FreeBSD.org
|
1998-08-23 22:11:20 -04:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
1999-09-04 13:18:35 -04:00
|
|
|
# startup script
|
|
|
|
WCOL_STARTUP= wcol.sh.sample
|
|
|
|
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/wcol.sh
|
1998-08-23 22:11:20 -04:00
|
|
|
|
|
|
|
# wcol pooldir
|
1999-09-04 13:18:35 -04:00
|
|
|
DEFAULT_POOLDIR?= /var/spool/wcol
|
|
|
|
MAKE_ENV+= DEFAULT_POOLDIR=${DEFAULT_POOLDIR}
|
|
|
|
|
|
|
|
# wcol sample configuration file
|
|
|
|
WCOL_CONF_DIST= ${WRKSRC}/wcol.conf-dist-FreeBSD
|
|
|
|
WCOL_CONF= ${PREFIX}/etc/wcol.conf.sample
|
1998-08-23 22:11:20 -04:00
|
|
|
|
|
|
|
pre-patch:
|
1999-08-27 22:42:41 -04:00
|
|
|
@${RM} -f ${WRKSRC}/../admin/killwcol.in
|
|
|
|
@${MV} -f ${WRKSRC}/../admin/killwcol ${WRKSRC}/../admin/killwcol.in
|
1998-08-23 22:11:20 -04:00
|
|
|
|
1999-09-04 13:18:35 -04:00
|
|
|
pre-configure:
|
|
|
|
@(cd ${WRKSRC} ; \
|
|
|
|
${RM} -f ${WCOL_CONF_DIST} ; \
|
|
|
|
${CAT} wcol.conf-dist | \
|
|
|
|
${SED} -e "s;@@DEFAULT_POOLDIR@@;${DEFAULT_POOLDIR};g" \
|
|
|
|
> ${WCOL_CONF_DIST} ; \
|
|
|
|
${RM} -f ${WCOL_STARTUP} ; \
|
|
|
|
${CAT} ${FILESDIR}/${WCOL_STARTUP} | \
|
|
|
|
${SED} -e "s;@@DEFAULT_POOLDIR@@;${DEFAULT_POOLDIR};g" \
|
|
|
|
-e "s;@@PREFIX@@;${PREFIX};g" \
|
|
|
|
> ${WRKSRC}/${WCOL_STARTUP} ; \
|
|
|
|
)
|
|
|
|
|
|
|
|
|
1998-08-23 22:11:20 -04:00
|
|
|
post-install:
|
|
|
|
@if [ ! -d ${DEFAULT_POOLDIR} ]; then \
|
|
|
|
${ECHO} "Making wcol pool directory." ; \
|
|
|
|
${MKDIR} ${DEFAULT_POOLDIR} ; \
|
|
|
|
fi
|
|
|
|
@${ECHO} "Installing sample configuration file."
|
1999-09-04 13:18:35 -04:00
|
|
|
@${INSTALL_DATA} ${WCOL_CONF_DIST} ${WCOL_CONF}
|
|
|
|
@${ECHO} "Installing ${STARTUP_SCRIPT} startup file."
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/wcol.sh.sample ${STARTUP_SCRIPT}
|
1998-08-23 22:11:20 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|