FreeBSD Bugzilla – Attachment 48468 Details for
Bug 74172
Fix ports: security/clamav and security/clamav-devel (change db directory to /var/db/clamav and fix removal of db on deinstall)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 4.64 KB, created by
Jean-Yves Lefort
on 2004-11-20 17:50:32 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Jean-Yves Lefort
Created:
2004-11-20 17:50:32 UTC
Size:
4.64 KB
patch
obsolete
>diff -ruN /usr/ports/security/clamav-devel/Makefile clamav-devel/Makefile >--- /usr/ports/security/clamav-devel/Makefile Fri Nov 5 08:27:42 2004 >+++ clamav-devel/Makefile Sat Nov 20 18:34:58 2004 >@@ -40,7 +40,10 @@ > > PORTDOCS= NEWS ChangeLog html > >-CONFIGURE_ARGS= --with-dbdir=${DATADIR} \ >+DBDIR= /var/db/clamav >+PLIST_SUB+= DBDIR=${DBDIR} >+ >+CONFIGURE_ARGS= --with-dbdir=${DBDIR} \ > --disable-clamuko \ > --disable-clamav \ > --enable-bigstack \ >@@ -64,7 +67,7 @@ > CLAMAV_MILTER_SOCKET?= /var/run/clamav/clmilter.sock > > SED_SCRIPT= -e 's|%%PREFIX%%|${PREFIX}|g' \ >- -e 's|%%DATADIR%%|${DATADIR}|g' \ >+ -e 's|%%DBDIR%%|${DBDIR}|g' \ > -e 's|%%CLAMAVUSER%%|${CLAMAVUSER}|g' \ > -e 's|%%CLAMAVGROUP%%|${CLAMAVGROUP}|g' \ > -e 's|%%CLAMAV_CLAMD_SOCKET%%|${CLAMAV_CLAMD_SOCKET}|g' \ >@@ -79,7 +82,7 @@ > -e 's|^\#?(ScanMail)$$|\1|' \ > -e 's|^\#?(NotifyClamd)$$|\1|' \ > -e 's|^\#?(Checks)$$|\#\1|' \ >- -e 's|^\#?(DatabaseDirectory) .*$$|\1 ${DATADIR}|' \ >+ -e 's|^\#?(DatabaseDirectory) .*$$|\1 ${DBDIR}|' \ > -e 's|^\#?(DatabaseOwner) .*$$|\1 ${CLAMAVUSER}|' \ > -e 's|^\#?(UpdateLogFile) .*$$|\1 /var/log/clamav/freshclam.log|' \ > -e 's|^\#?(FixStaleSocket)$$|\1|' >@@ -150,7 +153,7 @@ > ${DESTDIR}${RC_DIR}/clamav-clamd${RC_SUFX} > @${INSTALL_SCRIPT} ${WRKDIR}/clamav-freshclam.sh \ > ${DESTDIR}${RC_DIR}/clamav-freshclam${RC_SUFX} >- @${CHOWN} -R ${CLAMAVUSER}:${CLAMAVGROUP} ${DESTDIR}${DATADIR} >+ @${CHOWN} -R ${CLAMAVUSER}:${CLAMAVGROUP} ${DESTDIR}${DBDIR} > .for c in clamd freshclam > @[ -f ${DESTDIR}${PREFIX}/etc/${c}.conf ] || \ > ${CP} ${DESTDIR}${PREFIX}/etc/${c}.conf.default ${DESTDIR}${PREFIX}/etc/${c}.conf >diff -ruN /usr/ports/security/clamav-devel/files/clamav-clamd.sh clamav-devel/files/clamav-clamd.sh >--- /usr/ports/security/clamav-devel/files/clamav-clamd.sh Fri Nov 5 08:27:42 2004 >+++ clamav-devel/files/clamav-clamd.sh Sat Nov 20 18:35:28 2004 >@@ -23,7 +23,7 @@ > > command=%%PREFIX%%/sbin/clamd > pidfile=/var/run/clamav/clamd.pid >-required_dirs=%%DATADIR%% >+required_dirs=%%DBDIR%% > required_files=%%PREFIX%%/etc/clamd.conf > > # read settings, set default values >diff -ruN /usr/ports/security/clamav-devel/files/clamav-freshclam.sh clamav-devel/files/clamav-freshclam.sh >--- /usr/ports/security/clamav-devel/files/clamav-freshclam.sh Fri Nov 5 08:27:42 2004 >+++ clamav-devel/files/clamav-freshclam.sh Sat Nov 20 18:35:13 2004 >@@ -24,7 +24,7 @@ > command=%%PREFIX%%/bin/freshclam > pidfile=/var/run/clamav/freshclam.pid > command_args="--daemon" >-required_dirs=%%DATADIR%% >+required_dirs=%%DBDIR%% > required_files=%%PREFIX%%/etc/freshclam.conf > > # read settings, set default values >diff -ruN /usr/ports/security/clamav-devel/files/clamav-milter.sh clamav-devel/files/clamav-milter.sh >--- /usr/ports/security/clamav-devel/files/clamav-milter.sh Fri Nov 5 08:27:42 2004 >+++ clamav-devel/files/clamav-milter.sh Sat Nov 20 18:35:21 2004 >@@ -22,7 +22,7 @@ > rcvar=`set_rcvar` > > command=%%PREFIX%%/sbin/clamav-milter >-required_dirs=%%DATADIR%% >+required_dirs=%%DBDIR%% > required_files=%%PREFIX%%/etc/clamd.conf > > start_precmd=start_precmd >diff -ruN /usr/ports/security/clamav-devel/pkg-install clamav-devel/pkg-install >--- /usr/ports/security/clamav-devel/pkg-install Fri Nov 5 08:27:42 2004 >+++ clamav-devel/pkg-install Sat Nov 20 18:35:54 2004 >@@ -11,7 +11,7 @@ > > CLAMRUN=$DESTDIR/var/run/clamav > CLAMLOG=$DESTDIR/var/log/clamav >-DATADIR=$DESTDIR%%DATADIR%% >+DBDIR=$DESTDIR%%DBDIR%% > > if [ "$2" = "PRE-INSTALL" ]; then > >@@ -49,9 +49,9 @@ > chown "$CLAMAVUSER:$CLAMAVGROUP" "$CLAMLOG" || exit 1 > fi > >- if [ ! -d "$DATADIR" ]; then >- mkdir -p "$DATADIR" || exit 1 >- chown "$CLAMAVUSER:$CLAMAVGROUP" "$DATADIR" || exit 1 >+ if [ ! -d "$DBDIR" ]; then >+ mkdir -p "$DBDIR" || exit 1 >+ chown "$CLAMAVUSER:$CLAMAVGROUP" "$DBDIR" || exit 1 > fi > > if [ -f "$DESTDIR$PREFIX/etc/clamav.conf" ]; then >diff -ruN /usr/ports/security/clamav-devel/pkg-plist clamav-devel/pkg-plist >--- /usr/ports/security/clamav-devel/pkg-plist Fri Nov 5 08:27:42 2004 >+++ clamav-devel/pkg-plist Sat Nov 20 18:36:32 2004 >@@ -22,8 +22,8 @@ > @unexec if cmp -s %D/etc/freshclam.conf %D/etc/freshclam.conf.default; then rm -f %D/etc/freshclam.conf; fi > etc/freshclam.conf.default > @exec [ -f %B/freshclam.conf ] || cp %B/%f %B/freshclam.conf >-@unexec [ -s %D/%%DATADIR%%/daily.cvd ] || rm -f %D/%%DATADIR%%/daily.cvd || true >-@unexec [ -s %D/%%DATADIR%%/main.cvd ] || rm -f %D/%%DATADIR%%/main.cvd || true >-@unexec rmdir %D/%%DATADIR%% 2>/dev/null || true >+@unexec [ ! -f %%DBDIR%%/daily.cvd ] || rm -f %%DBDIR%%/daily.cvd || true >+@unexec [ ! -f %%DBDIR%%/main.cvd ] || rm -f %%DBDIR%%/main.cvd || true >+@unexec rmdir %%DBDIR%% > @unexec rmdir /var/run/clamav 2>/dev/null || true > @unexec rmdir /var/log/clamav 2>/dev/null || true
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 74172
:
48467
| 48468 |
48469