Created attachment 144301 [details] Port update to support staging Attempt to support staging on mail/courier-pythonfilter port
I've got this error on 'make config': ===> Returning to user credentials cannot open /usr/local/libexec/filters/dialog4ports.sh: No such file or directory ===> Options unchanged The problem is the SCRIPTSDIR variable overwriting. To install the .sample file, you can use the new keyword @sample in the pkg-plist [1]. [1] - http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/book.html#plist-keywords Can you check this, please?
(In reply to Danilo Egea Gondolfo from comment #1) > I've got this error on 'make config': > > ===> Returning to user credentials > cannot open /usr/local/libexec/filters/dialog4ports.sh: No such file or > directory > ===> Options unchanged > > The problem is the SCRIPTSDIR variable overwriting. > I tried change SCRIPTSDIR to PYSCRIPTSDIR and it works then. Used on line 23 and 60 of Makefile. Could you check it this way?
Now I'm getting this error: chown: /usr/ports/mail/courier-pythonfilter/work/stage/var/spool/courier/pythonfilter: Operation not permitted *** Error code 1 With staging, all files should be installed as normal user. To set permissions use @owner and @group in pkg-plist (see the handbook). Furthermore, take a look at @sample to install the config file.
Created attachment 144549 [details] New patch against current port
Comment on attachment 144549 [details] New patch against current port - package now builds as user - @sample used for sample configuration files - no check-plist errors reported - post-install target converted into pkg-install script
A commit references this bug: Author: danilo Date: Thu Jul 10 20:33:35 UTC 2014 New revision: 361489 URL: http://svnweb.freebsd.org/changeset/ports/361489 Log: - Add stage support - Use @sample while here - Use @owner and @group PR: ports/191521 Submitted by: bsd@dino.sk Changes: head/mail/courier-pythonfilter/Makefile head/mail/courier-pythonfilter/pkg-plist
Committed, with small changes. Thanks!