summaryrefslogtreecommitdiffstats
path: root/security/drweb/Makefile
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-08-25 16:31:39 +0000
committerache <ache@FreeBSD.org>2001-08-25 16:31:39 +0000
commit07b0b895e7aacc7c9057ad21d1e7a12b962cc9d9 (patch)
tree7cb19843a754a204e69d661633ab57204865a8e7 /security/drweb/Makefile
parentc14e36e366e8cd2915ada73ccafc85769a5069ba (diff)
downloadFreeBSD-ports-07b0b895e7aacc7c9057ad21d1e7a12b962cc9d9.zip
FreeBSD-ports-07b0b895e7aacc7c9057ad21d1e7a12b962cc9d9.tar.gz
More efforts to get some sort of working drweb32.ini initially
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 bcb6299..40a261c 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
OpenPOWER on IntegriCloud