svn commit: r469188 - head/ports-mgmt/pkg_replace
Adam Weinberger
adamw at adamw.org
Sun May 6 14:41:49 UTC 2018
> On 6 May, 2018, at 04:27, Alexey Dokuchaev <danfe at FreeBSD.org> wrote:
>
> On Sun, May 06, 2018 at 10:15:03AM +0000, Koichiro Iwao wrote:
>> New Revision: 469188
>> URL: https://svnweb.freebsd.org/changeset/ports/469188
>>
>> Log:
>> ports-mgmt/pkg_replace: Update to 20180424
>>
>> - Cleanup code
>> - Speed up and strictly check package's dependencies
>> - While here, pet portlint by using pkg-plist instead of PLIST_FILES
>
> Could you explain what did you achieve by moving three-line PLIST_FILES
> into pkg-plist? How can "pet portlint" be a reason for a change while
> we generally encourage converting <6-line pkg-plist's into PLIST_FILES?
>
> ./danfe
>
>> -
>> -PLIST_FILES= sbin/pkg_replace \
>> - man/man1/pkg_replace.1.gz \
>> - "@sample %%ETCDIR%%/pkg_replace.conf.sample"
>
> Correct PLIST_FILES should read:
>
> PLIST_FILES= sbin/pkg_replace \
> man/man1/pkg_replace.1.gz \
> @sample\ etc/pkg_replace/pkg_replace.conf.sample
>
> ./danfe
Sorry, Alexey, but portlint was right here. @sample and other macros should
*never* appear in PLIST_FILES. Even if the port installs only a single
file, if it’s a @sample, it goes in pkg-plist.
# Adam
—
Adam Weinberger
adamw at adamw.org
http://www.adamw.org
More information about the svn-ports-all
mailing list