summaryrefslogtreecommitdiffstats
path: root/security/drweb/Makefile
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-10-15 15:00:05 +0000
committerache <ache@FreeBSD.org>2001-10-15 15:00:05 +0000
commitab1444cdf2180d84cff0bbb343374c9328566a58 (patch)
treebdb5bc383b2dafd20ac66933d1d922a9f2aac956 /security/drweb/Makefile
parentbb990cb8cf0bf887794598db37affcc286e028b7 (diff)
downloadFreeBSD-ports-ab1444cdf2180d84cff0bbb343374c9328566a58.zip
FreeBSD-ports-ab1444cdf2180d84cff0bbb343374c9328566a58.tar.gz
Do not overwrite existen registration keys
Diffstat (limited to 'security/drweb/Makefile')
-rw-r--r--security/drweb/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/security/drweb/Makefile b/security/drweb/Makefile
index e66684a..bc0c9f0 100644
--- a/security/drweb/Makefile
+++ b/security/drweb/Makefile
@@ -7,7 +7,7 @@
PORTNAME= drweb
PORTVERSION= 4.26
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= security
MASTER_SITES= http://www.drweb.ru/ftp/web_pub/
DISTNAME= ${PORTNAME}d-${PORTVERSION}-freebsd4
@@ -25,9 +25,14 @@ DRWEB_PREFIX= ${PREFIX}/${PORTNAME}
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} -xzf ${WRKSRC}/${DISTNAME}.tar.gz -C ${DRWEB_PREFIX} \
+ --exclude *.ini --exclude *.key
${TAR} -xzOf ${WRKSRC}/${DISTNAME}.tar.gz drweb32.ini \
> ${DRWEB_PREFIX}/drweb32.ini-tmpl
+ ${TAR} -xzOf ${WRKSRC}/${DISTNAME}.tar.gz drweb.key \
+ > ${DRWEB_PREFIX}/drweb.key-dist
+ ${TAR} -xzOf ${WRKSRC}/${DISTNAME}.tar.gz drwebd.key \
+ > ${DRWEB_PREFIX}/drwebd.key-dist
cd ${DRWEB_PREFIX}; \
${PATCH} -s < ${FILESDIR}/ini-patch && \
${RM} drweb32.ini-tmpl.orig
@@ -39,6 +44,14 @@ do-install:
${CP} ${DRWEB_PREFIX}/drweb32.ini-dist \
${DRWEB_PREFIX}/drweb32.ini; \
fi
+ if [ ! -f ${DRWEB_PREFIX}/drweb.key ] ; then \
+ ${CP} ${DRWEB_PREFIX}/drweb.key-dist \
+ ${DRWEB_PREFIX}/drweb.key; \
+ fi
+ if [ ! -f ${DRWEB_PREFIX}/drwebd.key ] ; then \
+ ${CP} ${DRWEB_PREFIX}/drwebd.key-dist \
+ ${DRWEB_PREFIX}/drwebd.key; \
+ fi
cd ${DRWEB_PREFIX}/update; \
${PATCH} -s < ${FILESDIR}/update-patch && ${RM} update.pl.orig
OpenPOWER on IntegriCloud