Commit Graph

86 Commits

Author SHA1 Message Date
Juan RP
8f8c5de29a Add a trigger to (un)register SGML/XML catalog entries via xmlcatmgr.
--HG--
extra : convert_revision : 9dec8c8329e79feefdc43664080795d82a558393
2009-03-21 06:53:29 +01:00
Juan RP
d5e7f8c5d2 Added noextract var. If set manual distfils extraction is required.
--HG--
extra : convert_revision : b1a2195517db3b511a2be87c0d4835a3178c4ffe
2009-03-21 05:28:39 +01:00
Juan RP
a3d7dc8a1b Repair build/installation of perl modules.
--HG--
extra : convert_revision : e72ba0f07d5bcbd009b598a63dadfc665fd7fb1c
2009-03-20 07:07:43 +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
5e9bc6fde0 builddep_funcs.sh: fix previous.
--HG--
extra : convert_revision : 70c08dcf839c17581eca0d4003e9ed5c975c77f9
2009-03-19 00:30:44 +01:00
Juan RP
209e19ce55 builddep_funcs.sh: match 0 or 1 for satisfied deps, 255 equals to -1.
--HG--
extra : convert_revision : 84c67be32bb250a828b8cd16fa0e3b4ee88a737a
2009-03-19 00:24:59 +01:00
Juan RP
3667f039f2 Install all packages via DESTDIR var and not prefix.
This removes many assignments that were needed before, and fixes
some packages to install its manpage/info files.

--HG--
extra : convert_revision : 5422f921ef81d089ed95ce0c52e5106ea10b2165
2009-03-18 10:02:43 +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
40b62ee70d Return appropiate value in xbps_check_is_installed_pkg().
Return -1 if package is not installed or dependency not satisfied.
Return 0 if same version required is already installed.
Return 1 if installed version is greater than required.

--HG--
extra : convert_revision : 359b79cbe809e1818fe999dc1d55da7e635dbe44
2009-03-17 04:32:03 +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
fdffaf481b metadata_scripts.sh: fix the comments on INSTALL/REMOVE scripts.
--HG--
extra : convert_revision : 84d5f43fc76cdeb6262840b7282898229e804bf6
2009-03-14 06:16:00 +01:00
Juan RP
de411515cc Kill $base_package, it was only used by dash after all.
--HG--
extra : convert_revision : e7ac14b1535f716dec259fc208343b3f4b6bb75f
2009-03-14 06:11:52 +01:00
Juan RP
edf6745d59 extract_funcs.sh: look for .tgz before .gz, otherwise it will do it wrong.
--HG--
extra : convert_revision : b8ca57eebd8c48aad7bc4f9e9d2aa1e7dc258d37
2009-03-14 01:21:27 +01:00
Juan RP
744b2fc5fc Do not set infodir/mandir to DESTDIR for chroot packages.
--HG--
extra : convert_revision : 990e93fcf5a36f75d29a5f2de60b44f180fe0e48
2009-03-13 23:55:25 +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
Juan RP
b14fea2e58 Split funcs to build binpkgs into its own file.
--HG--
extra : convert_revision : a4fd0f4506bd257308936e0d0c0187fa62a840ed
2009-03-12 23:44:18 +01:00
Juan RP
74ae00996d build_funcs.sh: remove unneeded test.
--HG--
extra : convert_revision : f2b78c9bf3efea3d1d24bd3790435aa573890e40
2009-03-12 23:41:46 +01:00
Juan RP
9ea500b7b0 binpkg: test for /usr/share/info dir, to fix subpkgs.
--HG--
extra : convert_revision : 162ec89e0943dc5b033fd1fee961cfc243cd82ba
2009-03-12 15:53:54 +01:00
Juan RP
53747489f0 Implemented support for running triggers with binpkgs.
Also the following changes were made:
 * Added an info-files trigger, to (un)register info files.
 * xbps-base-dirs: it's responsible to install triggers on destdir.

--HG--
extra : convert_revision : 8d707053616f38d2b5beef7cf28e1bc4a66812b8
2009-03-12 11:16:08 +01:00
Juan RP
5862f23e6f Remove $postinstall_helpers and $tar_override_cmd.
These were used in the NetBSD days... not now.

