Commit Graph

47 Commits

Author SHA1 Message Date
Baptiste Daroussin
208b4012bc Add a note explaining why the @javavm keyword does not register argument in the plist 2016-07-31 12:47:28 +00:00
Baptiste Daroussin
cf36dd23f7 Add a new "@javavm" keyword to handle the (un)registration of the JavaVM 2016-07-31 12:40:43 +00:00
Baptiste Daroussin
d198037d6f xmlcatmgr does not actually expect multiple arguments 2016-07-01 13:09:49 +00:00
Baptiste Daroussin
e682d8cb62 do not chmod u+w sample files when copying it
It is up to the package to decide the mode of the config files

Reported by:	garga
2016-06-22 21:44:25 +00:00
Baptiste Daroussin
a593d30187 Remove now useless comments 2016-06-19 22:21:22 +00:00
Baptiste Daroussin
17b47f0c0e Make @kld PKG_ROOTDIR friendly 2016-05-29 23:08:43 +00:00
Baptiste Daroussin
97a6b58a85 Make @shell rootdir friendly to allow cross installation 2016-05-29 22:53:22 +00:00
Baptiste Daroussin
963854440c Add a new keywork xmlcatmgr
It simplifies the handling of the XML and SMGL catalog
It brings a big of consistency by always specifying the catalog path absolute
instead of mixing absolute and relative path.
The keyword is also written a PKG_ROOTDIR friendly to simplify cross installing

Reviewed by:	hrs
Differential Revision:	https://reviews.freebsd.org/D6539
2016-05-24 22:32:49 +00:00
Baptiste Daroussin
5ac9cf8793 Make @info cross install friendly 2015-10-22 13:30:32 +00:00
Dmitry Marakasov
0521b2fe8e Add a way to cleanly handle terminfo.db file used by devel/ncurses
This database contains compiled terminfo entries and is merged from
a large part which comes with ncurses themselves and compiled
.terminfo files installed by other ports (currently only rxvt-unicode
and jfbterm)

- Now the database is always kept up to date, regardless of port
  installation order (both ncurses installed before .terminfo files
  and the other way around work as expected)
- All affected ports now support clean deinstallation and do not
  produce stage-qa errors
- Affected ports are simplified, as they now only need to define
  USES=terminfo
- rxvt-unicode no longer pulls in ncurses: the dependency is not
  really needed for anything beside updating it's own database
- The patch contains Q/A test to check whether a port needs, or
  needs not USES=terminfo

Approved by:	portmgr (mat, bapt)
Differential Revision:	D3747
2015-10-08 14:12:53 +00:00
Mathieu Arnold
7f0a5491f5 Do not use contractions.
Sponsored by:	Absolight
2015-10-01 08:39:44 +00:00
Baptiste Daroussin
5adc8a9faa Extend @sample to accept arguments
Maintainers can now use @sample sample_file target_file for all cases
that does not fall into the usual @sample something.sample

Reviewed by:	antoine
Differential Revision:	https://reviews.freebsd.org/D3734
2015-09-26 12:13:23 +00:00
Hiroki Sato
c716728e4a Add "fc", "fcfontsdir", "fontsdir", and "none" arguments to USES=fonts.
They controls whether fc-cache and/or mkfontdir run in
post-{,de}install targets.

japanese/font-* use manually generates fonts.dir entries to utilize
special modifiers which are useful for CJK fonts.  Because mkfontdir
does not understand and silently remove them from fonts.dir,
options like fonts:fc or fonts:none is required.

Approved by:	portmgr (bapt)
2015-09-13 23:30:21 +00:00
Mark Felder
68cb8aace6 Add -f flag to force scanning of font directories
Differential Revision:	https://reviews.freebsd.org/D2245
2015-04-06 20:22:58 +00:00
Baptiste Daroussin
c97c789ce0 Remove @fc and @fontsdir they are confusing all should use @fcfontsdir 2015-03-21 23:46:17 +00:00
Mark Johnston
0cebfcf22e When updating /etc/shells, only remove existing entries that match the new
entry exactly. Otherwise we may clobber entries that contain the new entry
as a substring.

Reviewed by:	bdrewery
Approved by:	bdrewery
Sponsored by:	EMC / Isilon Storage Division
2015-02-16 21:34:46 +00:00
Baptiste Daroussin
8d8d775b8b Use a custom keyword for kldxref, that allows to control exactly when it is run
and work nicer with automatic directly support from pkg

Differential Revision:	https://reviews.freebsd.org/D1377
Reviewed by:	rene, antoine
Approved by:	rene
2014-12-26 12:43:44 +00:00
Koop Mast
b62dbf02d9 Add new keyword for to run glib-compile-schemas.
It be used by the GLIB_SCHEMAS macro in the next gnome update, for ports
using GLIB_SCHEMAS nothing will change.

Approved by:	portmgr (bapt)
2014-12-03 09:54:37 +00:00
Alex Kozlov
6107ede2ac - Accept absolute path for @fc, @fontsdir, @fcfontsdir, @shell keywords
Approved by:	portmgr (antoine, bapt)
Differential Revision:	https://reviews.freebsd.org/D721
2014-10-08 21:39:47 +00:00
Baptiste Daroussin
655afac564 Accept absolute path for @info keyword 2014-10-07 23:26:28 +00:00
Bryan Drewery
581b88c885 @sample: chmod u+w to ensure user may write to it.
PR:		193209
Submitted by:	ohauer
With hat:	portmgr
2014-10-03 18:33:32 +00:00
Mathieu Arnold
3752f7f4d0 Replace the dirrmtry action with dir.
With hat:	portmgr
Sponsored by:	Absolight
2014-10-02 12:39:57 +00:00
Baptiste Daroussin
56dd8dcf3c Use keywords to control exactly when is excutied
the different database updates
2014-09-22 12:48:27 +00:00
Baptiste Daroussin
9fdabf9fb0 Remove the yaml files as pkg 1.3.8 is now the minimal required version 2014-09-22 12:31:34 +00:00
Bryan Drewery
001502498e @sample: Alert user that there is a stale file to be removed.
Submitted by:	amdmi3
With hat:	portmgr
2014-09-11 23:11:48 +00:00
Baptiste Daroussin
c4526308ea Convert rmtry into regular Keyword
Note that this allows to control when it is executed (always in post-installation)
This makes @rmtry accept both absolute path and relative path (to latest prefix/cwd)

