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
|
2002-01-04 08:13:24 +01:00
|
|
|
PORTVERSION= 4.27
|
2001-08-24 17:42:40 +02:00
|
|
|
CATEGORIES= security
|
2002-01-04 08:13:24 +01:00
|
|
|
MASTER_SITES= http://www.drweb.ru/ftp/web_pub/ \
|
|
|
|
http://www.drweb.ru/ftp/update_free/freebsd4/
|
|
|
|
DISTFILES= ${MAIN_NAME}.tgz \
|
|
|
|
drwebd_4.27_freebsd4_update.tgz
|
|
|
|
EXTRACT_ONLY= ${MAIN_NAME}.tgz
|
2001-08-24 17:42:40 +02:00
|
|
|
|
|
|
|
MAINTAINER= anton@urc.ac.ru
|
|
|
|
|
|
|
|
NO_BUILD= YES
|
|
|
|
|
2002-01-04 08:13:24 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${MAIN_NAME}
|
|
|
|
|
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
|
|
|
|
2002-01-04 08:13:24 +01:00
|
|
|
MAIN_NAME= ${PORTNAME}d-${PORTVERSION}-freebsd4
|
2001-08-24 17:42:40 +02:00
|
|
|
DRWEB_PREFIX= ${PREFIX}/${PORTNAME}
|
|
|
|
|
|
|
|
do-install:
|
2001-10-15 17:44:22 +02:00
|
|
|
-@install -dv -o ${BINOWN} -g ${BINGRP} ${DRWEB_PREFIX}
|
2001-10-03 04:13:42 +02:00
|
|
|
@cd ${DRWEB_PREFIX}; ${RM} -f drw*.txt drw*.vdb drweb drwebd
|
2002-01-04 08:13:24 +01:00
|
|
|
${TAR} -xzf ${WRKSRC}/${MAIN_NAME}.tar.gz -C ${DRWEB_PREFIX} \
|
2001-10-15 17:00:05 +02:00
|
|
|
--exclude *.ini --exclude *.key
|
2002-01-04 08:13:24 +01:00
|
|
|
${TAR} -xzf ${DISTDIR}/drwebd_4.27_freebsd4_update.tgz -C ${DRWEB_PREFIX} \
|
|
|
|
--exclude README
|
|
|
|
${TAR} -xzOf ${WRKSRC}/${MAIN_NAME}.tar.gz drweb32.ini \
|
2001-10-03 08:39:31 +02:00
|
|
|
> ${DRWEB_PREFIX}/drweb32.ini-tmpl
|
2002-01-04 08:13:24 +01:00
|
|
|
${TAR} -xzOf ${WRKSRC}/${MAIN_NAME}.tar.gz drweb.key \
|
2001-10-15 17:00:05 +02:00
|
|
|
> ${DRWEB_PREFIX}/drweb.key-dist
|
2002-01-04 08:13:24 +01:00
|
|
|
${TAR} -xzOf ${WRKSRC}/${MAIN_NAME}.tar.gz drwebd.key \
|
2001-10-15 17:00:05 +02:00
|
|
|
> ${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-08-24 17:42:40 +02:00
|
|
|
|
2001-10-19 12:55:38 +02:00
|
|
|
post-install:
|
2001-11-02 11:04:27 +01:00
|
|
|
PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} POST-INSTALL
|
2001-10-19 12:55:38 +02:00
|
|
|
|
2001-08-24 17:42:40 +02:00
|
|
|
.include <bsd.port.mk>
|