summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-08-24 23:23:36 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-08-24 23:23:36 +0000
commita5923326c57795056aa9bcf948d3c26b24f7f19b (patch)
tree7470e103a8d65a3165cdb0a22164c691b4f544cd /security
parentUpdate to 0.0.24 (diff)
Some efforts to make update.pl working
Notes
Notes: svn path=/head/; revision=46828
Diffstat (limited to 'security')
-rw-r--r--security/drweb/Makefile3
-rw-r--r--security/drweb/files/update-patch14
2 files changed, 17 insertions, 0 deletions
diff --git a/security/drweb/Makefile b/security/drweb/Makefile
index c42a7bdd03a9..7946c7e4ae5d 100644
--- a/security/drweb/Makefile
+++ b/security/drweb/Makefile
@@ -16,6 +16,8 @@ MAINTAINER= anton@urc.ac.ru
NO_BUILD= YES
+RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/mach/String/CRC32.pm:${PORTSDIR}/devel/p5-String-CRC32
+
DRWEB_PREFIX= ${PREFIX}/${PORTNAME}
do-install:
@@ -23,6 +25,7 @@ do-install:
${TAR} -xzf ${WRKSRC}/${DISTNAME}.tar.gz -C ${DRWEB_PREFIX} --exclude *.ini
${TAR} -xzOf ${WRKSRC}/${DISTNAME}.tar.gz drweb32.ini >${DRWEB_PREFIX}/drweb32.ini.sample
${SED} 's#!!PREFIX!!#${DRWEB_PREFIX}#' < ${FILESDIR}/drwebd.sh >${WRKSRC}/drwebd.sh
+ cd ${DRWEB_PREFIX}/update; patch < ${FILESDIR}/update-patch
${INSTALL_SCRIPT} ${WRKSRC}/drwebd.sh ${PREFIX}/etc/rc.d
.include <bsd.port.mk>
diff --git a/security/drweb/files/update-patch b/security/drweb/files/update-patch
new file mode 100644
index 000000000000..f920850378ef
--- /dev/null
+++ b/security/drweb/files/update-patch
@@ -0,0 +1,14 @@
+--- update.pl.bak Tue Jul 31 18:42:13 2001
++++ update.pl Sat Aug 25 03:16:22 2001
+@@ -15,9 +15,9 @@
+ use String::CRC32;
+
+ my $version = '425';
+-my $url = $ARGV[1] || 'http://www.drweb.ru/ftp/update_free/linux/drweb32.lst';
++#my $url = $ARGV[1] || 'http://www.drweb.ru/ftp/update_free/linux/drweb32.lst';
+ #my $url = $ARGV[1] || 'http://www.drweb.ru/ftp/update_free/freebsd3/drweb32.lst';
+-#my $url = $ARGV[1] || 'http://www.drweb.ru/ftp/update_free/freebsd4/drweb32.lst';
++my $url = $ARGV[1] || 'http://www.drweb.ru/ftp/update_free/freebsd4/drweb32.lst';
+
+ my $fetch = ''; # autotest for fetch, wget
+ unless ( $fetch ) { $fetch.=" -q -o" if chomp ( $fetch = `which fetch` ); }