From owner-freebsd-ports@FreeBSD.ORG Fri Nov 3 21:14:39 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4A3316A415 for ; Fri, 3 Nov 2006 21:14:38 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6400F43D46 for ; Fri, 3 Nov 2006 21:14:25 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [IPv6:::1] (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.13.8/8.13.8) with ESMTP id kA3LDvn4028813; Fri, 3 Nov 2006 21:13:57 GMT (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=softfail; spf=softfail X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk kA3LDvn4028813 Message-ID: <454BB10E.4020900@infracaninophile.co.uk> Date: Fri, 03 Nov 2006 21:13:50 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5.0.7 (X11/20061015) MIME-Version: 1.0 To: Charles Sprickman References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig064E1E0C3E7DC9E68007C722" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (smtp.infracaninophile.co.uk [IPv6:::1]); Fri, 03 Nov 2006 21:14:18 +0000 (GMT) X-Virus-Scanned: ClamAV 0.88.5/2159/Fri Nov 3 17:49:21 2006 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00, DKIM_POLICY_TESTING,NO_RELAYS autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-ports@freebsd.org Subject: Re: [nycbug-talk] creating "local" ports (fwd) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Nov 2006 21:14:39 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig064E1E0C3E7DC9E68007C722 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Charles Sprickman wrote: > Is there a way to create a "local" category? ie: /usr/ports/LOCAL Create /usr/ports/Makefile.local containing: SUBDIR+=3D LOCAL > -By default cvsup and (I assume portsnap) would nuke anything in > /usr/ports that was not part of the main ports tree. How can this be > dealt with in a way that none of the current/future port update > methods will not clobber our local tree? cvsup won't nuke a file that it knows nothing about. ie. it only nukes files that have history in CVS. portsnap I believe is less friendly to local additions. A simple method of dealing with this is to keep your LOCAL tree in an entirely separate filesystem and write yourself a tiny little script to generate symlinks under /usr/ports. > -How does one handle packages that depend on say, qmail, but I now > want to depend on local-qmail? I know portupgrade can be tought this > by setting an alternate pkgdep, but is there any clever way of doing > this so that when you're not using portupgrade the deps are adjusted? That's a generic problem with ports -- instead of registering a dependency on the package that provided the file that satisfied the test specified by the FOO_DEPENDS variable in the port Makefile, the dependency is registered on the default package to install to resolve the dependency as shown in the second half of the FOO_DEPENDS line. As far as I know portupgrade is the only software with the alt-pkgdep functionality available: it isn't available in the basic ports per-se, although a number of popular core ports can specify alternate dependencies where support for doing that has been specifically written into the various Makefiles involved. No idea if either portmaster= or portmanager have any similar alternate dependency functionality though= =2E Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig064E1E0C3E7DC9E68007C722 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFS7EV8Mjk52CukIwRCDRtAJ9kJNH7G1ZiLPVscNChqZGBfgo2igCePtIS jIh1CanZiJI2DBsbdKpYAkI= =naNS -----END PGP SIGNATURE----- --------------enig064E1E0C3E7DC9E68007C722--