diff options
author | ache <ache@FreeBSD.org> | 2001-10-03 06:39:31 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2001-10-03 06:39:31 +0000 |
commit | f7e068659aa8516821344c570c805b7798098be3 (patch) | |
tree | 0d893cb61dc920527fc031502a7e09826c4a4db6 /security/drweb/Makefile | |
parent | d29ac7b4148f423aa2ed5a48862712cdd7386924 (diff) | |
download | FreeBSD-ports-f7e068659aa8516821344c570c805b7798098be3.zip FreeBSD-ports-f7e068659aa8516821344c570c805b7798098be3.tar.gz |
Configuration tuning
Diffstat (limited to 'security/drweb/Makefile')
-rw-r--r-- | security/drweb/Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/security/drweb/Makefile b/security/drweb/Makefile index a52ed65..f670ea7 100644 --- a/security/drweb/Makefile +++ b/security/drweb/Makefile @@ -7,6 +7,7 @@ PORTNAME= drweb PORTVERSION= 4.26 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://www.drweb.ru/ftp/web_pub/ DISTNAME= ${PORTNAME}d-${PORTVERSION}-freebsd4 @@ -25,15 +26,22 @@ do-install: -@${MKDIR} -v ${DRWEB_PREFIX} @cd ${DRWEB_PREFIX}; ${RM} -f drw*.txt drw*.vdb drweb drwebd ${TAR} -xzf ${WRKSRC}/${DISTNAME}.tar.gz -C ${DRWEB_PREFIX} --exclude *.ini - ${TAR} -xzOf ${WRKSRC}/${DISTNAME}.tar.gz drweb32.ini | \ + ${TAR} -xzOf ${WRKSRC}/${DISTNAME}.tar.gz drweb32.ini \ + > ${DRWEB_PREFIX}/drweb32.ini-tmpl + cd ${DRWEB_PREFIX}; \ + ${PATCH} -s < ${FILESDIR}/ini-patch && \ + ${RM} drweb32.ini-tmpl.orig + cd ${DRWEB_PREFIX}; \ ${SED} 's#__INSTALL_DIR__#${DRWEB_PREFIX}#' \ - > ${DRWEB_PREFIX}/drweb32.ini-dist + < drweb32.ini-tmpl > drweb32.ini-dist && \ + ${RM} drweb32.ini-tmpl if [ ! -f ${DRWEB_PREFIX}/drweb32.ini ] ; then \ ${CP} ${DRWEB_PREFIX}/drweb32.ini-dist \ ${DRWEB_PREFIX}/drweb32.ini; \ fi ${SED} 's#!!PREFIX!!#${DRWEB_PREFIX}#' < ${FILESDIR}/drwebd.sh >${WRKSRC}/drwebd.sh - cd ${DRWEB_PREFIX}/update; patch -s < ${FILESDIR}/update-patch && ${RM} update.pl.orig - ${INSTALL_DATA} ${WRKSRC}/drwebd.sh ${PREFIX}/etc/rc.d/drwebd.sh-dist + cd ${DRWEB_PREFIX}/update; \ + ${PATCH} -s < ${FILESDIR}/update-patch && ${RM} update.pl.orig + ${INSTALL_SCRIPT} ${WRKSRC}/drwebd.sh ${PREFIX}/etc/rc.d/ .include <bsd.port.mk> |