blob: 7c5ba0d38b43ea01451b7e6af8589f90f0c9af7a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# New ports collection makefile for: clamtk
# Date created: 24 February 2007
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= clamtk
PORTVERSION= 4.44
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
USE_PERL5_RUN= yes
USES= gettext: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} ${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}/images/${PORTNAME}.png ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/images/${PORTNAME}.xpm ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/images/${PORTNAME}-loader.gif ${PREFIX}/share/pixmaps
for l in ${LINGUAS}; do \
${MKDIR} ${PREFIX}/share/locale/$${l}/LC_MESSAGES; \
${INSTALL_DATA} ${WRKSRC}/po/$${l}.mo \
${PREFIX}/share/locale/$${l}/LC_MESSAGES/${PORTNAME}.mo; \
done
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in CHANGES DISCLAIMER README
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
|