From owner-svn-ports-all@FreeBSD.ORG Tue Jan 7 10:15:41 2014 Return-Path: Delivered-To: svn-ports-all@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 075C7F4; Tue, 7 Jan 2014 10:15:41 +0000 (UTC) Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1FFD016B2; Tue, 7 Jan 2014 10:15:39 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id x13so340569wgg.15 for ; Tue, 07 Jan 2014 02:15:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=FoEwMzOCtf8esTzODRvlRvunk2jM5A/0uw4I+i5y2No=; b=aMpos7GeNCVEtH/J1Q3VrbSu56ZcY9LO8MZOcd48l9wIgifzGQ/x+van8mUAGo+vjC HfI6jiUVL6EmDFkpb+XrpoJhNVyLoXq6k0G4i8gxu6S7NEuAAjgtM2AYhzSnTGbTpjGO yryygc9j8XL/2kaGoIbgA7brQINBAw87XJC+lOyjqjApwMJiwTpjjTGLulbWVfa+ne0M mf1/oImoCbeewGn8umpYKuZpvEG8Fnxz2mmsbUkCk+26fz+TNJDtk8ty19r3vuTFkIGz neQgFvwX4x5a+i9fvFQRjYT9jZcpDdtRLcXte8j5sS+Px5NiDD3t6Am+mhqKLP70nBps vsgA== X-Received: by 10.194.8.229 with SMTP id u5mr5298294wja.80.1389089738533; Tue, 07 Jan 2014 02:15:38 -0800 (PST) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPSA id w1sm2749963wib.6.2014.01.07.02.15.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 07 Jan 2014 02:15:36 -0800 (PST) Sender: Baptiste Daroussin Date: Tue, 7 Jan 2014 11:15:34 +0100 From: Baptiste Daroussin To: Dima Panov Subject: Re: svn commit: r338994 - head/www/lightsquid Message-ID: <20140107101534.GG36154@ithaqua.etoilebsd.net> References: <201401071012.s07ACXcZ047221@svn.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="doKZ0ri6bHmN2Q5y" Content-Disposition: inline In-Reply-To: <201401071012.s07ACXcZ047221@svn.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jan 2014 10:15:41 -0000 --doKZ0ri6bHmN2Q5y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 07, 2014 at 10:12:33AM +0000, Dima Panov wrote: > Author: fluffy > Date: Tue Jan 7 10:12:32 2014 > New Revision: 338994 > URL: http://svnweb.freebsd.org/changeset/ports/338994 >=20 > Log: > - Support staging >=20 > Modified: > head/www/lightsquid/Makefile >=20 > Modified: head/www/lightsquid/Makefile > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/www/lightsquid/Makefile Tue Jan 7 10:02:05 2014 (r338993) > +++ head/www/lightsquid/Makefile Tue Jan 7 10:12:32 2014 (r338994) > @@ -18,7 +18,6 @@ USES=3D perl5 > USE_PERL5=3D run > NO_BUILD=3D yes > =20 > -NO_STAGE=3D yes > .include > =20 > CONFIGS=3D lightsquid.cfg realname.cfg skipuser.cfg group.cfg > @@ -49,37 +48,37 @@ post-patch: > @${MV} ${WRKSRC}/group.cfg.src ${WRKSRC}/group.cfg > =20 > do-install: > - ${MKDIR} ${DATADIR}/lang > + ${MKDIR} ${STAGEDIR}/${DATADIR}/lang > cd ${WRKSRC}/lang && \ > ${FIND} . -type f -regex '.*\.lng' -exec \ > - ${INSTALL_DATA} "{}" "${DATADIR}/lang/{}" \; > - ${MKDIR} ${PREFIX}/libexec/${PORTNAME} > + ${INSTALL_DATA} "{}" "${STAGEDIR}/${DATADIR}/lang/{}" \; > + ${MKDIR} ${STAGEDIR}/${PREFIX}/libexec/${PORTNAME} > cd ${WRKSRC}/ip2name && \ > ${FIND} . -type f -exec \ > - ${INSTALL_DATA} "{}" "${PREFIX}/libexec/${PORTNAME}/{}" \; > - ${MKDIR} ${ETCDIR} > + ${INSTALL_DATA} "{}" "${STAGEDIR}/${PREFIX}/libexec/${PORTNAME}/{}" \; > + ${MKDIR} ${STAGEDIR}/${ETCDIR} > .for i in ${CONFIGS} > - ${INSTALL_DATA} ${WRKSRC}/${i} ${ETCDIR}/${i}.dist > + ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}/${ETCDIR}/${i}.dist > .if !exists(${ETCDIR}/${i}) > - ${INSTALL_DATA} ${WRKSRC}/${i} ${ETCDIR} > + ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}/${ETCDIR} > .endif > .endfor > - ${MKDIR} ${WWWDIR}/report > - ${MKDIR} ${WWWDIR}/tpl > + ${MKDIR} ${STAGEDIR}/${WWWDIR}/report > + ${MKDIR} ${STAGEDIR}/${WWWDIR}/tpl > cd ${WRKSRC}/tpl && \ > ${FIND} . -type d ! -empty -exec \ > - ${MKDIR} "${WWWDIR}/tpl/{}" \; && \ > + ${MKDIR} "${STAGEDIR}/${WWWDIR}/tpl/{}" \; && \ > ${FIND} . -type f -exec \ > - ${INSTALL_DATA} "{}" "${WWWDIR}/tpl/{}" \; > + ${INSTALL_DATA} "{}" "${STAGEDIR}/${WWWDIR}/tpl/{}" \; > cd ${WRKSRC} && \ > ${FIND} -E . -maxdepth 1 -regex '.*\.(cgi|pl)' -exec \ > - ${INSTALL_SCRIPT} "{}" "${WWWDIR}/{}" \; && \ > - ${INSTALL_DATA} .htaccess ${WWWDIR}/ > - @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} > + ${INSTALL_SCRIPT} "{}" "${STAGEDIR}/${WWWDIR}/{}" \; && \ > + ${INSTALL_DATA} .htaccess ${STAGEDIR}/${WWWDIR}/ > + @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}/${WWWDIR} The above does not allow to build the package as a user so either you need NEED_ROOT or you need to then those right via the plist @owner www @group www files @dirs @owner @group Along with a @exec chown -R for pkg_install otherwise it will mess up things regards, Bapt --doKZ0ri6bHmN2Q5y Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (FreeBSD) iEYEARECAAYFAlLL08YACgkQ8kTtMUmk6EywXQCfQJRX4LMbJmtfJWA2eIiMnUNR jEQAn3z7s5kK0mmWppEU0i4qZsUZJHNh =B44r -----END PGP SIGNATURE----- --doKZ0ri6bHmN2Q5y--