1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/security/clamtk/Makefile
Martin Wilke 966e9cbbd0 - Update to 4.33
PR:		158442
Submitted by:	Ports Fury
2011-07-02 07:23:03 +00:00

66 lines
2.1 KiB
Makefile

# New ports collection makefile for: clamtk
# Date created: 24 February 2007
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= clamtk
PORTVERSION= 4.33
CATEGORIES= security
MASTER_SITES= SF/${PORTNAME}/ClamTk/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= GTK front-end for Clam Antivirus
RUN_DEPENDS= p5-Config-Tiny>=2.12:${PORTSDIR}/devel/p5-Config-Tiny \
p5-Date-Calc>=5.5.1:${PORTSDIR}/devel/p5-Date-Calc \
p5-File-Find-Rule>=0.30:${PORTSDIR}/devel/p5-File-Find-Rule \
p5-Locale-gettext>=1.05:${PORTSDIR}/devel/p5-Locale-gettext \
p5-Net-DNS>=0.65:${PORTSDIR}/dns/p5-Net-DNS \
clamscan:${PORTSDIR}/security/clamav \
p5-libwww>=5.822:${PORTSDIR}/www/p5-libwww \
zenity:${PORTSDIR}/x11/zenity \
p5-Gtk2>=1.144:${PORTSDIR}/x11-toolkits/p5-Gtk2
LICENSE= ART10 ART20 GPLv1 GPLv2 GPLv3
LICENSE_COMB= dual
NO_BUILD= yes
USE_PERL5_RUN= yes
USE_GETTEXT= yes
MAN1= ${PORTNAME}.1
post-extract:
@${GUNZIP_CMD} ${WRKSRC}/${PORTNAME}.1.gz
post-patch:
@${REINPLACE_CMD} -e \
's|/usr/bin|${LOCALBASE}/bin|g ; \
s|/usr/share|${PREFIX}/share|g ; \
s|/var/lib/clamav|/var/db/clamav|g' ${WRKSRC}/lib/*.pm
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
@${MKDIR} ${SITE_PERL}/ClamTk
${INSTALL_DATA} ${WRKSRC}/lib/*.pm ${SITE_PERL}/ClamTk
@${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.xpm ${PREFIX}/share/pixmaps
.for lang in ar ast bg bs ca cs da de el_GR en_GB es eu fi fo fr gl he hr hu it ja ko lt ms nb nl nl_BE nn pl pt pt_BR ro ru sk sl sv th tr uk zh_CN zh_TW
@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
${PREFIX}/share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in CHANGES DISCLAIMER LICENSE README
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>