--HG--
extra : convert_revision : 3c3f4de397389cec1ea1326f39bded7a93173c39
2009-03-12 10:33:48 +01:00
Juan RP
4c963b2828 binpkg.sh: ignore pkgs without destdir, exclude the flist file.
The flist file is used by the xbps-src command, but it's not
really useful for binpkgs.

--HG--
extra : convert_revision : 5fb31a80b8a571ba49e79507ae0206d0703e8e73
2009-03-12 03:00:36 +01:00
Juan RP
df492b077c Remove $make_env. It's not really useful anymore.
--HG--
extra : convert_revision : f75462dfe24b62d3a278c722302b760ca4b475d2
2009-03-12 00:47:01 +01:00
Juan RP
84222395b8 Provide some vars for use in template's targets.
These new vars are DESTDIR (by default XBPS_DESTDIR/pkgname-version),
SRCPKGDESTDIR (XBPS_DESTDIR/sourcepkg-version) and FILESDIR
(XBPS_TEMPLATESDIR/pkgname/files).

This simplifies packages that used them.

--HG--
extra : convert_revision : 287ea7128cb5df19870ca7aff0a3b8f99a11d63a
2009-03-11 06:31:56 +01:00
Juan RP
68056f60f8 Check if dependency is installed to be sure before proceeding.
--HG--
extra : convert_revision : e5ed948a484a1ed0c3e8a28759e60e59f4b60dbd
2009-03-10 14:45:05 +01:00
Juan RP
58a9a990e9 Fix printing of correct dependency name of dependencies.
--HG--
extra : convert_revision : d4a99cfc35c4409f7c848a89506236fdb88a9946
2009-03-10 14:01:02 +01:00
Juan RP
33edcb122b Provide FILESDIR to template files and use it in some pkgs.
This always points to ${XBPS_TEMPLATESDIR}/${pkgname}/files.

--HG--
extra : convert_revision : ef23025694cb95d508d511ab52bf67c66ead9d61
2009-03-08 01:31:24 +01:00
Juan RP
5c8d0c01b3 Make (un)set_build_vars() work inside of the chroot.
This has the effect to really pass the XBPS_C(XX)FLAGS values from
xbps.conf to the packages built there.

--HG--
extra : convert_revision : 87ea9f6a755ba3f60a095391d2b0069ab22cb742
2009-03-03 19:06:27 +01:00
Juan RP
aefe26d30c binpkg.sh: do the files processing in 3 steps: 1- links, 2- files and 3- dirs.
--HG--
extra : convert_revision : d68324f39af442b089e71083316c16bc4690a4e2
2009-02-28 17:31:47 +01:00
Juan RP
eac2af8da4 binpkg.sh: bzip2 pass doesn't need privs.
--HG--
extra : convert_revision : eea83d4204e016a78ec573d1b409e06ecb51c72a
2009-02-26 18:18:51 +01:00
Juan RP
a00ae944b5 Rename prepost-{inst,rm} to just INSTALL/REMOVE.
Some other changes related for this:
 - Modify binpkg.sh to always insert the INSTALL script at head of
   the archive, and appending files after it.
 - Modify binpkg.sh to compress binpkgs with bzip2 -9 to save some bytes.

--HG--
extra : convert_revision : b651b944f11c48dede1bbcea658182bf0984e8f3
2009-02-26 18:01:18 +01:00
Juan RP
a0ee2ee61b gcc-libgcc: set $install_priority to 50, just after xbps-base-dirs.
--HG--
extra : convert_revision : 02e61cff2e245e1f10a70bda321273ebb74ee9f5
2009-02-26 16:53:30 +01:00
Juan RP
7e225693c1 binpkg.sh: reset conf_files and keep_dirs for subpkgs.
--HG--
extra : convert_revision : 866665f3a7db612b80ea765c9308e6754b467921
2009-02-25 07:31:29 +01:00
Juan RP
cbf73d8362 chroot.sh: set LANG=C for the environment to avoid perl warns.
--HG--
extra : convert_revision : b38ba3d7f16e498507db597e63695704373c9957
2009-02-25 07:05:50 +01:00
Juan RP
0b7cdfa1d0 Split pkgs required by xbps-base-system, structure based in Fedora.
--HG--
extra : convert_revision : 151da3637a2745b786251e067bb924c3fd98118b
2009-02-25 06:15:20 +01:00
Juan RP
e0030bc0fe Split pkgs required by xbps-base-chroot, as it was made in Fedora.
- Added an additional shell func to add full (build/run), build
  or run time dependencies to packages. An optional third parameter
  can be used to specify other version than the one set in
  the depends file.
