security/clamav port (clamav-0.92.1) With wrong umask before install, make install clamav port, directories (DBDIR, LOGDIR, RUNDIR) will be create with wrong permissions. Fix: @@ -42,14 +41,9 @@ 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 + ${MKDIR} ${DBDIR} || exit 1 + ${MKDIR} ${LOGDIR} || exit 1 + ${MKDIR} ${RUNDIR} || exit 1 fi--prhEb2TkKtlIszlx5FqhZdkTB44SxfUamzsCWtkn6BTThK7c Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- pkg-install.in.orig Wed Mar 28 15:12:07 2007 +++ pkg-install.in Wed Feb 20 16:54:47 2008 @@ -13,8 +13,7 @@ RUNDIR=%%RUNDIR%% PW="pw" -CHOWN="chown" -MKDIR="mkdir -p" +MKDIR="install -v -d -m 0755 -o ${CLAMAVUSER} -g ${CLAMAVGROUP}" if [ "$2" = "PRE-INSTALL" ]; then How-To-Repeat: Just set some umask (e.g. umask 0222) and run "make install"
Responsible Changed From-To: freebsd-ports-bugs->beech I'll take it
State Changed From-To: open->feedback Maintainer is committer
Responsible Changed From-To: beech->garga Over to maintainer
garga 2008-02-21 13:19:51 UTC FreeBSD ports repository Modified files: security/clamav Makefile security/clamav/files pkg-install.in Log: - 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 Revision Changes Path 1.109 +3 -0 ports/security/clamav/Makefile 1.5 +4 -12 ports/security/clamav/files/pkg-install.in _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: feedback->closed Committed. Thanks!