1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/Mk
Bryan Drewery 4070b12551 - Add a @sample plist keyword
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:
  bffc31420b
- This needs to be documented in PH and portlint support added still.

PR:		ports/157168 [1]
Discussed with:	bapt
Reviewed by:	bapt
Requested by:	many
With hat:	portmgr
2014-04-12 03:39:02 +00:00
..
Scripts - Make shebang a warning for now, too many false-positives in files we 2014-04-11 14:15:57 +00:00
Uses Allow an alternative install prefix to be specified with 2014-04-11 21:45:55 +00:00
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 Remove bits replaced by USES=gecko 2014-04-10 14:46:37 +00:00
bsd.gnome.mk followup with recent cleanup 2014-04-11 12:45:16 +00:00
bsd.gnustep.mk
bsd.gstreamer.mk
bsd.java.mk Update comments. 2014-04-11 17:17:33 +00:00
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 Mk/bsd.options.desc.mk: 2014-04-05 17:30:08 +00:00
bsd.options.mk
bsd.pbi.mk
bsd.php.mk
bsd.pkgng.mk
bsd.port.mk - Add a @sample plist keyword 2014-04-12 03:39:02 +00:00
bsd.port.options.mk
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk
bsd.python.mk Mk/bsd.python.mk: Space to tabs in user message 2014-04-12 03:07:31 +00:00
bsd.qt.mk
bsd.ruby.mk Remove support for not staged ports 2014-04-09 09:25:29 +00:00
bsd.sanity.mk
bsd.scons.mk
bsd.sdl.mk
bsd.sites.mk
bsd.ssp.mk
bsd.stage.mk Allow to properly run make check-orphans and make makeplist for gnome ports 2014-04-10 17:02:33 +00:00
bsd.tex.mk
bsd.wx.mk
bsd.xfce.mk
bsd.xorg.mk