aboutsummaryrefslogtreecommitdiffstats
path: root/security/drweb/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/drweb/Makefile')
-rw-r--r--security/drweb/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/security/drweb/Makefile b/security/drweb/Makefile
index bcb629917568..40a261cda4cc 100644
--- a/security/drweb/Makefile
+++ b/security/drweb/Makefile
@@ -24,7 +24,13 @@ DRWEB_PREFIX= ${PREFIX}/${PORTNAME}
do-install:
-@${MKDIR} -v ${DRWEB_PREFIX}
${TAR} -xzf ${WRKSRC}/${DISTNAME}.tar.gz -C ${DRWEB_PREFIX} --exclude *.ini
- ${TAR} -xzOf ${WRKSRC}/${DISTNAME}.tar.gz drweb32.ini >${DRWEB_PREFIX}/drweb32.ini.sample
+ ${TAR} -xzOf ${WRKSRC}/${DISTNAME}.tar.gz drweb32.ini | \
+ ${SED} 's#__INSTALL_DIR__#${DRWEB_PREFIX}#' \
+ > ${DRWEB_PREFIX}/drweb32.ini-dist
+ 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