View | Details | Raw Unified | Return to bug 152243 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-10 / +10 lines)
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/
(-)distinfo (-3 / +2 lines)
Lines 1-3 Link Here
1
MD5 (scamp-5.2j.tar.gz) = e987825d06849c40370a32d2b063a68d
1
SHA256 (scamp-5.3.tar.gz) = b622b3be38d76d656134e134c6c929c1b7b184fb36a3d66e016371b683fd5a05
2
SHA256 (scamp-5.2j.tar.gz) = 042e10f426df3d9967c395279b331fafa57a77626d9ad082495716c1c425299a
2
SIZE (scamp-5.3.tar.gz) = 28949
3
SIZE (scamp-5.2j.tar.gz) = 24827
(-)files/default.sample (-2 / +2 lines)
Lines 1-7 Link Here
1
# This is the /usr/local/etc/scamp/default file.
1
# This is the /usr/local/etc/scamp/default file.
2
# Created June 10, 2010 @ 15:37:48
2
# Created November 14, 2010 @ 07:09:46
3
3
4
SCAMP_VERSION=5.2j
4
SCAMP_VERSION=5.3
5
CLAMAV_DB=/var/db/clamav
5
CLAMAV_DB=/var/db/clamav
6
T_DIR=/var/db/clamav/tmp
6
T_DIR=/var/db/clamav/tmp
7
C_GROUP=clamav
7
C_GROUP=clamav
(-)files/pkg-message.in (-14 / +24 lines)
Lines 1-15 Link Here
1
1
2
***********************************************************************
2
************************************************************************
3
                            ** WARNING **                             *
3
*                            ** WARNING **                             *
4
                                                                      *
4
*                                                                      *
5
* Please read the README file before running "scamp.sh"               *
5
* Please read the README file before running "scamp.sh"                *
6
* If updating from an earlier version, it is suggested                *
6
* If updating from a version earlier than 5.2j, it is suggested        *
7
* that you first run:                                                 *
7
* that you first run: "scamp.sh -D" to delete all old configurations.  *
8
*                                                                     *
8
* Then, running "scamp.sh" will cause the script to create a new       *
9
* "scamp.sh -D" to delete all old configuration. Then, running        *
9
* configuration file.                                                  *
10
* "scamp.sh" will cause the script to create a new configuration      *
10
*                                                                      *
11
*                                                                     *
11
* Check the "README" or "man scamp" for further information.           *
12
* You will need to manually create any additional configuration files.*
12
*                                                                      *
13
* Read the README or type "man scamp" for further assistance.         *
13
* The new versions of "scamp" can download definition files not        *
14
*                                                                     *
14
* previously available in the older versions.                          *
15
***********************************************************************
15
*                                                                      *
16
* You will also have to recreate any other additional configuration    *
17
* files you might have used previously.                                *
18
*                                                                      *
19
* I apologize for this inconvenience; however, it is the only feasible *
20
* way to insure that you have the most up-to-date configuration.       *
21
*                                                                      *
22
* You will need to manually create any additional configuration files. *
23
* Read the README or type "man scamp" for further assistance.          *
24
*                                                                      *
25
************************************************************************

Return to bug 152243