mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
- Fix a thread problem on FreeBSD 5.x forcing it to use -lpthread [1]
- Fix a problem on pkg-install, when umask is not default, it create dirs with wrong permissions [2] - Bump PORTREVISION PR: ports/120885 [2] Submitted by: dmx@dmx.org.ru [2] Noticed by: havp pointyhat via pav
This commit is contained in:
parent
ab13bf621e
commit
6d71ccce3a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=207721
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= clamav
|
||||
PORTVERSION= 0.92.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= SF
|
||||
|
||||
@ -107,6 +108,8 @@ CONFIGURE_ARGS+= --enable-gethostbyname_r
|
||||
# force to use -lthr until it's not fixed.
|
||||
.if ${OSVERSION} >= 601000
|
||||
PTHREAD_LIBS= -lthr
|
||||
.else
|
||||
PTHREAD_LIBS= -lpthread
|
||||
.endif
|
||||
|
||||
.if defined(WITH_ARC)
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD: /tmp/pcvs/ports/security/clamav/files/pkg-install.in,v 1.4 2007-02-18 16:12:37 garga Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/security/clamav/files/pkg-install.in,v 1.5 2008-02-21 13:19:50 garga Exp $
|
||||
|
||||
PREFIX=${PKG_PREFIX:-%%PREFIX%%}
|
||||
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user