From owner-freebsd-questions@FreeBSD.ORG Fri Jul 25 23:53:19 2003 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 024BD37B401 for ; Fri, 25 Jul 2003 23:53:19 -0700 (PDT) Received: from mail-2.tiscali.it (mail-2.tiscali.it [195.130.225.148]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1702643F85 for ; Fri, 25 Jul 2003 23:53:18 -0700 (PDT) (envelope-from fcasadei@inwind.it) Received: from goku.kasby (217.133.208.197) by mail-2.tiscali.it (6.7.019) id 3F210E44000606B9 for freebsd-questions@freebsd.org; Sat, 26 Jul 2003 08:53:16 +0200 Received: (qmail 788 invoked by uid 1000); 26 Jul 2003 06:52:30 -0000 Date: Sat, 26 Jul 2003 08:52:30 +0200 From: Francesco Casadei To: marlon corleone Message-ID: <20030726065230.GA740@goku.kasby> Mail-Followup-To: marlon corleone , freebsd-questions@freebsd.org References: <20030725135540.91462.qmail@web10006.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wac7ysb48OaltWcw" Content-Disposition: inline In-Reply-To: <20030725135540.91462.qmail@web10006.mail.yahoo.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.8-STABLE i386 cc: freebsd-questions@freebsd.org Subject: Re: ports-supfile config 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, 26 Jul 2003 06:53:19 -0000 --wac7ysb48OaltWcw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 25, 2003 at 06:55:40AM -0700, marlon corleone wrote: > thanks for the reply guys, i reconfigure my > "ports-supfile" here's my new config: >=20 >=20 > *default host=3Dcvsup.sk.freebsd.org > *default base=3D/usr prefix=3D/usr > *default release=3Dcvs=20 > *default delete use-rel-suffix compress >=20 > ports-all tag=3D. >=20 > i delete srcl-all entry. >=20 > here's my second question, its about the refuse file. >=20 > i copy refuse file from /usr/share/examples/cvsup to >=20 > /usr/ports/net/sup . >=20 > is this the correct path to copy refuse file into that > directory? if YES. the should i edit this line: >=20 > FROM: >=20 > *default base=3D/usr >=20 > TO >=20 > *default base=3D/usr/ports/net/sup > =20 > or i should leave the default base config path? >=20 > thanks and more power >=20 [snip] > end of the original message Files under /usr/ports that do not belong to the Ports Collection will be deleted when you run cvsup, so /usr/ports/net/sup is not a good choice. Quoting cvsup(1) manpage: [...] As many as three refuse files are examined for each supfile line. There can be a global refuse file named base/collDir/refuse which applies to all collections and releases. There can be a per-collection refuse file named base/collDir/collection/refuse which applies to a specific collec- tion. Finally, there can be a per-release and tag refuse file which applies only to a given release/tag combination within a collection. The name of the latter is formed by suffixing the name of the per-collection refuse file in the same manner as described above for the list file. None of the refuse files are required to exist. cvsup has a built-in default value of /usr/local/etc/cvsup for base and sup for collDir but it is possible to override both of these. The value of base can be changed using the -b option or a base=3Dpathname entry in the supfile. (If both are used the -b option will override the supfile entry.) The value of collDir can only be changed with the -c option; there is no supfile command to change it. As an example, suppose that the base and collDir both have their default values, and that the collection and release are `src-all' and `cvs', respectively. Assume further that checkout mode is being used with `tag=3DRELENG_3'. The three possible refuse files would then be named: /usr/local/etc/cvsup/sup/refuse /usr/local/etc/cvsup/sup/src-all/refuse /usr/local/etc/cvsup/sup/src-all/refuse.cvs:RELENG_3 If the supfile includes the command base=3D/foo the refuse files would be: /foo/sup/refuse /foo/sup/src-all/refuse /foo/sup/src-all/refuse.cvs:RELENG_3 If -b /bar is used (even with base=3D/foo in the supfile): /bar/sup/refuse /bar/sup/src-all/refuse /bar/sup/src-all/refuse.cvs:RELENG_3 and with -c stool as well: /bar/stool/refuse /bar/stool/src-all/refuse /bar/stool/src-all/refuse.cvs:RELENG_3 [...] Personally, I use /usr/local/etc/cvsup as the base dir and /usr as the prefix dir, i.e. *default base=3D/usr/local/etc/cvsup *default prefix=3D/usr The refuse file I use for the entire Ports Collection is located at /usr/local/etc/cvsup/sup/ports-all/refuse. Francesco Casadei --=20 You can download my public key from http://digilander.libero.it/fcasadei/ or retrieve it from a keyserver (pgpkeys.mit.edu, wwwkeys.pgp.net, ...) Key fingerprint is: 1671 9A23 ACB4 520A E7EE 00B0 7EC3 375F 164E B17B --wac7ysb48OaltWcw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/IiUtfsM3XxZOsXsRApaoAJ98/bztTigIa8QfgD1gXbydhOzKxQCgjTxq vd/w1LPGaLSoXqwsXCWpa1M= =V+L8 -----END PGP SIGNATURE----- --wac7ysb48OaltWcw--