1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/security/clamtk/Makefile
2014-02-21 21:19:09 +00:00

64 lines
2.1 KiB
Makefile

# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= clamtk
PORTVERSION= 4.45
CATEGORIES= security
MASTER_SITES= SF/${PORTNAME}/ClamTk/${PORTVERSION}
MAINTAINER= tj@FreeBSD.org
COMMENT= GTK front-end for Clam Antivirus
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
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
NO_BUILD= yes
USES= gettext:run perl5
USE_PERL5= run
MAN1= ${PORTNAME}.1
LINGUAS= `${LS} ${WRKSRC}/po/*.mo | ${XARGS} ${BASENAME} -s .mo`
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} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${SITE_PERL}/ClamTk
${INSTALL_DATA} ${WRKSRC}/lib/*.pm ${STAGEDIR}${SITE_PERL}/ClamTk
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/images/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/images/${PORTNAME}.xpm ${STAGEDIR}${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/images/${PORTNAME}-loader.gif ${STAGEDIR}${PREFIX}/share/pixmaps
for l in ${LINGUAS}; do \
${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/$${l}/LC_MESSAGES; \
${INSTALL_DATA} ${WRKSRC}/po/$${l}.mo \
${STAGEDIR}${PREFIX}/share/locale/$${l}/LC_MESSAGES/${PORTNAME}.mo; \
done
.if !defined(NOPORTDOCS)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in CHANGES DISCLAIMER README
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>