From owner-freebsd-questions@FreeBSD.ORG Sat Nov 6 21:02:54 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2508D16A4CE for ; Sat, 6 Nov 2004 21:02:54 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7BC343D4C for ; Sat, 6 Nov 2004 21:02:52 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) iA6L2KeX012149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 6 Nov 2004 21:02:20 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)iA6L2KpO012144; Sat, 6 Nov 2004 21:02:20 GMT (envelope-from matthew) Date: Sat, 6 Nov 2004 21:02:20 +0000 From: Matthew Seaman To: Dan Swartzendruber Message-ID: <20041106210220.GA11973@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Dan Swartzendruber , questions@freebsd.org References: <6.1.2.0.2.20041106151321.01b01db8@10.0.0.2> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline In-Reply-To: <6.1.2.0.2.20041106151321.01b01db8@10.0.0.2> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Sat, 06 Nov 2004 21:02:20 +0000 (GMT) X-Virus-Scanned: ClamAV 0.80/575/Sat Nov 6 01:03:53 2004 clamav-milter version 0.80j on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.8 required=5.0 tests=ALL_TRUSTED,AWL,RAZOR2_CHECK autolearn=ham version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on happy-idiot-talk.infracaninophile.co.uk cc: questions@freebsd.org Subject: Re: Remembering tweaks for ports? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Nov 2004 21:02:54 -0000 --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--