diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-10-15 15:00:05 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-10-15 15:00:05 +0000 |
commit | 534cc038b20ad6be081d0a07860457a1a5424194 (patch) | |
tree | 1480ecffbd501ed6658f00dab6072c266701660e /security/drweb | |
parent | 8b3ba10ac43f4cdba09d662d658c6ac8725b4bd4 (diff) | |
download | ports-534cc038b20ad6be081d0a07860457a1a5424194.tar.gz ports-534cc038b20ad6be081d0a07860457a1a5424194.zip |
Do not overwrite existen registration keys
Notes
Notes:
svn path=/head/; revision=48801
Diffstat (limited to 'security/drweb')
-rw-r--r-- | security/drweb/Makefile | 17 | ||||
-rw-r--r-- | security/drweb/pkg-plist | 8 |
2 files changed, 21 insertions, 4 deletions
diff --git a/security/drweb/Makefile b/security/drweb/Makefile index e66684abd53e..bc0c9f0e246e 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 diff --git a/security/drweb/pkg-plist b/security/drweb/pkg-plist index 7b0162ced104..c9c5ef5e4f4c 100644 --- a/security/drweb/pkg-plist +++ b/security/drweb/pkg-plist @@ -81,14 +81,18 @@ drweb/doc/drweb-ini.rus drweb/doc/drwebd-api drweb/doc/drwebd-api.rus drweb/drweb -drweb/drweb.key +@unexec if [ -f %D/drweb/drweb.key ] && cmp -s %D/drweb/drweb.key %D/drweb/drweb.key-dist; then rm -f %D/drweb/drweb.key; fi +drweb/drweb.key-dist +@exec if [ ! -f %D/drweb/drweb.key ] ; then cp -p %D/%F %B/drweb.key; fi drweb/drweb32.dll @unexec if [ -f %D/drweb/drweb32.ini ] && cmp -s %D/drweb/drweb32.ini %D/drweb/drweb32.ini-dist; then rm -f %D/drweb/drweb32.ini; fi drweb/drweb32.ini-dist @exec if [ ! -f %D/drweb/drweb32.ini ] ; then cp -p %D/%F %B/drweb32.ini; fi drweb/drwebase.vdb drweb/drwebd -drweb/drwebd.key +@unexec if [ -f %D/drweb/drwebd.key ] && cmp -s %D/drweb/drwebd.key %D/drweb/drwebd.key-dist; then rm -f %D/drweb/drwebd.key; fi +drweb/drwebd.key-dist +@exec if [ ! -f %D/drweb/drwebd.key ] ; then cp -p %D/%F %B/drwebd.key; fi drweb/russian.dwl drweb/update/readme.update drweb/update/readme.update.rus |