Commit graph

18 commits

Author SHA1 Message Date
Jürgen Buchmüller
7c53259f00 create-xbps-metadata-scripts: indent with tabs 2018-01-15 14:32:42 +01:00
James Barnett
90b5c612ae Add hook and trigger to handle hwdb.d files
Adds a hook to check if /usr/lib/udev/hwdb.d is being modified. If so,
triggers 'udevadm hwdb --root=. --update'.

Closes: #9858 [via git-merge-pr]
2018-01-15 14:31:12 +01:00
Alessio Sergi
d77d6cde40 xbps-src: limit the search to the /usr/lib/pythonX.Y directory 2016-10-27 15:22:54 +02:00
Alessio Sergi
4e6576e7a4 xbps-src: add support for python3 pkgs
- python_module build style now builds modules for python2/3 by default
- new python2_module and python3_module build styles for building
  python2-only and python3-only packages respectively
- no more python_versions
- no need to define pycompile_version for Python modules anymore
  (still needed for non-Python modules though)
- Python version and paths are now guessed automatically and a set of
  useful variables can now be used in templates
- #!/usr/bin/python2 and #!/usr/bin/python3 are now the default shebangs
- /usr/bin/foo2 and /usr/bin/foo3 are now the default names for bin
  scripts (for use with alternatives)
2016-10-16 16:59:31 +02:00
Juan RP
bcdacb66a0 xbps-src: replace basename(1) with ${var##*/}.
Reduce number of fork+exec due to using a subshell to execute basename(1).
2015-09-11 07:55:40 +02:00
Juan RP
e03593db73 xbps-src: remove vestiges of the systemd-services hook. 2015-07-11 11:30:09 +02:00
Andrea Brancaleoni
972a87ba9f hooks/post-install/04-create-xbps-metadata-scripts.sh: add binfmts trigger support 2015-06-22 13:49:11 +02:00
Juan RP
a56b465f1e hooks/xbps-metadata: only add systemd-service trigger if the buildopt is set. 2015-04-30 11:15:02 +02:00
Juan RP
2164eddc33 hooks/create-metadata-scripts: fix INSTALL.msg for subpkgs.
The file should be renamed to <destdir>/INSTALL.msg not something else.

Close #1248
2015-04-01 15:08:28 +02:00
Juan RP
7339b81b43 xbps-triggers: system-accounts: introduce <account>_pgroup to set primary group.
While here also change default home directory to /dev/null if unset.
2015-02-23 22:09:20 +01:00
Juan RP
a44cd245bc hooks/create-xbps-scripts: print what triggers are being added. 2015-02-21 13:03:51 +01:00
Juan RP
56e4c861bd hooks/create-xbps-metadata-scripts: fix mktemp assignation.
When set -o ERR is set the exit case wasn't executed. From the bash
manual page:

"The ERR trap is not executed if the
failed command is part of the command list immediately following
a while or until keyword, part of the test in an if statement,
part of a command executed in a && or || list except the command
following the final && or ||, any command in a pipeline but the
last, or if the command's return value is being inverted using
!.  These are the same conditions obeyed by the errexit (-e)
option."
2015-02-01 09:09:38 +01:00
Juan RP
c2b011a98a Implement support for {INSTALL,REMOVE}.msg files (fix #454). 2014-09-15 16:20:25 +02:00
Juan RP
7ab7ba07fd hooks/create-xbps-metadata-scripts: fix system account props. 2014-08-03 17:21:23 +02:00
Juan RP
53655c45e8 hooks/xbps-metadata-scripts: add support for system_accounts=foo:uid. 2014-07-30 11:09:51 +02:00
Juan RP
ac91238431 xbps-src: added "pycompile_version" to specify python version used in the pycompile trigger. 2014-06-18 11:31:32 +02:00
Juan RP
9df1aa3b4e hooks/post-install/create-xbps-metadata-scripts: make sure to finalize scripts correctly.
The issue was that if a pkg does not add the missing newline at INSTALL
or REMOVE scripts, those were generated with a syntax error.

Found by onekk.
2014-04-14 10:41:06 +02:00
Juan RP
9b60085684 common/hooks/post-install: reorder some hooks so that no unnecessary INSTALL/REMOVE scripts are generated. 2014-03-18 07:54:12 +01:00
Renamed from common/hooks/post-install/01-create-xbps-metadata-scripts.sh (Browse further)