# $FreeBSD$ # # MAINTAINER: franco@opnsense.org # # @shadow etc/somefile.conf.sample # or # @shadow 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 be removed. # # 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(1)] arguments: true post-install: <