freebsd-ports/security/drweb/Makefile

68 lines
2 KiB
Makefile
Raw Normal View History

# 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-05-10 08:36:14 +02:00
PORTVERSION= 4.28
PORTREVISION= 1
2001-08-24 17:42:40 +02:00
CATEGORIES= security
2002-05-10 08:36:14 +02:00
MASTER_SITES= http://drweb.spb.ru/download/unix/
DISTFILES= ${MAIN_NAME}.tgz
2001-08-24 17:42:40 +02:00
MAINTAINER= anton@urc.ac.ru
2002-05-10 08:36:14 +02:00
NO_BUILD= yes
2001-08-24 17:42:40 +02:00
2002-01-04 08:13:24 +01:00
WRKSRC= ${WRKDIR}/${MAIN_NAME}
# 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-05-10 08:36:14 +02:00
MAIN_NAME= ${PORTNAME}-${PORTVERSION}-freebsd4
2001-08-24 17:42:40 +02:00
DRWEB_PREFIX= ${PREFIX}/${PORTNAME}
do-install:
-@install -dv -o ${BINOWN} -g ${BINGRP} ${DRWEB_PREFIX}
2002-05-10 08:36:14 +02:00
@cd ${DRWEB_PREFIX}; ${RM} -f drweb drwebd bases/* updates/*
${TAR} -cf - -C ${WRKSRC}/opt/drweb . | \
${TAR} -xf - -C ${DRWEB_PREFIX} \
--exclude "*.key" --exclude "update/update.pl*"
${TAR} -cf - -C ${WRKSRC}/var/drweb bases | \
${TAR} -xf - -C ${DRWEB_PREFIX}
${INSTALL_DATA} ${WRKSRC}/opt/drweb/drweb.key \
${DRWEB_PREFIX}/drweb.key-dist
${INSTALL_DATA} ${WRKSRC}/opt/drweb/drwebd.key \
${DRWEB_PREFIX}/drwebd.key-dist
${SED} 's#%INSTALL%#${DRWEB_PREFIX}#g' \
< ${WRKSRC}/opt/drweb/update/update.pl \
> ${DRWEB_PREFIX}/update/update.pl
chmod 750 ${DRWEB_PREFIX}/update/update.pl
${SED} 's#%INSTALL%#${DRWEB_PREFIX}#g' \
< ${WRKSRC}/etc/drweb/drweb32.ini \
> ${DRWEB_PREFIX}/drweb32.ini-dist
${RM} -f ${PREFIX}/bin/drweb
${SED} 's#%INSTALL%#${DRWEB_PREFIX}#g' \
< ${FILESDIR}/drweb.sh \
> ${PREFIX}/bin/drweb
chmod 755 ${PREFIX}/bin/drweb
if [ ! -f ${DRWEB_PREFIX}/drweb32.ini ] ; then \
${CP} ${DRWEB_PREFIX}/drweb32.ini-dist \
${DRWEB_PREFIX}/drweb32.ini; \
fi
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
post-install:
PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} POST-INSTALL
2001-08-24 17:42:40 +02:00
.include <bsd.port.mk>