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
|
2001-10-03 04:13:42 +02:00
|
|
|
PORTVERSION= 4.26
|
2001-10-15 17:00:05 +02:00
|
|
|
PORTREVISION= 4
|
2001-08-24 17:42:40 +02:00
|
|
|
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-09-01 10:41:22 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/String/CRC32.pm:${PORTSDIR}/devel/p5-String-CRC32
|
2001-08-25 01:23:36 +02:00
|
|
|
|
2001-08-24 17:42:40 +02:00
|
|
|
DRWEB_PREFIX= ${PREFIX}/${PORTNAME}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
-@${MKDIR} -v ${DRWEB_PREFIX}
|
2001-10-03 04:13:42 +02:00
|
|
|
@cd ${DRWEB_PREFIX}; ${RM} -f drw*.txt drw*.vdb drweb drwebd
|
2001-10-15 17:00:05 +02:00
|
|
|
${TAR} -xzf ${WRKSRC}/${DISTNAME}.tar.gz -C ${DRWEB_PREFIX} \
|
|
|
|
--exclude *.ini --exclude *.key
|
2001-10-03 08:39:31 +02:00
|
|
|
${TAR} -xzOf ${WRKSRC}/${DISTNAME}.tar.gz drweb32.ini \
|
|
|
|
> ${DRWEB_PREFIX}/drweb32.ini-tmpl
|
2001-10-15 17:00:05 +02:00
|
|
|
${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
|
2001-10-03 08:39:31 +02:00
|
|
|
cd ${DRWEB_PREFIX}; \
|
|
|
|
${PATCH} -s < ${FILESDIR}/ini-patch && \
|
|
|
|
${RM} drweb32.ini-tmpl.orig
|
|
|
|
cd ${DRWEB_PREFIX}; \
|
2001-08-25 18:31:39 +02:00
|
|
|
${SED} 's#__INSTALL_DIR__#${DRWEB_PREFIX}#' \
|
2001-10-03 08:39:31 +02:00
|
|
|
< drweb32.ini-tmpl > drweb32.ini-dist && \
|
|
|
|
${RM} drweb32.ini-tmpl
|
2001-08-25 18:31:39 +02:00
|
|
|
if [ ! -f ${DRWEB_PREFIX}/drweb32.ini ] ; then \
|
|
|
|
${CP} ${DRWEB_PREFIX}/drweb32.ini-dist \
|
|
|
|
${DRWEB_PREFIX}/drweb32.ini; \
|
|
|
|
fi
|
2001-10-15 17:00:05 +02:00
|
|
|
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
|
2001-10-03 08:39:31 +02:00
|
|
|
cd ${DRWEB_PREFIX}/update; \
|
|
|
|
${PATCH} -s < ${FILESDIR}/update-patch && ${RM} update.pl.orig
|
2001-08-24 17:42:40 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|