Do the things I forgot about in my previous commit:

- Change the last instance of literal `/var/run/clamav' to %%RUNDIR%%.
- Bump PORTREVISION since the changes should improve the functionality
  of the installed package.

PR:		ports/75607
Approved by:	maintainer
This commit is contained in:
Yaroslav Tykhiy 2005-01-12 18:13:08 +00:00
parent 2e64d1face
commit 41053d2b17
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=126245
2 changed files with 7 additions and 7 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= clamav
PORTVERSION= ${DISTVERSION:C/([a-z])[a-z]*/.\1/g:S/-/./g}
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= clamav

View file

@ -9,9 +9,9 @@ CLAMAVGROUP=%%CLAMAVGROUP%%
UID=106
GID=$UID
CLAMRUN=$DESTDIR/var/run/clamav
CLAMLOG=$DESTDIR/var/log/clamav
DBDIR=$DESTDIR%%DBDIR%%
RUNDIR=$DESTDIR%%RUNDIR%%
if [ "$2" = "PRE-INSTALL" ]; then
@ -39,11 +39,6 @@ if [ "$2" = "PRE-INSTALL" ]; then
elif [ "$2" = "POST-INSTALL" ]; then
if [ ! -d "$CLAMRUN" ]; then
mkdir -p "$CLAMRUN" || exit 1
chown "$CLAMAVUSER:$CLAMAVGROUP" "$CLAMRUN" || exit 1
fi
if [ ! -d "$CLAMLOG" ]; then
mkdir -p "$CLAMLOG" || exit 1
chown "$CLAMAVUSER:$CLAMAVGROUP" "$CLAMLOG" || exit 1
@ -54,6 +49,11 @@ elif [ "$2" = "POST-INSTALL" ]; then
chown "$CLAMAVUSER:$CLAMAVGROUP" "$DBDIR" || exit 1
fi
if [ ! -d "$RUNDIR" ]; then
mkdir -p "$RUNDIR" || exit 1
chown "$CLAMAVUSER:$CLAMAVGROUP" "$RUNDIR" || exit 1
fi
if [ -f "$DESTDIR$PREFIX/etc/clamav.conf" ]; then
echo
echo "**************** WARNING ****************"