While here now that it is not used, remove the old PLIST_REINPLACE macro

Reviewed by:	antoine
Differential Revision:	https://reviews.freebsd.org/D713
2014-09-03 05:16:13 +00:00
Antoine Brodin
26222800aa - Make it possible to use sample keyword with a full path
- Prefer @dirrmtry over @unexec rmdir in makeplist

Differential Revision:	https://reviews.freebsd.org/D705
Reviewed by:	bapt
With hat:	portmgr
2014-09-01 17:06:19 +00:00
Baptiste Daroussin
d96aa38d95 Remove support for pkg_install
Merge back bsd.pkgng.mk into bsd.port.mk
Add a note about @stopdaemon not being supported anymore

With hat:	portmgr
Differential Revision:	https://reviews.freebsd.org/D693
2014-09-01 13:03:25 +00:00
Antoine Brodin
22f328d041 Fix fmtutil keyword with pkg_install
PR:		ports/192124
Submitted by:	John Hein
With hat:	portmgr
2014-08-05 16:58:58 +00:00
Baptiste Daroussin
660a8e293b Add support for @fmtutil for pkg_install 2014-07-25 13:44:17 +00:00
Baptiste Daroussin
1cee61cab5 Convert keywords in pure ucl format
yaml version will be removed later
2014-07-24 17:10:57 +00:00
Baptiste Daroussin
2a0b64c734 Support stage for texlive, given it is impossible to rebuild the fmt files into
the stage then they are now rebuild in post-installation, like it is done in
other package system
2014-07-04 17:35:18 +00:00
Antoine Brodin
2ec52ec10f Use print/indexinfo to generate index of info pages
It is much more lightweight than ginstall-info (12kB vs 400kB) and
ginstall-info had a regression causing some index leftover on uninstall

Submitted by:	bapt
Exp-run:	self
With hat:	portmgr
2014-06-28 10:03:00 +00:00
Baptiste Daroussin
e1d7d7f00f Use print/texinfo-lite to install info pages
This allows to use modern version of texinfo as well as allow packages to
install properly on a system built WITHOUT_INFO
2014-06-25 08:36:36 +00:00
Antoine Brodin
7c7b6b6ef1 Make @dirrmtry handling in pkg_install closer to what pkg does
Original patch:	bapt
Phabric:	D215
Exp-run:	self, less orphans/leftovers with pkg_install with patch than without
		and no new failures with pkg
With hat:	portmgr
2014-06-20 21:03:02 +00:00
Antoine Brodin
e6f3e7cf4e Add missing font_dir initialization for @fontsdir
With hat:	portmgr
2014-06-17 18:29:22 +00:00
Baptiste Daroussin
5d4d1b6604 Remove another extra '`'
Reported by:	antoine
2014-06-15 22:40:31 +00:00
Baptiste Daroussin
8140ed7af4 Remove extra '`'
Reported by:	antoine
2014-06-15 22:37:58 +00:00
Baptiste Daroussin
66084fe506 Cosmetic 2014-06-12 10:20:22 +00:00
Baptiste Daroussin
10cbadd620 Make pkg_install aware of @fc @fcfontsdir and @fontsdir
Forgotten in previous commit

Tested by:	mandree
2014-06-12 10:11:23 +00:00
Baptiste Daroussin
2bacde9c3b Add an @shell keyword to handle adding and remove a shell path in /etc/shell
Bump port revision of all ports that were doing it wrong prior to the keyword

CR:		D208
Reviewed by:	antoine
With hat:	portmgr
2014-06-11 17:42:36 +00:00
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
Niclas Zeising
1d45334d44 Fix fontdir handling to work properly.
Fix the name of mkfontdir and use correct paths.
2013-12-20 22:26:13 +00:00
Niclas Zeising
0406d5b04f Try to fix font handling for xorg fonts when using staging and pkgng.
This should silence all QAT messages about leftover font files.

Bump portrevision for all affected ports.

Original idea:		bapt
2013-12-19 10:49:00 +00:00
Baptiste Daroussin
4b146fcac9 Fix handling of info files with pkgng, when dealing with .info-X files and also what INFO_SUBDIR.
The .info-X handling was wrong since the beginning of pkgng, the INFO_SUBDIR regression was introduced with stage

PR:		ports/184178
Reported by:	gerald
Tested by:	gerald
2013-11-23 09:48:42 +00:00
Baptiste Daroussin
df3df5c8a8 Fix leftovers with INFO_SUBDIR 2013-11-18 10:16:27 +00:00
Baptiste Daroussin
5285b348d3 Fix info files with pkgng.
This bring the first Keyword into the ports tree.
Keywords are pkgng custom plist keyword definition.

info.yaml defines a new @info keyword usable only with pkgng which will:
- add the info agument to the file list
- set a post-installation execution script
- set a post-deinstallation execution script

in keyword definition the script uses the same format (%f, %F, %D, ...) as @exec/@unexec does
it just add a new one: %@ which correspond the the keyword argument line.

Exp-run:	miwi
2013-03-14 10:11:19 +00:00