From owner-freebsd-ports@FreeBSD.ORG Sat Mar 30 10:39:37 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id F3334836 for ; Sat, 30 Mar 2013 10:39:36 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id DA2EBC0F for ; Sat, 30 Mar 2013 10:39:36 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2UAda4s003521 for ; Sat, 30 Mar 2013 10:39:36 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2UAdark003520 for freebsd-ports@freebsd.org; Sat, 30 Mar 2013 10:39:36 GMT (envelope-from bdrewery) Received: (qmail 27176 invoked from network); 30 Mar 2013 05:39:33 -0500 Received: from unknown (HELO ?10.10.0.24?) (freebsd@shatow.net@10.10.0.24) by sweb.xzibition.com with ESMTPA; 30 Mar 2013 05:39:33 -0500 Message-ID: <5156C0D9.50909@FreeBSD.org> Date: Sat, 30 Mar 2013 05:39:21 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: Michael Gmelin Subject: Re: www/nginx pkg-plist + pkgng (detectable?) References: <20130330034028.0f8cefc8@bsd64.grem.de> In-Reply-To: <20130330034028.0f8cefc8@bsd64.grem.de> X-Enigmail-Version: 1.5.1 OpenPGP: id=3C9B0CF9; url=http://www.shatow.net/bryan/bryan.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2TLGIIWCSGHTEUQMDPRMN" Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Mar 2013 10:39:37 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2TLGIIWCSGHTEUQMDPRMN Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 3/29/2013 9:40 PM, Michael Gmelin wrote: > pkg-plist contains: >=20 > %%WWWDATA%%@exec mkdir -p -m 755 www/nginx-dist > %%WWWDATA%%@exec if [ ! -d %D/www/nginx/ ] ; then ln -fs > %D/www/nginx-dist %D/www/nginx; fi > %%WWWDATA%%www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING > %%WWWDATA%%www/nginx-dist/index.html > %%WWWDATA%%www/nginx-dist/50x.html > %%WWWDATA%%@exec chmod a-w www/nginx-dist > %%WWWDATA%%@unexec if [ -L %D/www/nginx ]; then rm -f %D/www/nginx; fi > %%WWWDATA%%@dirrmtry www/nginx-dist >=20 > cd /usr/ports/www/nginx > make install clean >=20 > # pkg info -R nginx | grep www/nginx-dist >=20 > /usr/local/www/nginx-dist/50x.html: 3c264d74770fd706d59c68d90ca1eb893= ac379a666ff136f9acc66ca01daec02 > /usr/local/www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHIN= G: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b > /usr/local/www/nginx-dist/index.html: 38ffd4972ae513a0c79a8be4573403e= dcd709f0f572105362b08ff50cf6de521 > /usr/local/www/nginx-dist/: y > mkdir -p -m 755 www/nginx-dist > if [ ! -d /usr/local/www/nginx/ ] ; then ln -fs /usr/local/www/ngin= x-dist /usr/local/www/nginx; fi > chmod a-w www/nginx-dist >=20 > This means in practice, once you create a binary package (pseudo code):= > pkg create nginx > pkg repo . > ... > pkg install nginx >=20 > You'll be left with a www/nginx-dist relative to wherever you've been > in the file. I assume that pkg-plist should use %D/www/nginx instead of= > www/nginx in mkdir and chmod. So it's probably a bug in the port > itself. Is this something that pkgng could potentially catch in future?= >=20 > Cheers, > Michael >=20 What pkgng version is this? It should be fixed in 1.0.9 by https://github.com/pkgng/pkgng/issues/465 --=20 Regards, Bryan Drewery bdrewery@freenode/EFNet ------enig2TLGIIWCSGHTEUQMDPRMN 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.10 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJRVsDZAAoJEG54KsA8mwz5S9IQAIAPO3jjfGl9myu7CFJux8VJ spG2mvQZt2LyFtwhHMok21VyUzSNI/jSuONoFmOTM8d7Gd8L0/byKzEMrvtia8Qg p8SxUzboSOLCb5Dbw25nxUmgq8FOrJedP2cWY9gV82JMgz81ICtwc5WguwuHlKIc Af/22gk2NL1RaHXyzQC4nwSBOpn/RxlENpk1ps/c/uuKSe0d1MK6l7m20g+LjPsU jnKYH/NQ1ne1MgVu5lt4NZSl6uspGpLsdZOqCC1G1VA3UEGiEbdAHaXch5Ih6+e1 qw59pvsOAe5eQK4jKpV1HYk5siskZjZC4T5qw0RUeNLWkiNSIeR+N8uEa0RsiS8B 1tzOwlZDORpAeeufRrc67D3Ee0NsCHsu/WxnbpRA9HuZVu+ncf5sMlarXqaiesIm RFwNVuVE0PDBpOnIaIA/mR+QWaHhNE8ssR1UIMD2Iq2Joo54GcyiALwKTi4j1Z4A ojOt7JfKQE8J+IMoo4Le0PKFXCeqMFp0Bt1/9+scGKqm36zJ2eI9u5r1W/kJWPSx qUNk/ThPVtP/6sWc1RHF26wwk9vAZIHN37zzFEPsSkiZE5pOmwH7F6Xkw068tTZg 973yHDDaD27+x/aAeU8AedUnHdJ+r6XLc7RT0tknOuOV+rUcMjWoEqprj8T8mKeA HlL6UWNcFWLmUkTOFHQ1 =tM9O -----END PGP SIGNATURE----- ------enig2TLGIIWCSGHTEUQMDPRMN--