Index: head/CHANGES =================================================================== --- head/CHANGES +++ head/CHANGES @@ -10,7 +10,16 @@ All ports committers are allowed to commit to this file. -20150926 +20150926: +AUTHOR: bapt@FreeBSD.org + + @sample now accept arguments, so it can now be used the following way: + + @sample afile.sample + or + @sample path/to/example etc/target + +20150926: AUTHOR: bapt@FreeBSD.org New keywords are supported in pkg since 1.5.x: Index: head/Keywords/sample.ucl =================================================================== --- head/Keywords/sample.ucl +++ head/Keywords/sample.ucl @@ -3,6 +3,10 @@ # MAINTAINER: portmgr@FreeBSD.org # # @sample etc/somefile.conf.sample +# or +# @sample file1 file2 +# +# Where file1 is considered as a sample file and file2 the target file # # This will install the somefile.conf.sample and automatically copy to # somefile.conf if it doesn't exist. On deinstall it will remove the @@ -14,24 +18,42 @@ # etc/pkgtools.conf.sample # @exec [ -f %B/pkgtools.conf ] || cp %B/%f %B/pkgtools.conf -actions: [file] +actions: [file(1)] +arguments: true post-install: <