aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2008-02-21 23:38:31 +0800
committergarga <garga@FreeBSD.org>2008-02-21 23:38:31 +0800
commit6db98d8d042f345c8b8fc494d59d793e28bc2c18 (patch)
treea06bfad867dcc80b9faf906316eec5e07a4e7fcb /security
parenta1e448a0654fbb969c3a78173298a926142f643c (diff)
downloadfreebsd-ports-gnome-6db98d8d042f345c8b8fc494d59d793e28bc2c18.tar.gz
freebsd-ports-gnome-6db98d8d042f345c8b8fc494d59d793e28bc2c18.tar.zst
freebsd-ports-gnome-6db98d8d042f345c8b8fc494d59d793e28bc2c18.zip
- Update to 20080221
- Fix pthread problem on 5.x to align with security/clamav - Fix pkg-install to five correct permissions to log, db and run dirs
Diffstat (limited to 'security')
-rw-r--r--security/clamav-devel/Makefile7
-rw-r--r--security/clamav-devel/distinfo6
-rw-r--r--security/clamav-devel/files/pkg-install.in14
3 files changed, 10 insertions, 17 deletions
diff --git a/security/clamav-devel/Makefile b/security/clamav-devel/Makefile
index f88013e50235..f4921b0c2a44 100644
--- a/security/clamav-devel/Makefile
+++ b/security/clamav-devel/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= clamav
-PORTVERSION= 20080124
+PORTVERSION= 20080221
CATEGORIES= security
MASTER_SITES= http://www.clamav.net/snapshot/ \
${MASTER_SITE_LOCAL}
@@ -112,12 +112,13 @@ CONFIGURE_ARGS+= --enable-gethostbyname_r
# force to use -lthr until it's not fixed.
.if ${OSVERSION} >= 601000
PTHREAD_LIBS= -lthr
-.endif
# Maybe the port is broken for
# FreeBSD 5.2.1 since -lc_r
# and -pthread have both issues there.
-.if ${OSVERSION} == 502010
+.elif ${OSVERSION} == 502010
PTHREAD_LIBS= -pthread
+.else
+PTHREAD_LIBS= -lpthread
.endif
.if defined(WITH_ARC)
diff --git a/security/clamav-devel/distinfo b/security/clamav-devel/distinfo
index 9ed80a7f03ca..e7174156df72 100644
--- a/security/clamav-devel/distinfo
+++ b/security/clamav-devel/distinfo
@@ -1,3 +1,3 @@
-MD5 (clamav-devel-20080124.tar.gz) = 3234056d17b32bed56cd0cdf90f07c29
-SHA256 (clamav-devel-20080124.tar.gz) = ba72d6fe314df140ef1448878113e862e7a193d961b27356c2b8834ba2dfd216
-SIZE (clamav-devel-20080124.tar.gz) = 2527300
+MD5 (clamav-devel-20080221.tar.gz) = 19149df2843aaebd95ebc65e87a923ea
+SHA256 (clamav-devel-20080221.tar.gz) = 4f9f0725b14894b54f1ea28d354adfcc925bd735d2bcf4b90e06cd31f23723a3
+SIZE (clamav-devel-20080221.tar.gz) = 2581232
diff --git a/security/clamav-devel/files/pkg-install.in b/security/clamav-devel/files/pkg-install.in
index d2225f6ad301..91ce48187153 100644
--- a/security/clamav-devel/files/pkg-install.in
+++ b/security/clamav-devel/files/pkg-install.in
@@ -14,7 +14,7 @@ RUNDIR=%%RUNDIR%%
PW="pw"
CHOWN="chown"
-MKDIR="mkdir -p"
+INSTALL_DIR="install -d -o ${CLAMAVUSER} -g ${CLAMAVGROUP} -m 0755"
if [ "$2" = "PRE-INSTALL" ]; then
@@ -41,16 +41,8 @@ if [ "$2" = "PRE-INSTALL" ]; then
fi
elif [ "$2" = "POST-INSTALL" ]; then
-
- [ ! -d "${DBDIR}" ] && (${MKDIR} ${DBDIR} || exit 1)
- ${CHOWN} -R ${CLAMAVUSER}:${CLAMAVGROUP} ${DBDIR} || exit 1
-
- [ ! -d "${LOGDIR}" ] && (${MKDIR} ${LOGDIR} || exit 1)
- ${CHOWN} -R ${CLAMAVUSER}:${CLAMAVGROUP} ${LOGDIR} || exit 1
-
- [ ! -d "${RUNDIR}" ] && (${MKDIR} ${RUNDIR} || exit 1)
- ${CHOWN} -R ${CLAMAVUSER}:${CLAMAVGROUP} ${RUNDIR} || exit 1
-
+ ${INSTALL_DIR} ${DBDIR} ${LOGDIR} ${RUNDIR}
+ ${CHOWN} -R ${CLAMAVUSER}:${CLAMAVGROUP} ${DBDIR} ${LOGDIR} ${RUNDIR}
fi
exit 0