View | Details | Raw Unified | Return to bug 53305
Collapse All | Expand All

(-)clamav2/Makefile (-7 / +10 lines)
Lines 9-15 Link Here
9
PORTVERSION=	0.54
9
PORTVERSION=	0.54
10
PORTREVISION=	1
10
PORTREVISION=	1
11
CATEGORIES=	security
11
CATEGORIES=	security
12
MASTER_SITES=	http://clamav.elektrapro.com/stable/
12
MASTER_SITES=	http://clamav.elektrapro.com/stable/ \
13
		http://clamav.essentkabel.com/stable/
14
13
15
14
MAINTAINER=	markun@onohara.to
16
MAINTAINER=	markun@onohara.to
15
COMMENT=	Command line virus scanner written entirely in C
17
COMMENT=	Command line virus scanner written entirely in C
Lines 36-47 Link Here
36
38
37
.include <bsd.port.pre.mk>
39
.include <bsd.port.pre.mk>
38
40
39
.if ${OSVERSION} >= 500000
40
EXTRA_PATCHES=	${FILESDIR}/patch5-*
41
.endif
42
43
pre-install:
41
pre-install:
44
	@${ECHO} "==>  Creating custom user to run clamav..."
42
	@${ECHO} "===>   Creating custom user to run clamav..."
45
#	${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
43
	${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
44
45
post-install:
46
	@${ECHO} "===>   Setting permissions..."
47
	@${SETENV} PKG_PREFIX=${PREFIX} ${sh} \
48
	${SH} ${PKGINSTALL} ${PREFIX} POST-INSTALL
46
49
47
.include <bsd.port.post.mk>
50
.include <bsd.port.post.mk>
(-)clamav2/pkg-install (-5 / +13 lines)
Lines 1-11 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
if [ "$2" != "PRE-INSTALL" ]; then
3
if [ "$2" = "PRE-INSTALL" ]; then
4
    exit 0
5
fi
6
4
7
USER?=clamav
5
USER=clamav
8
GROUP?=clamav
6
GROUP=clamav
9
7
10
if ! pw groupshow "$GROUP" 2>/dev/null 1>&2; then
8
if ! pw groupshow "$GROUP" 2>/dev/null 1>&2; then
11
	if pw groupadd $GROUP; then
9
	if pw groupadd $GROUP; then
Lines 27-30 Link Here
27
                exit 1
25
                exit 1
28
        fi
26
        fi
29
fi
27
fi
28
fi
29
30
if [ "$2" = "POST-INSTALL" ]; then
31
        chown -R clamav:clamav ${PKG_PREFIX}/share/clamav
32
fi
33
34
if [ "$2" != "POST-INSTALL" ] && [ "$2" != "PRE-INSTALL" ]; then
35
	exit 0
36
fi
37
30
exit 0
38
exit 0
(-)clamav2/pkg-plist (+1 lines)
Lines 11-13 Link Here
11
share/clamav/viruses.db
11
share/clamav/viruses.db
12
share/clamav/viruses.db2
12
share/clamav/viruses.db2
13
@dirrm share/clamav
13
@dirrm share/clamav
14
@unexec rmuser -y clamav

Return to bug 53305