# $FreeBSD: head/Keywords/sample.ucl 362833 2014-07-24 17:10:57Z bapt $ # # MAINTAINER: portmgr@FreeBSD.org # # @sample etc/somefile.conf.sample # # This will install the somefile.conf.sample and automatically copy to # somefile.conf if it doesn't exist. On deinstall it will remove the # somefile.conf if it still matches the sample, otherwise it is # kept. # # This replaces the old pattern: # @unexec if cmp -s %D/etc/pkgtools.conf %D/etc/pkgtools.conf.sample; then rm -f %D/etc/pkgtools.conf; fi # etc/pkgtools.conf.sample # @exec [ -f %B/pkgtools.conf ] || cp %B/%f %B/pkgtools.conf actions: [file] post-install: <