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

Collapse All | Expand All

(-)clamav-devel/Makefile (-14 / +19 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	clamav
8
PORTNAME=	clamav
9
PORTVERSION=	20040419
9
PORTVERSION=	20040503
10
CATEGORIES=	security
10
CATEGORIES=	security
11
MASTER_SITES=	http://clamav.sourceforge.net/snapshot/
11
MASTER_SITES=	http://clamav.sourceforge.net/snapshot/
12
PKGNAMESUFFIX=	-devel
12
PKGNAMESUFFIX=	-devel
Lines 31-39 Link Here
31
USE_AUTOCONF_VER=257
31
USE_AUTOCONF_VER=257
32
USE_LIBTOOL_VER=13
32
USE_LIBTOOL_VER=13
33
INSTALLS_SHLIB=	yes
33
INSTALLS_SHLIB=	yes
34
USE_RC_SUBR=	yes
34
35
35
CONFIGURE_ARGS=	--with-dbdir=${DATADIR} \
36
CONFIGURE_ARGS=	--with-dbdir=${DATADIR} \
36
		--disable-clamav --enable-bigstack
37
		--disable-clamuko \
38
		--disable-clamav \
39
		--enable-bigstack \
40
		--disable-dependency-tracking
41
CPPFLAGS+=	-I${LOCALBASE}/include
37
CFLAGS+=	-I${LOCALBASE}/include
42
CFLAGS+=	-I${LOCALBASE}/include
38
LDFLAGS+=	-L${LOCALBASE}/lib
43
LDFLAGS+=	-L${LOCALBASE}/lib
39
CONFIGURE_ENV+=	LDFLAGS="${LDFLAGS}"
44
CONFIGURE_ENV+=	LDFLAGS="${LDFLAGS}"
Lines 65-70 Link Here
65
		-e 's|^\#?(PidFile) .*$$|\1 /var/run/clamav/clamd.pid|' \
70
		-e 's|^\#?(PidFile) .*$$|\1 /var/run/clamav/clamd.pid|' \
66
		-e 's|^\#?(LocalSocket) .*$$|\1 ${CLAMAV_CLAMD_SOCKET}|' \
71
		-e 's|^\#?(LocalSocket) .*$$|\1 ${CLAMAV_CLAMD_SOCKET}|' \
67
		-e 's|^\#?(User) .*$$|\1 ${CLAMAVUSER}|' \
72
		-e 's|^\#?(User) .*$$|\1 ${CLAMAVUSER}|' \
73
		-e 's|^\#?(AllowSupplementaryGroups)$$|\1|' \
68
		-e 's|^\#?(ScanMail)$$|\1|' \
74
		-e 's|^\#?(ScanMail)$$|\1|' \
69
		-e 's|^\#?(Checks)$$|\#\1|' \
75
		-e 's|^\#?(Checks)$$|\#\1|' \
70
		-e 's|^\#?(DatabaseDirectory) .*$$|\1 ${DATADIR}|' \
76
		-e 's|^\#?(DatabaseDirectory) .*$$|\1 ${DATADIR}|' \
Lines 72-80 Link Here
72
		-e 's|^\#?(UpdateLogFile) .*$$|\1 /var/log/clamav/freshclam.log|' \
78
		-e 's|^\#?(UpdateLogFile) .*$$|\1 /var/log/clamav/freshclam.log|' \
73
		-e 's|^\#?(FixStaleSocket)$$|\1|'
79
		-e 's|^\#?(FixStaleSocket)$$|\1|'
74
80
75
.include <bsd.port.pre.mk>
76
77
USE_RC_SUBR=	yes
78
RC_DIR=		${PREFIX}/etc/rc.d
81
RC_DIR=		${PREFIX}/etc/rc.d
79
RC_SUFX=	.sh
82
RC_SUFX=	.sh
80
SED_SCRIPT+=	-e 's|%%RC_SUBR%%|${RC_SUBR}|g' \
83
SED_SCRIPT+=	-e 's|%%RC_SUBR%%|${RC_SUBR}|g' \
Lines 83-103 Link Here
83
PLIST_SUB+=	RC_DIR=${RC_DIR} \
86
PLIST_SUB+=	RC_DIR=${RC_DIR} \
84
		RC_SUFX=${RC_SUFX}
87
		RC_SUFX=${RC_SUFX}
85
88
89
.include <bsd.port.pre.mk>
90
86
.if ${OSVERSION} < 501001
91
.if ${OSVERSION} < 501001
87
# compiles only with optimizer
92
# compiles only with libcipher
88
CFLAGS+=	-O
89
LDFLAGS+=	-lcipher
93
LDFLAGS+=	-lcipher
90
.endif
94
.endif
91
95
92
.if defined(WITH_MILTER)
96
.if defined(WITH_MILTER)
93
.if exists(${LOCALBASE}/lib/libmilter.a)
97
.if exists(/usr/lib/libmilter.a) || exists(${LOCALBASE}/lib/libmilter.a)
94
CPPFLAGS+=     -I${LOCALBASE}/include
95
CONFIGURE_ENV+=        CPPFLAGS="${CPPFLAGS}"
96
.endif
97
CONFIGURE_ARGS+=	--enable-milter
98
CONFIGURE_ARGS+=	--enable-milter
98
PLIST_SUB+=	CLAMAV-MILTER:=""
99
PLIST_SUB+=	CLAMAV-MILTER=""
100
.else
101
BROKEN=		requires Sendmail 8.12
102
PLIST_SUB+=	CLAMAV-MILTER="@comment "
103
.endif
99
.else
104
.else
100
PLIST_SUB+=	CLAMAV-MILTER:="@comment "
105
PLIST_SUB+=	CLAMAV-MILTER="@comment "
101
.endif
106
.endif
102
107
103
post-patch:
108
post-patch:
Lines 121-127 Link Here
121
	@${SED} ${SED_SCRIPT} ${FILESDIR}/freshclam.sh > ${WRKDIR}/freshclam.sh
126
	@${SED} ${SED_SCRIPT} ${FILESDIR}/freshclam.sh > ${WRKDIR}/freshclam.sh
122
127
123
pre-install:
128
pre-install:
124
	 ${SETENV} PKG_PREFIX=${PREFIX} \
129
	@${SETENV} PKG_PREFIX=${PREFIX} \
125
		${SH} ${PKGINSTALL} ${PREFIX} PRE-INSTALL
130
		${SH} ${PKGINSTALL} ${PREFIX} PRE-INSTALL
126
.if !defined(NOPORTDOCS)
131
.if !defined(NOPORTDOCS)
127
	@${MKDIR} ${DOCSDIR}
132
	@${MKDIR} ${DOCSDIR}
(-)clamav-devel/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (clamav-devel-20040419.tar.gz) = 57e4348a60ff7e779b74d92be5bf8513
1
MD5 (clamav-devel-20040503.tar.gz) = 26de36cc374df6e076dc489b2c1ad0ef
2
SIZE (clamav-devel-20040419.tar.gz) = 1313229
2
SIZE (clamav-devel-20040503.tar.gz) = 1338089
(-)clamav-devel/pkg-descr (-5 / +5 lines)
Lines 1-8 Link Here
1
This is a snapshot version of Clam Antivirus. Clam Antivirus
1
This is a snapshot version of Clam Antivirus.
2
is a command line virus scanner written entirely in C its 
2
Clam Antivirus is command line virus scanner written entirely in C
3
database is kept up to date. It also detects polymorphic
3
and its database is kept up to date. It also detects polymorphic
4
viruses, scans compressed files and is supported by AMaViS.
4
viruses, scans compressed files and supported by AMaViS.
5
Optionally you can use the clamav-milter interface to connect
5
Optionally you can use the clamav-milter interface to connect
6
clamav with sendmail.
6
clamav with sendmail.
7
7
8
WWW: http://clamav.net/
8
WWW: http://www.clamav.net/
(-)clamav-devel/pkg-plist (-2 / +3 lines)
Lines 1-11 Link Here
1
@unexec [ ! -f /var/run/clamav/clamd.pid ] || %%RC_DIR%%/clamd%%RC_SUFX%% stop || true
1
bin/clamscan
2
bin/clamscan
2
bin/clamdscan
3
bin/clamdscan
3
bin/freshclam
4
bin/freshclam
4
bin/sigtool
5
bin/sigtool
5
etc/rc.d/clamav-clamd%%RC_SUFX%%
6
etc/rc.d/clamav-clamd%%RC_SUFX%%
6
etc/rc.d/freshclam%%RC_SUFX%%
7
etc/rc.d/freshclam%%RC_SUFX%%
7
%%CLAMAV-MILTER:%%etc/rc.d/clamav-milter%%RC_SUFX%%
8
%%CLAMAV-MILTER%%etc/rc.d/clamav-milter%%RC_SUFX%%
8
%%CLAMAV-MILTER:%%sbin/clamav-milter
9
%%CLAMAV-MILTER%%sbin/clamav-milter
9
sbin/clamd
10
sbin/clamd
10
include/clamav.h
11
include/clamav.h
11
lib/libclamav.so.1
12
lib/libclamav.so.1

Return to bug 66203