Commit graph

19 commits

Author SHA1 Message Date
Juan RP
57ca1b1171 shutils/metadata.sh: only change mode to flist if exists.
--HG--
extra : convert_revision : b90ea5ff5caecec62950a62918dee066962b84c1
2009-08-10 22:24:13 +02:00
Juan RP
98fbffc1fa shutils/metadata.sh: set mode 644 to metadir/flist.
--HG--
extra : convert_revision : 044a96fad1d8bffc7385e4e3f0de530e40ff082d
2009-08-09 17:08:21 +02:00
Juan RP
17404bdb42 Mega-commit with improvements and changes done in the past days.
- Introduce package states: unpacked, broken, installed, etc.
  Not yet finished, only unpacked and installed are used for now.

- Move package metadata files in binary packages directly to
  the top directory, this speeds up some ops and makes easier to
  continue working in future changes.

- xbps-bin: -C flag to check the hash of package files has been
  superseded by the 'check' target, which verifies the integrity
  of an installed package.

- Use the 'essential' object when upgrading packages, overwritting
  current files. This is needed for critical packages like sh, libc
  and others.

- Miscellaneous tweaks and improvements thorough the code.

--HG--
extra : convert_revision : 2073fcc123efc24b3e9327b5e22aa91752f20df6
2009-08-08 22:29:48 +02:00
Juan RP
d8353810b6 Reorganize pkg metadata files.plist scheme to improve future changes.
This fixes an item from the TODO about 'xbps-bin -C files' not checking
configuration files.

--HG--
extra : convert_revision : bb661554a6b34a25066749844709b8cbaf5a4d6c
2009-08-01 11:23:41 +02:00
Juan RP
76c23bbd96 Improve the info-files and register-shell triggers.
This avoids the need of having to create a new file in pkg metadata
dir with a few lines and puts all them in the INSTALL/REMOVE
scripts.

--HG--
extra : convert_revision : 2dc1d3f6ddcc6aec7dadf14df475c32959df0aba
2009-07-30 12:34:31 +02:00
Juan RP
13d43973c9 Add the "essential" var for use in templates.
This will be used to mark packages that shouldn't be
removed if it's being updated, e.g libc.

--HG--
extra : convert_revision : bba7d14b2d112edaf17e6adc04a222a3d663da34
2009-06-07 08:05:17 +02:00
Juan RP
f3c5c5fe96 shutils/metadata.sh: do not compress non info files.
--HG--
extra : convert_revision : f47d7a574ac8b22c539420ab572d38cef38a527e
2009-05-15 03:09:38 +02:00
Juan RP
9a3f2e7c3d Handle openrc_services more gracefully.
1) There's no need to specify the trigger anymore.
2) There's no need to add the OpenRC run dependency anymore.

Just specifying $openrc_services is enough.

--HG--
extra : convert_revision : 34e4d6d37a07a18837ef2216474ee0ca6fd55124
2009-05-14 21:26:44 +02:00
Juan RP
513e1aa2ef shutils/metadata.sh: fix comment in previous.
--HG--
extra : convert_revision : aa3fda95fc515c9cd31f1f46ab417dffd47a254b
2009-05-14 19:32:42 +02:00
Juan RP
a8a9a42977 shutils/metadata.sh: add update-desktopdb trigger automatically.
If a package contains any .desktop file in /usr/share/applications
the trigger will be added automagically.

--HG--
extra : convert_revision : 2327dc43c9a0997814d35fab22e3cb950fc0e09a
2009-05-14 19:16:17 +02:00
Juan RP
706782cf0c shutils: allow subpkgs to use INSTALL/REMOVE scripts.
subpkgs to use them need to have ${pkgname}.INSTALL/REMOVE scripts
on the directory.

--HG--
extra : convert_revision : 293def453dd17d5bbdd68c9b25f8f2f16d673a8e
2009-05-05 00:19:25 +02:00
Juan RP
17a5ad3a3d shutils: allow subpkgs to have INSTALL/REMOVE scripts.
--HG--
extra : convert_revision : 4f60ecbd143b5d7d8d168e963c1030e00ad41247
2009-05-04 23:43:32 +02:00
Juan RP
75bd88afc6 Rework how $revision is used. Works much better in all cases.
$version is not modified anymore.

--HG--
extra : convert_revision : a83408f47e22db2f34cd33d6d47eb2f045ae2758
2009-03-28 08:27:29 +01:00
Juan RP
231b3fb32d Kill $install_priority. It was a hack and it's not needed anymore.
--HG--
extra : convert_revision : 993ed90732f140166d8b7f49475debca2fba30b1
2009-03-26 09:38:29 +01:00
Juan RP
509b140eba metadata.sh: don't create INSTALL/REMOVE scripts for subpkgs, for now.
--HG--
extra : convert_revision : 8026610f3ac2f4e4617142e6ce1370944b3dfac2
2009-03-20 05:14:34 +01:00
Juan RP
cf98ddde86 shutils/metadata.sh: better match for compressed info/manpage files.
--HG--
extra : convert_revision : 9bd1665f885de8203139aca155b73fd3581e66d9
2009-03-18 06:47:52 +01:00
Juan RP
c5180507d3 Better check to detect if pkg has info files.
--HG--
extra : convert_revision : 837f78240d6a59d511d5c0c5b0b9870d76b4b42c
2009-03-16 07:02:35 +01:00
Juan RP
855ec90fdf Add $register_shell var, to (un)register shells at post-{inst,rm} for binpkgs.
Multiple shells can be (un)registered by a single package, like:

register_shell="/bin/zsh-foo /bin/zsh-blah"

--HG--
extra : convert_revision : 0172a74b41e26089da97fcdc8cc2d5cb6ae147f2
2009-03-14 07:32:48 +01:00
Juan RP
16ed8945b7 Split metadata funcs for binpkgs into its own files.
--HG--
extra : convert_revision : 8a9e2aa7f5693ba6a4b11196923aff6b4d0c6b2f
2009-03-12 23:52:57 +01:00
Renamed from shutils/binpkg.sh (Browse further)