2001-08-25 10:00:13 +02:00
|
|
|
# New ports collection makefile for: drweb
|
2001-08-24 17:42:40 +02:00
|
|
|
# Date created: 14 August 2001
|
|
|
|
# Whom: Anton Voronin <anton@urc.ac.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= drweb
|
|
|
|
PORTVERSION= 4.25
|
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= http://www.drweb.ru/ftp/web_pub/
|
|
|
|
DISTNAME= ${PORTNAME}d-${PORTVERSION}-freebsd4
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= anton@urc.ac.ru
|
|
|
|
|
|
|
|
NO_BUILD= YES
|
|
|
|
|
2001-08-25 10:00:13 +02:00
|
|
|
# Needed for update.pl
|
2001-08-25 01:23:36 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/mach/String/CRC32.pm:${PORTSDIR}/devel/p5-String-CRC32
|
|
|
|
|
2001-08-24 17:42:40 +02:00
|
|
|
DRWEB_PREFIX= ${PREFIX}/${PORTNAME}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
-@${MKDIR} -v ${DRWEB_PREFIX}
|
2001-08-24 21:46:27 +02:00
|
|
|
${TAR} -xzf ${WRKSRC}/${DISTNAME}.tar.gz -C ${DRWEB_PREFIX} --exclude *.ini
|
2001-08-25 18:31:39 +02:00
|
|
|
${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
|
2001-08-24 17:42:40 +02:00
|
|
|
${SED} 's#!!PREFIX!!#${DRWEB_PREFIX}#' < ${FILESDIR}/drwebd.sh >${WRKSRC}/drwebd.sh
|
2001-08-25 10:00:13 +02:00
|
|
|
cd ${DRWEB_PREFIX}/update; patch -s < ${FILESDIR}/update-patch && ${RM} update.pl.orig
|
2001-08-25 16:46:35 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/drwebd.sh ${PREFIX}/etc/rc.d/drwebd.sh-dist
|
2001-08-24 17:42:40 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|