- Use a "depends" file in package directory to specify minimum
  required ABI/API version for a package, so that there's no need
  to set the version all the time in pkgs.
- Updated bash to 4.0.

--HG--
extra : convert_revision : 1aa0ce32d4bdc2cd371eac19ae7bcff2c986b6b3
2009-02-24 07:13:11 +01:00
Juan RP
6966c9ffde Don't remove files on destdir/${sourcepkg}, they are used in some pkgs.
--HG--
extra : convert_revision : 94b882a792908aa874e30067160f51b1033c492b
2009-02-20 07:05:34 +01:00
Juan RP
04a0248ef1 Add support to install/remove subpkgs independently of its sourcepkg.
--HG--
extra : convert_revision : 5495fb6558fa71dd843f54981313df233236ac50
2009-02-20 06:25:35 +01:00
Juan RP
b225a1dc30 Added support to build subpackages from a single source.
proplib has been converted to see how it works.

--HG--
extra : convert_revision : dfcd1f547884108d69682e9e62b4aacfa431cc83
2009-02-20 04:10:55 +01:00
Juan RP
b8b01d0e77 binpkg: create files.plist in pkg metadata with some objects.
--HG--
extra : convert_revision : d501c665d146d19648f0a9353d69f9d34f7616be
2009-02-19 14:11:30 +01:00
Juan RP
08630476d6 builddep_funcs.sh: always look if there are more deps.
--HG--
extra : convert_revision : 16b1ab98622f45bab123a388640dad14fc410f6c
2009-02-18 20:10:11 +01:00
Juan RP
12d65cc30c Move run_template() to tmpl_funcs.sh.
--HG--
extra : convert_revision : b5dcd681b3faacde90a783a0c13493600f36a5a8
2009-02-18 01:32:42 +01:00
Juan RP
028cacdd2a Add support to set automatic install flag for srcpkgs.
--HG--
extra : convert_revision : fa0e103ce44a4758858124ecd63aea0dec400720
2009-02-18 00:28:35 +01:00
Juan RP
cc162c2691 Improve printfs in previous.
--HG--
extra : convert_revision : 7d1c36a09fffddfea73cc18f0d45198f2424276e
2009-02-17 17:40:44 +01:00
Juan RP
3b3d788c7c Improve the build deps strategy, this is now pkgsrc-alike.
The list of build dependencies is shown, and if any of them
has deps, the list is shown for it and so on. This has the effect
of installing the deps in the order that they were specified
in the template, at the expense of a minor performance ratio.

--HG--
extra : convert_revision : 231ed52da19201bdeab65d0f9db78ab83b51e010
2009-02-17 17:15:12 +01:00
Juan RP
ab0db1fe93 binpkg-genindex: use xbps-pkgdb getpkg{name,version}.
--HG--
extra : convert_revision : 810596b7704c63c571e5c3282635a5a954090ca8
2009-02-17 14:09:15 +01:00
Juan RP
0bb1780f8e shutils: use xbps-pkgdb getpkg{name,version}, remove item from TODO.
--HG--
extra : convert_revision : 69927380509b3bc6b3f80ee3cbc44953bdd2b729
2009-02-17 13:58:34 +01:00
Juan RP
a679f70c55 stow_pkg: don't copy XBPS_PREPOST_INSTALL into masterdir.
--HG--
extra : convert_revision : 64e69cc303e6561a250796028810d89d88682573
2009-02-16 21:50:02 +01:00
Juan RP
82b01212ad Fix previous when building base_chroot pkgs.
--HG--
extra : convert_revision : c46fd838deeb92ac89047bd32a9a0bef421e2aa5
2009-02-16 19:04:23 +01:00
Juan RP
1802997b0b xbps-src: require sudo to build packages.
The reason is that fakeroot can't read files that have restrictive
perms and you'd have to change them before the src installation, and
restoring them at binpkg pre-installation.

I prefer to avoid all this and build the pkg with appropiate perms.

--HG--
extra : convert_revision : 8a5086049ab575962913eda0cb2ace0c211b97f1
2009-02-16 17:36:21 +01:00