From owner-freebsd-ports@FreeBSD.ORG Tue Jun 10 15:25:47 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from straylight.ringlet.net (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with SMTP id A67BB1065680 for ; Tue, 10 Jun 2008 15:25:46 +0000 (UTC) (envelope-from roam@ringlet.net) Received: (qmail 1868 invoked by uid 1000); 10 Jun 2008 15:24:17 -0000 Date: Tue, 10 Jun 2008 18:24:17 +0300 From: Peter Pentchev To: Jeffrey Goldberg Message-ID: <20080610152417.GA1045@straylight.m.ringlet.net> References: <20080610005448.GC58305@shepherd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline In-Reply-To: <20080610005448.GC58305@shepherd> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-ports@freebsd.org Subject: Re: Where should "contrib" scripts and utilities be installed? 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: Tue, 10 Jun 2008 15:25:47 -0000 --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 09, 2008 at 08:54:49PM -0400, Sahil Tandon wrote: > Jeffrey Goldberg wrote: >=20 > > When some project includes a contrib/ directory with its source where= =20 > > should those canonically be installed? > > > > /usr/local/share/$PORT > > > > or > > > > /usr/local/share/doc/$PORT > > > > or someplace else. > > > > In particular, I'm planing on submitting a patch to sysutils/rsnapshot = port=20 > > to also install, somewhere, the contrib directly that comes out of the= =20 > > tarball. > =20 > The existence of ports with a "-contrib" suffix suggests you may need to= =20 > create a distinct port for the contrib files. databases/postgresql-contr= ib,=20 > for example. Actually, that is not strictly necessary. There are other ports that do things in slightly different ways: - some things in contrib/ are merely documentation snippets that belong in share/doc/$PACKAGE, as Jeffery suggested - some things in contrib/ are sample additions, implementations, clients, add-ons and such that *might* belong in share/examples/$PACKAGE - some things in contrib/ are scripts, clients, add-ons and such that might also belong in libexec/$PACKAGE (if they are executable files) or share/$PACKAGE (if they are not... I can't think of any examples right now, but there might be) - some things in contrib/ are really best left in a separate port :) For rsnapshot itself - erm, I don't see a contrib/ directory in its source; do you mean the utils/ directory, or are you looking at some version that is not in the Ports Collection yet? :) If it is utils/ that you mean, then, well, it's actually your choice - the things there seem to be little scripts that may live in $EXAMPLESDIR, may live in libexec/rsnapshot/, and may live in a separate rsnapshot-utils port. Either way would be fine, at least IMHO. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@cnsys.bg roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 Hey, out there - is it *you* reading me, or is it someone else? --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhOnKEACgkQ7Ri2jRYZRVP+gACfWoKq6F4RmuPB7nwmVhjRVznd GSIAoKuPYkOmc1Eia2z5QnIJ6OIwMJGR =fFy0 -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+--