Date: Sat, 6 Nov 2004 21:02:20 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Dan Swartzendruber <dswartz@druber.com> Cc: questions@freebsd.org Subject: Re: Remembering tweaks for ports? Message-ID: <20041106210220.GA11973@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <6.1.2.0.2.20041106151321.01b01db8@10.0.0.2> References: <6.1.2.0.2.20041106151321.01b01db8@10.0.0.2>
next in thread | previous in thread | raw e-mail | index | archive | help
--WIyZ46R2i8wDzkSu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sat, Nov 06, 2004 at 03:15:40PM -0500, Dan Swartzendruber wrote:
>=20
> Forgive me if this has been asked before. Is there any way to not have t=
o=20
> re-customize ports whenever you do an upgrade? One that is particularly=
=20
> annoying to me is the interaction between amavisd-new and clamav. When=
=20
> clamav is installed (even via portupgrade), it sets ownership (uid and gi=
d)=20
> of various directories to clamav:clamav. Unfortunately, amavisd-new want=
s=20
> vscan:vscan. I found this out the hard way when I did the initial instal=
l,=20
> but every time clamav port is upgraded, I have to go tweak the same=20
> directories. Am I missing something here?
Yes. If you look at the security/clamav port Makefile you'll see
within it:
CLAMAVUSER?=3D clamav
CLAMAVGROUP?=3D clamav
where the '?=3D' assignment operator allows you to override that
assignment, usually from the command line. So you can do:
# cd /usr/ports/security/clamav
# make CLAMAVUSER=3Dvscan CLAMAVGROUP=3Dvscan
"But" I hear you say "that's almost as onerous as having to run
chown(1) on the various files anyway." However, you are using
portupgrade(1). Look at the configuration file
/usr/local/etc/pkgtools.cfg -- specifically, look at the 'MAKE_ARGS'
array. If you edit the config file to add:
'security/clamav' =3D> [ 'CLAMAVUSER=3Dvscan', 'CLAMAVGROUP=3Dvscan', =
],
to that array and then use portupgrade religiously for doing all of
your port maintenance, then it will be installed with vscan:vscan
ownership automatically.
Cheers,
Matthew
--=20
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
--WIyZ46R2i8wDzkSu
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)
iD8DBQFBjTvciD657aJF7eIRAlQHAJ9NMT06wcCMn/S4k4eem2p0TemmEACfVc9Y
oVmaw8mPyODgSCtsLwxjs7I=
=ClUB
-----END PGP SIGNATURE-----
--WIyZ46R2i8wDzkSu--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041106210220.GA11973>
