From owner-freebsd-ports@FreeBSD.ORG Tue May 27 06:07:32 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 230DE593 for ; Tue, 27 May 2014 06:07:32 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B9ED02220 for ; Tue, 27 May 2014 06:07:31 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.8/8.14.8) with ESMTP id s4R67OWm029587 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 27 May 2014 07:07:25 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: lucid-nonsense.infracaninophile.co.uk; dmarc=none header.from=infracaninophile.co.uk DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk s4R67OWm029587 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1401170845; bh=WozcWfWEwx7tOMvOnQfrLxQAiPAKvE4epb8I85GHj2o=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Tue,=2027=20May=202014=2007:07:17=20+0100|From:=20Matthew =20Seaman=20|To:=20freebsd-ports@ freebsd.org|Subject:=20Re:=20Is=20staging=20a=20port=20really=20th is=20simple?|References:=20<524CE820.5060003@missouri.edu>=20<2013 1003061511.GF85314@ithaqua.etoilebsd.net>=20<538179d9.ERL3ZKEnk4pQ KKib%perryh@pluto.rain.com>=20=20<538197E3.1070609@marino.st>= 20<53840869.xP0jQy92GIgSbFZy%perryh@pluto.rain.com>|In-Reply-To:=2 0<53840869.xP0jQy92GIgSbFZy%perryh@pluto.rain.com>; b=C2V7z3Vyh2EFXn0pqf684RDU0GQ8f9MxXZHGdSIR6IaX3hHzFcTwYDNnCq8D5IvR+ JGflny4IW0QyUmb34Pyb0KXExw5Gu1HPbal/Hfr3MBtaWJywp+NLETDFbpcLGdC/x7 GtwBIw1ig+5EqllGqgTCWObCGpFjfIuK38W5lfzI= Message-ID: <53842B95.7090600@infracaninophile.co.uk> Date: Tue, 27 May 2014 07:07:17 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: Is staging a port really this simple? References: <524CE820.5060003@missouri.edu> <20131003061511.GF85314@ithaqua.etoilebsd.net> <538179d9.ERL3ZKEnk4pQKKib%perryh@pluto.rain.com> <538197E3.1070609@marino.st> <53840869.xP0jQy92GIgSbFZy%perryh@pluto.rain.com> In-Reply-To: <53840869.xP0jQy92GIgSbFZy%perryh@pluto.rain.com> X-Enigmail-Version: 1.6 OpenPGP: id=E7F39EBF Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VvgcNiIvNTQuhl0gJF53g8rS7CR2qjvek" X-Virus-Scanned: clamav-milter 0.98.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2014 06:07:32 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --VvgcNiIvNTQuhl0gJF53g8rS7CR2qjvek Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 27/05/2014 04:37, Perry Hutchison wrote: > post-install: > - @[ -f ${PREFIX}/etc/diskcheckd.conf ] \ > - || ${CP} -p ${PREFIX}/etc/diskcheckd.conf.sample \ > - ${PREFIX}/etc/diskcheckd.conf > + @${CP} -p ${STAGEDIR}${PREFIX}/etc/diskcheckd.conf.sample \ > + ${STAGEDIR}${PREFIX}/etc/diskcheckd.conf When converting a port to staging, you generally end up deleting post-install targets like the above. You only need diskcheckd.conf.sample in the staging area (and hence in the generated package). It's the @sample business in pkg-plist (or the equivalent @exec statements) which will perform this action when the package is finally installed on your system. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk --VvgcNiIvNTQuhl0gJF53g8rS7CR2qjvek Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJThCucXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATli8P/ineuBd/Xvi6KfxwnbTtEG4H qT9Ju2Zs9Svm0s3J48TRENQ2ZZgMhLpnZyVeNQAYqvqq4wukhM+/TC+2zNrklaPh rq7kBK5/iz3nLCZt7jp7a98UAboE0O9fhKjhX1HQ2RuK7BB/2ifKsJEQCljFjg+r /0gfwfKOBzsFxFAwZ1ar2xuZsBwNacfg+hxlpOIHTIsqEUApTXoCvtEDystTyYYt s52Ro73SyN3oeMAb1xKdWrBoQ5yjR2uSbVN2D/8VPBSfWoOZu4ZEfI+MF398iy7F 0JBW9h28TXNKsSGJ6ullHhxrWXxoMmHHRJhNU93Mrw0W2wulUjplDNdWf9AH0l33 LEeRB+RNy4GM3yjhKaiYkQWCz4OLrJefcyQOpoCNnMOzyGjETtOxFEczTFbqRiKI zQx8yoZOrJDVMJlt2z2AwGhCFhIESIWpKK1MLqaET67z9iXsYNiCXe4ei0DT+je/ sTYCpkL/v62w/SynjPmcSZ0BEPQu63jCa95fAZT7FSwpjFMr0XLovS6ZDqxrz9Yb qVzEdxKI2/bkdnujH/l7PM7vH/2t6taggK4vJZXnSObJcS9Phyz5KR9Afjbe3lIJ U8wZzAGlS6thg7YPQMiYEKqgCW4vCsr265u+x8kIWn72+ymWcWcP91MZ9GzqbbaA 718QmQm6dmvQepA6nkNX =mxXJ -----END PGP SIGNATURE----- --VvgcNiIvNTQuhl0gJF53g8rS7CR2qjvek--