Commit Graph

100 Commits

Author SHA1 Message Date
Juan RP a083feb8ff Fix 'xbps-src -u fetch' if distfiles already exist.
--HG--
extra : convert_revision : 4e85b3f14dc4c8f887d79cc1d3ab2d7813ced637
2009-04-03 20:30:33 +02:00
Juan RP 13df7f994c xbps-src: remove genindex code. A better version in C was implemented.
--HG--
extra : convert_revision : 07d5d4bbe27d66760ebc0d602290781d0f257c82
2009-04-03 15:50:57 +02:00
Juan RP 4347b28383 xbps-src: fix genindex target for directory passed as argument.
--HG--
extra : convert_revision : 80712b3d526353eb81448f31cfa82b7cdb60e304
2009-04-02 02:41:36 +02:00
Juan RP cf6bb806b7 make-binpkg.sh: build tmp pkgs in XBPS_BUILDDIR rather than DESTDIR.
--HG--
extra : convert_revision : ce460c47ac3edb7d871c7266f69b3f4ab6b39791
2009-03-31 18:51:05 +02:00
Juan RP b3fbf38a63 extract_funcs.sh: teach it about .tar.lzma archives.
--HG--
extra : convert_revision : 953b7bacd4b543ab3d285188d19708f3cbe9377f
2009-03-29 12:55:33 +02:00
Juan RP c4435b0b56 Bah, fix another error with custom-install and distfiles not set.
--HG--
extra : convert_revision : e234012ab35ffa018945366eb81ecdabefdd5b01
2009-03-29 09:46:55 +02:00
Juan RP bf238a0b49 Fix "custom-install" templates without $distfiles.
--HG--
extra : convert_revision : c2efead6ee35fa7fcc0d95c05b4eb388971c3171
2009-03-28 19:34:22 +01:00
Juan RP df9c00c475 tmpl_vars.sh: added DEBIAN_SITE for $distfiles.
--HG--
extra : convert_revision : f36b04289bba6857909c4e03c0b92ce45172e1f6
2009-03-28 17:05:50 +01: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 47d8d684aa Introduce $revision for use in templates.
--HG--
extra : convert_revision : c57cd2a6705e04be838a02665d0ea11f525ce263
2009-03-27 16:39:28 +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 7a40cfcfe8 metadata_script.sh: improve the INSTALL/REMOVE scripts.
--HG--
extra : convert_revision : 70e6088c94a274cfc862552e08aca60e790c29c3
2009-03-23 17:40:10 +01:00
Juan RP bf879f5f33 Added x11-fonts trigger for mkfontdir/mkfontscale.
--HG--
extra : convert_revision : 95f8a9e2f43b8288dc31287d6fd077d705968627
2009-03-23 16:42:01 +01:00
Juan RP 37f094b95a Added NONGNU_SITE var for use in $distfiles.
--HG--
extra : convert_revision : d416f7e0717a3a23da15741fae6f45c039e89f98
2009-03-23 06:26:04 +01:00
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