Lines 5-42
Link Here
|
5 |
# $FreeBSD: ports/security/scamp/Makefile,v 1.10 2010/06/25 20:11:20 delphij Exp $ |
5 |
# $FreeBSD: ports/security/scamp/Makefile,v 1.10 2010/06/25 20:11:20 delphij Exp $ |
6 |
|
6 |
|
7 |
PORTNAME= scamp |
7 |
PORTNAME= scamp |
8 |
PORTVERSION= 5.2j |
8 |
PORTVERSION= 5.3 |
9 |
CATEGORIES= security |
9 |
CATEGORIES= security |
10 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} |
10 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} |
11 |
|
11 |
|
12 |
MAINTAINER= gerard@seibercom.net |
12 |
MAINTAINER= gerard@seibercom.net |
13 |
COMMENT= Download & Install additional definition files for Clamav |
13 |
COMMENT= Download & Install additional definition files for Clamav |
14 |
|
14 |
|
15 |
RUN_DEPENDS+= bash>=4.1.5_2:${PORTSDIR}/shells/bash \ |
15 |
RUN_DEPENDS= bash>=4.1.9:${PORTSDIR}/shells/bash \ |
16 |
clamav>=0.96.1:${PORTSDIR}/security/clamav \ |
16 |
clamav>=0.96.4:${PORTSDIR}/security/clamav \ |
17 |
gnupg>=2.0.14_2:${PORTSDIR}/security/gnupg \ |
17 |
gnupg>=2.0.16_2:${PORTSDIR}/security/gnupg \ |
18 |
rsync>=3.0.7:${PORTSDIR}/net/rsync |
18 |
rsync>=3.0.7:${PORTSDIR}/net/rsync |
19 |
|
19 |
|
|
|
20 |
LICENSE= BSD |
21 |
|
20 |
.if exists (${LOCALBASE}/bin/wget) && ! exists (${LOCALBASE}/bin/curl) |
22 |
.if exists (${LOCALBASE}/bin/wget) && ! exists (${LOCALBASE}/bin/curl) |
21 |
RUN_DEPENDS+= wget>=1.12:${PORTSDIR}/ftp/wget |
23 |
RUN_DEPENDS+= wget>=1.12_2:${PORTSDIR}/ftp/wget |
22 |
.else |
24 |
.else |
23 |
RUN_DEPENDS+= curl>=7.20.1:${PORTSDIR}/ftp/curl |
25 |
RUN_DEPENDS+= curl>=7.21.1:${PORTSDIR}/ftp/curl |
24 |
.endif |
26 |
.endif |
25 |
|
27 |
|
26 |
NO_BUILD= yes |
28 |
NO_BUILD= yes |
27 |
|
|
|
28 |
SUB_FILES= pkg-message |
29 |
SUB_FILES= pkg-message |
29 |
|
30 |
|
30 |
MAN1= scamp.1 |
31 |
MAN1= scamp.1 |
31 |
MANCOMPRESSED= no |
|
|
32 |
|
32 |
|
33 |
post-patch: |
33 |
post-patch: |
34 |
@${REINPLACE_CMD} -e 's|CLAMAV_DB=$${CLAMAV_DB:-""}|CLAMAV_DB=$${CLAMAV_DB:-\"/var/db/clamav\"}|g' ${WRKSRC}/${PORTNAME}.sh |
34 |
@${REINPLACE_CMD} -e 's|CLAMAV_DB=$${CLAMAV_DB:-""}|CLAMAV_DB=$${CLAMAV_DB:-\"/var/db/clamav\"}|g' ${WRKSRC}/${PORTNAME}.sh |
35 |
@${REINPLACE_CMD} -e 's|CONFIG_DIR=$${CONFIG_DIR:-"/etc/scamp"}|CONFIG_DIR=$${CONFIG_DIR:-\"${PREFIX}/etc/scamp\"}|g' ${WRKSRC}/${PORTNAME}.sh |
35 |
@${REINPLACE_CMD} -e 's|CONFIG_DIR=$${CONFIG_DIR:-"/etc/scamp"}|CONFIG_DIR=$${CONFIG_DIR:-\"${PREFIX}/etc/scamp\"}|g' ${WRKSRC}/${PORTNAME}.sh |
36 |
|
36 |
|
37 |
post-install: |
37 |
post-install: |
38 |
@if [ ! -d ${PREFIX}/etc/scamp ]; then \ |
38 |
@if [ ! -d ${ETCDIR} ]; then \ |
39 |
${MKDIR} ${PREFIX}/etc/scamp ; \ |
39 |
${MKDIR} ${ETCDIR} ; \ |
40 |
fi |
40 |
fi |
41 |
|
41 |
|
42 |
@${INSTALL_DATA} ${FILESDIR}/default.sample ${PREFIX}/etc/scamp/ |
42 |
@${INSTALL_DATA} ${FILESDIR}/default.sample ${PREFIX}/etc/scamp/ |