diff options
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 a52ed65d0c42..f670ea7ee6f5 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> |