mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
4070b12551
It accepts a file (must end in .sample, this is not configurable):
@sample file.conf.sample
This will install file.conf.sample and copy it to file.conf. The file.conf
will be removed if it matches file.conf.sample on deinstall.
This replaces older patterns of:
@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
[1] This somewhat obsoletes work in ports/157168 which added CONF_FILES,
but we have been moving towards more logic in pkg-plist where possible
and less magical macros. Though this thinking does clash with autoplist
ideas. We may still want CONF_FILES, which just drops a list of
@sample entries into the plist anyway.
- Add a Keywords/pkg_install.awk and hook it into generate-plist. This is
for pkg_install compatibility since it does not know how to read
Keywords/sample.yaml.
This file gives us a strategy to implement more keywords before
pkg_install is EOL.
Keywords are documented here:
|
||
---|---|---|
.. | ||
Scripts | ||
Uses | ||
bsd.apache.mk | ||
bsd.autotools.mk | ||
bsd.commands.mk | ||
bsd.database.mk | ||
bsd.default-versions.mk | ||
bsd.destdir.mk | ||
bsd.drupal.mk | ||
bsd.efl.mk | ||
bsd.emacs.mk | ||
bsd.fpc.mk | ||
bsd.gcc.mk | ||
bsd.gecko.mk | ||
bsd.gnome.mk | ||
bsd.gnustep.mk | ||
bsd.gstreamer.mk | ||
bsd.java.mk | ||
bsd.kde4.mk | ||
bsd.ldap.mk | ||
bsd.licenses.db.mk | ||
bsd.licenses.mk | ||
bsd.linux-apps.mk | ||
bsd.linux-rpm.mk | ||
bsd.local.mk | ||
bsd.lua.mk | ||
bsd.mate.mk | ||
bsd.ocaml.mk | ||
bsd.octave.mk | ||
bsd.openssl.mk | ||
bsd.options.desc.mk | ||
bsd.options.mk | ||
bsd.pbi.mk | ||
bsd.php.mk | ||
bsd.pkgng.mk | ||
bsd.port.mk | ||
bsd.port.options.mk | ||
bsd.port.post.mk | ||
bsd.port.pre.mk | ||
bsd.port.subdir.mk | ||
bsd.python.mk | ||
bsd.qt.mk | ||
bsd.ruby.mk | ||
bsd.sanity.mk | ||
bsd.scons.mk | ||
bsd.sdl.mk | ||
bsd.sites.mk | ||
bsd.ssp.mk | ||
bsd.stage.mk | ||
bsd.tex.mk | ||
bsd.wx.mk | ||
bsd.xfce.mk | ||
bsd.xorg.mk |