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} |