Lines 2-50
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= clamav-unofficial-sigs |
4 |
PORTNAME= clamav-unofficial-sigs |
5 |
PORTVERSION= 3.7.2 |
5 |
PORTVERSION= 5.0.3 |
6 |
PORTREVISION= 2 |
|
|
7 |
CATEGORIES= security |
6 |
CATEGORIES= security |
8 |
MASTER_SITES= SF/unofficial-sigs/ |
|
|
9 |
|
7 |
|
10 |
MAINTAINER= sf@maxempire.com |
8 |
MAINTAINER= lukasz@wasikowski.net |
11 |
COMMENT= Update script for third-party ClamAV databases |
9 |
COMMENT= Update script for third-party ClamAV databases |
12 |
|
10 |
|
|
|
11 |
LICENSE= BSD3CLAUSE |
12 |
|
13 |
RUN_DEPENDS= clamscan:${PORTSDIR}/security/clamav \ |
13 |
RUN_DEPENDS= clamscan:${PORTSDIR}/security/clamav \ |
14 |
rsync:${PORTSDIR}/net/rsync \ |
14 |
rsync:${PORTSDIR}/net/rsync \ |
15 |
curl:${PORTSDIR}/ftp/curl \ |
15 |
curl:${PORTSDIR}/ftp/curl \ |
16 |
gpg:${PORTSDIR}/security/gnupg |
16 |
gpg:${PORTSDIR}/security/gnupg \ |
|
|
17 |
bash:${PORTSDIR}/shells/bash |
17 |
|
18 |
|
18 |
USES= perl5 |
19 |
USE_GITHUB= yes |
|
|
20 |
USES= perl5 shebangfix |
19 |
USE_PERL5= run |
21 |
USE_PERL5= run |
20 |
NO_BUILD= yes |
22 |
NO_BUILD= yes |
|
|
23 |
SHEBANG_FILES= clamav-unofficial-sigs.sh |
21 |
|
24 |
|
|
|
25 |
GH_ACCOUNT= extremeshok |
26 |
|
22 |
SUB_FILES= pkg-message |
27 |
SUB_FILES= pkg-message |
23 |
|
28 |
|
24 |
SED_CONF= -e 's|%%CLAM_DBS%%|/var/db/clamav|g' \ |
|
|
25 |
-e 's|%%CLAMD_PID%%|/var/run/clamav/clamd.pid|g' \ |
26 |
-e 's|%%CLAMD_SOCKET%%|/var/run/clamav/clamd.sock|g' \ |
27 |
-e 's|%%START_CLAMD%%|${PREFIX}/etc/rc.d/clamav-clamd start|g' \ |
28 |
-e 's|%%WORK_DIR%%|/var/db/clamav-unofficial-sigs|g' |
29 |
|
30 |
OPTIONS_DEFINE= DOCS EXAMPLES |
29 |
OPTIONS_DEFINE= DOCS EXAMPLES |
31 |
|
30 |
|
32 |
post-patch: |
31 |
post-patch: |
33 |
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/clamav-unofficial-sigs.sh |
32 |
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/clamav-unofficial-sigs.sh ${WRKSRC}/cron.d/clamav-unofficial-sigs |
34 |
@${REINPLACE_CMD} ${SED_CONF} ${WRKSRC}/clamav-unofficial-sigs.conf |
|
|
35 |
@${REINPLACE_CMD} ${SED_CONF} ${WRKSRC}/clamd-status.sh |
36 |
|
33 |
|
37 |
do-install: |
34 |
do-install: |
38 |
${INSTALL_SCRIPT} ${WRKSRC}/clamav-unofficial-sigs.sh ${STAGEDIR}${PREFIX}/bin |
35 |
${INSTALL_SCRIPT} ${WRKSRC}/clamav-unofficial-sigs.sh ${STAGEDIR}${PREFIX}/bin |
39 |
${INSTALL_MAN} ${WRKSRC}/clamav-unofficial-sigs.8 ${STAGEDIR}${MANPREFIX}/man/man8 |
36 |
${INSTALL_MAN} ${WRKSRC}/clamav-unofficial-sigs.8 ${STAGEDIR}${MANPREFIX}/man/man8 |
40 |
${INSTALL_DATA} ${WRKSRC}/clamav-unofficial-sigs.conf ${STAGEDIR}${PREFIX}/etc/clamav-unofficial-sigs.conf.sample |
|
|
41 |
|
37 |
|
|
|
38 |
@${MKDIR} ${STAGEDIR}${ETCDIR} |
39 |
|
40 |
${INSTALL_DATA} ${WRKSRC}/config/master.conf ${STAGEDIR}${ETCDIR}/master.conf.sample |
41 |
${INSTALL_DATA} ${WRKSRC}/config/os.freebsd.conf ${STAGEDIR}${ETCDIR}/os.conf.sample |
42 |
${INSTALL_DATA} ${WRKSRC}/config/user.conf ${STAGEDIR}${ETCDIR}/user.conf.sample |
43 |
|
42 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
44 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
43 |
(cd ${WRKSRC} && ${INSTALL_DATA} CHANGELOG INSTALL LICENSE README ${STAGEDIR}${DOCSDIR}) |
45 |
(cd ${WRKSRC} && ${INSTALL_DATA} INSTALL LICENSE README.md ${STAGEDIR}${DOCSDIR}) |
44 |
|
46 |
|
45 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
47 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
46 |
${INSTALL_DATA} ${WRKSRC}/clamav-unofficial-sigs-cron ${STAGEDIR}${EXAMPLESDIR} |
48 |
${INSTALL_DATA} ${WRKSRC}/cron.d/clamav-unofficial-sigs ${STAGEDIR}${EXAMPLESDIR}/clamav-unofficial-sigs-cron |
47 |
${INSTALL_DATA} ${WRKSRC}/clamav-unofficial-sigs-logrotate ${STAGEDIR}${EXAMPLESDIR} |
49 |
${INSTALL_DATA} ${WRKSRC}/logrotate.d/clamav-unofficial-sigs ${STAGEDIR}${EXAMPLESDIR}/clamav-unofficial-sigs-logrotate |
48 |
${INSTALL_SCRIPT} ${WRKSRC}/clamd-status.sh ${STAGEDIR}${EXAMPLESDIR} |
|
|
49 |
|
50 |
|
50 |
.include <bsd.port.mk> |
51 |
.include <bsd.port.mk> |