aboutsummaryrefslogtreecommitdiffstats
path: root/security/drweb/Makefile
diff options
context:
space:
mode:
authorjmelo <jmelo@FreeBSD.org>2006-11-06 21:30:48 +0800
committerjmelo <jmelo@FreeBSD.org>2006-11-06 21:30:48 +0800
commita267d13a17cd89247081c0c5ad49a90df661c3af (patch)
tree9baa4abc8ec3479052c2dfdbbdfac26b12028dc9 /security/drweb/Makefile
parentb13219877735ceaaf7ff31d6af6da69f46bdfd64 (diff)
downloadfreebsd-ports-gnome-a267d13a17cd89247081c0c5ad49a90df661c3af.tar.gz
freebsd-ports-gnome-a267d13a17cd89247081c0c5ad49a90df661c3af.tar.zst
freebsd-ports-gnome-a267d13a17cd89247081c0c5ad49a90df661c3af.zip
- Fix mastersite.
- Add distribution kit for FreeBSD 6.1. - Bump portrevision. PR: ports/104562 Submitted by: Demin Alexander <support@spectrum.ru> (maintainer)
Diffstat (limited to 'security/drweb/Makefile')
-rw-r--r--security/drweb/Makefile56
1 files changed, 33 insertions, 23 deletions
diff --git a/security/drweb/Makefile b/security/drweb/Makefile
index ebbc41318a02..8296e2a0e77a 100644
--- a/security/drweb/Makefile
+++ b/security/drweb/Makefile
@@ -7,31 +7,33 @@
PORTNAME= drweb
PORTVERSION= 4.33
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= security
-MASTER_SITES= ftp://ftp.drweb.ru/pub/drweb/unix/FreeBSD/411/:f411 \
- ftp://ftp.drweb.ru/pub/drweb/unix/FreeBSD/54/:f54 \
- http://freebsd.spectrum.ru/distfiles/:f411,f54
+MASTER_SITES= ftp://ftp.drweb.com/pub/drweb/unix/FreeBSD/61/:f61 \
+ ftp://ftp.drweb.com/pub/drweb/unix/FreeBSD/55/:f55 \
+ ftp://ftp.drweb.com/pub/drweb/unix/FreeBSD/411/:f411 \
+ http://freebsd.spectrum.ru/distfiles/drweb/:f61,f55,f411
+DIST_SUBDIR= drweb
MAINTAINER= support@spectrum.ru
COMMENT= DrWeb antivirus suite
RUN_DEPENDS= ${LOCALBASE}/bin/wget:${PORTSDIR}/ftp/wget
-IA32_BINARY_PORT=yes
-NO_BUILD= yes
+IA32_BINARY_PORT= yes
+NO_BUILD= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
DISTNAME= ${PORTNAME}-${PORTVERSION}-freebsd411
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:f411
+.elif ${OSVERSION} >= 601000
+DISTNAME= ${PORTNAME}-${PORTVERSION}-freebsd61
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:f61
.else
-DISTNAME= ${PORTNAME}-${PORTVERSION}-freebsd54
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:f54
-.if ${OSVERSION} >= 600000
-LIB_DEPENDS+= c.5:${PORTSDIR}/misc/compat5x
-.endif
+DISTNAME= ${PORTNAME}-${PORTVERSION}-freebsd55
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:f55
.endif
WRKSRC= ${WRKDIR}/${DISTNAME}
@@ -39,37 +41,45 @@ WRKSRC= ${WRKDIR}/${DISTNAME}
DRWEB_PREFIX= ${PREFIX}/${PORTNAME}
DRWEB_VARPREFIX=/var/drweb
+pre-install:
+.if ${OSVERSION} < 500000
+PLIST_SUB= RU="@comment "
+.else
+PLIST_SUB= RU=""
+.endif
+
do-install:
- ${INSTALL} -dv -m 0750 ${DRWEB_PREFIX}
- ${INSTALL} -dv -m 0750 ${PREFIX}/etc/drweb
- ${INSTALL} -dv -m 0750 ${DRWEB_VARPREFIX}
- ${RM} -f ${WRKSRC}${LOCALBASE}/drweb/update.pl
- ${TAR} -cf - -C ${WRKSRC}${LOCALBASE}/drweb . | \
+ @${INSTALL} -dv -m 0750 ${DRWEB_PREFIX}
+ @${INSTALL} -dv -m 0750 ${PREFIX}/etc/drweb
+ @${INSTALL} -dv -m 0750 ${DRWEB_VARPREFIX}
+ @${RM} -f ${WRKSRC}${LOCALBASE}/drweb/update.pl
+ @${TAR} -cf - -C ${WRKSRC}${LOCALBASE}/drweb . | \
${TAR} -xf - -C ${DRWEB_PREFIX} \
--exclude "*.static" --exclude "doc"
- ${TAR} -cf - -C ${WRKSRC}/var/drweb/ . | \
+ @${TAR} -cf - -C ${WRKSRC}/var/drweb/ . | \
${TAR} -xf - -C ${DRWEB_VARPREFIX}
- ${INSTALL_DATA} -m 0640 ${WRKSRC}${LOCALBASE}/etc/drweb/drweb32.ini \
+ @${INSTALL_DATA} -m 0640 ${WRKSRC}${LOCALBASE}/etc/drweb/drweb32.ini \
${PREFIX}/etc/drweb/drweb32.ini-distr
if [ ! -f ${PREFIX}/etc/drweb/drweb32.ini ] ; then \
${CP} ${PREFIX}/etc/drweb/drweb32.ini-distr \
${PREFIX}/etc/drweb/drweb32.ini; \
fi
- ${INSTALL_DATA} -m 0640 ${WRKSRC}${LOCALBASE}/etc/drweb/email.ini \
+ @${INSTALL_DATA} -m 0640 ${WRKSRC}${LOCALBASE}/etc/drweb/email.ini \
${PREFIX}/etc/drweb/email.ini-distr
if [ ! -f ${PREFIX}/etc/drweb/email.ini ] ; then \
${CP} ${PREFIX}/etc/drweb/email.ini-distr \
${PREFIX}/etc/drweb/email.ini; \
fi
- ${INSTALL_SCRIPT} -m 0750 -b ${WRKSRC}${LOCALBASE}/etc/rc.d/00.drwebd.sh \
+ @${INSTALL_SCRIPT} -m 0750 -b ${WRKSRC}${LOCALBASE}/etc/rc.d/00.drwebd.sh \
${PREFIX}/etc/rc.d/001.drwebd.sh
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${TAR} -cf - -C ${WRKSRC}${LOCALBASE}/drweb/doc . | \
+ @${MKDIR} ${DOCSDIR}
+ @${TAR} -cf - -C ${WRKSRC}${LOCALBASE}/drweb/doc . | \
${TAR} -xf - -C ${DOCSDIR}
.endif
- ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL ${DRWEB_PREFIX} ${DRWEB_VARPREFIX} ${PREFIX}
+
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL ${DRWEB_PREFIX} ${DRWEB_VARPREFIX} ${PREFIX}
.include <bsd.port.post.mk>