From owner-freebsd-ports@freebsd.org Sat Sep 10 03:32:41 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 01477BD4E73 for ; Sat, 10 Sep 2016 03:32:41 +0000 (UTC) (envelope-from amaniatis@apache.org) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1.freebsd.org (Postfix) with SMTP id B3DA2993 for ; Sat, 10 Sep 2016 03:32:40 +0000 (UTC) (envelope-from amaniatis@apache.org) Received: (qmail 52121 invoked by uid 99); 10 Sep 2016 03:32:34 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Sep 2016 03:32:34 +0000 Received: from Aristedess-MacBook-Pro.local (ppp59-167-140-203.static.internode.on.net [59.167.140.203]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id B64541A0187; Sat, 10 Sep 2016 03:32:33 +0000 (UTC) Subject: Re: ${INSTALL_DATA} problems To: Mathieu Arnold , Aristedes Maniatis , FreeBSD Mailing List References: From: Aristedes Maniatis Message-ID: <557d8ed5-3e3a-6384-4b63-b4ed145e0071@apache.org> Date: Sat, 10 Sep 2016 13:32:30 +1000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:49.0) Gecko/20100101 Thunderbird/49.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2016 03:32:41 -0000 On 8/09/2016 10:47pm, Mathieu Arnold wrote: > Now, I'm seeing something else that is a bad idea, it is using the -o > flag. Ports must build as a regular user. A regular user will not be > able to change the owner of the files. This must be done in the > pkg-plist file, using @owner/@group as described in the Porter's > Handbook: > https://www.freebsd.org/doc/en/books/porters-handbook/plist-keywords.html I've just tried this but ran into some difficulty. Specifically I have a plist which is many hundreds of lines long. There is no way this will be maintained into the future without mistake. So I found in Mk/Uses/drupal.mk, this syntx: PLIST_FILES+= "@owner www" \ "@group www" \ When I added this to my Makefile PLIST_FILES+= "@owner {$SOLR_USER}" \ "@group {$SOLR_GROUP}" \ nothing happened. I really only want one folder installed with the correct permissions, but do I need to move my chmod code into the rc.d startup script instead and tying it into the pkg install? Ari -- --------------------------> Aristedes Maniatis GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A