diff options
author | Shigeyuki Fukushima <shige@FreeBSD.org> | 1999-09-04 17:18:35 +0000 |
---|---|---|
committer | Shigeyuki Fukushima <shige@FreeBSD.org> | 1999-09-04 17:18:35 +0000 |
commit | 710d966e3073266f4c93d35947c7884a8abae522 (patch) | |
tree | 432d28f421b5d6684333f51b9e3179766873f5a1 /www/wcol/Makefile | |
parent | Submitted by: Joe Jih-Shien Lu <JoeLu@JoeLu.m8.ntu.edu.tw> (diff) |
Use syslog logging.
Fix segmentation fault problem.
Update to 1999.01.10.
Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
Diffstat (limited to 'www/wcol/Makefile')
-rw-r--r-- | www/wcol/Makefile | 45 |
1 files changed, 30 insertions, 15 deletions
diff --git a/www/wcol/Makefile b/www/wcol/Makefile index 5ab6f3745d6e..2b64c54d5f7b 100644 --- a/www/wcol/Makefile +++ b/www/wcol/Makefile @@ -1,13 +1,13 @@ # New ports collection makefile for: wcolEpre -# Version required: 980713_100245 +# Version required: 990110_150126 # Date created: 17 July 1998 -# Whom: Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp> +# Whom: Shigeyuki FUKUSHIMA <shige@FreeBSD.org> # # $FreeBSD$ # -DISTNAME= wcolEpre.980713_100245 -PKGNAME= wcolEpre-1998.07.13 +DISTNAME= wcolEpre.990110_150126 +PKGNAME= wcolEpre-1999.01.10 CATEGORIES= www MASTER_SITES= http://shika.aist-nara.ac.jp/products/DEST/Wcol/ @@ -17,29 +17,44 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/src GNU_CONFIGURE= yes -STARTUP_SCRIPT=${PREFIX}/etc/rc.d/wcol.sh.sample +# startup script +WCOL_STARTUP= wcol.sh.sample +STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/wcol.sh # wcol pooldir -DEFAULT_POOLDIR?=/var/spool/wcol -MAKE_ENV+=DEFAULT_POOLDIR=${DEFAULT_POOLDIR} +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 pre-patch: @${RM} -f ${WRKSRC}/../admin/killwcol.in @${MV} -f ${WRKSRC}/../admin/killwcol ${WRKSRC}/../admin/killwcol.in +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} ; \ + ) + + 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 + @${INSTALL_DATA} ${WCOL_CONF_DIST} ${WCOL_CONF} + @${ECHO} "Installing ${STARTUP_SCRIPT} startup file." + @${INSTALL_SCRIPT} ${WRKSRC}/wcol.sh.sample ${STARTUP_SCRIPT} .include <bsd.port.mk> |