Commit graph

813 commits

Author SHA1 Message Date
Juan RP
bc9bf83f0a xbps-src: update PATH with default PREFIX set by make.
--HG--
extra : convert_revision : 235ae5d28d075ffda87734224a4edf724799e2f1
2009-01-14 16:50:30 +01:00
Juan RP
869b38b9fa Make sure to run tmpl_vars for a template.
--HG--
extra : convert_revision : 2146c1d7492dd27490501f0fe836fdb19e792548
2009-01-14 16:49:40 +01:00
Juan RP
a0174e5135 procps: update $distfiles with a working location.
--HG--
extra : convert_revision : 70b01d3cf76a6c4ba6776906b2acbaeeac4422be
2009-01-14 16:48:51 +01:00
Juan RP
d0bbf183d9 initramfs-tools: update to 0.92o because previous distfile was removed.
--HG--
extra : convert_revision : 62c2865117465d728c7d2585c3e44d38b4a5c660
2009-01-14 16:48:25 +01:00
Juan RP
aafefa6c23 Simplify xbps_add_pkg_dependency().
--HG--
extra : convert_revision : d4702da2278e65eabf998f2cbe7b3cd10eb34852
2009-01-03 14:59:55 +01:00
Juan RP
a2d218eb4c xbps_unpack_archive_cb: fix a comment.
--HG--
extra : convert_revision : 48bda135d47987c22ce71b46d999d48ef83a7f99
2009-01-02 17:22:43 +01:00
Juan RP
d8e8d3f6ab xbps_remove_pkg(): continue even if $destdir is not there.
Binary packages won't provide $destdir anyway.

--HG--
extra : convert_revision : b803c58c359e7e0f321d5855faa7ac2377b05364
2008-12-29 16:47:57 +01:00
Juan RP
3bb459b493 Improve BINPKG_INFO/REPOSITORY doc files.
--HG--
extra : convert_revision : 7a09f2d04e98d26d13b6a632e3c91eabe61af341
2008-12-29 16:22:55 +01:00
Juan RP
68d2bbe8fb xbps-bin: add missing newline.
--HG--
extra : convert_revision : e75a20206dc19000360df659814b9c2d6f7769d1
2008-12-29 16:02:35 +01:00
Juan RP
650aae7b58 kernel: added a prepost-action script to create the initramfs.
--HG--
extra : convert_revision : 50026c51a815fafbe655d39c8fa3dd31dffd5846
2008-12-29 15:59:18 +01:00
Juan RP
f0f479a3c1 Pass more arguments to the prepost-action command.
--HG--
extra : convert_revision : f39f2926d0b3d9155e409a6193662c55c263167c
2008-12-29 15:57:37 +01:00
Juan RP
15e15465c8 bin: use EXIT_SUCCESS and EXIT_FAILURE.
--HG--
extra : convert_revision : 730a4f09ae67423e4a34b1c7e9d020998cc2288c
2008-12-29 15:56:40 +01:00
Juan RP
c0549cd845 binpkg: fix the priority object.
--HG--
extra : convert_revision : 478d30796865eaa479571fb3834a0e9e2a309b5c
2008-12-29 15:54:33 +01:00
Juan RP
7f05ee8ed8 initramfs-tools: add missing rundeps.
--HG--
extra : convert_revision : c4e500503a34bdf3646df272417eae3437ff16c2
2008-12-29 15:53:24 +01:00
Juan RP
c985e3974b kernel: add missing run_depends.
--HG--
extra : convert_revision : b601910b35d0bfe02bf520d927407fd013a0c772
2008-12-29 15:04:21 +01:00
Juan RP
78b036f346 Add the prepost-action script into the binary package if exists.
--HG--
extra : convert_revision : 3d1db89a9347d423550984e7ff5c941d0d7b6cbe
2008-12-29 09:26:49 +01:00
Juan RP
5d3e701b3a Simplify xbps_get_dependency().
--HG--
extra : convert_revision : 2174be8c7c6386f403a3d2d96c8443629fa6db21
2008-12-29 07:01:01 +01:00
Juan RP
e6590dd285 Rename binpkg's metadata script to prepost-action.
Because in theory any shell script or executable program might run,
and therefore the .sh extension is wrong.

--HG--
extra : convert_revision : 2f52520ccb04cdf1c414ee0ac6128e54d82c1d36
2008-12-29 06:50:59 +01:00
Juan RP
b445b83fd3 Implement a stupid sorting dependency algorithm.
Dependencies are sorted with highest to lowest priority by the
following rules:

	- package has highest required count and priority.
	- package has highest priority.
	- package has highest reqcount.
	- everything else.

--HG--
extra : convert_revision : e661b90c38f6b6ca4d9559c0f88d1e4ea9df6c1e
2008-12-29 06:46:08 +01:00
Juan RP
a1425f164d TODO: add new items.
--HG--
extra : convert_revision : 636dec5341d934ef18f0686a84d08e7e8a230a14
2008-12-28 11:38:40 +01:00
Juan RP
43543bbaa1 Split info related funcs from plist.c into its own file.
--HG--
extra : convert_revision : 70ec29b722ff5a702f64b525812bb2cbdad56a44
2008-12-28 11:22:58 +01:00
Juan RP
27de1e8a0c xbps_unpack_archive_cb: alloc buf from heap memory instead.
--HG--
extra : convert_revision : dfbcbfeab3e57b571388447565ca0156816e7a84
2008-12-28 11:13:17 +01:00
Juan RP
a00a9a52b2 Use fdatasync() once the package has been unpacked.
At least there will be more chances that important data has been
written to disk.

--HG--
extra : convert_revision : 251af5da3f587cad976a9f5b903e5c3bdf5a229a
2008-12-28 09:48:18 +01:00
Juan RP
4148b5e4b6 Added support for pre/post installation script with binary packages.
For now all is handled in a script "prepost-action.sh" in package's
metadata directory, with a target in the shell script.

--HG--
extra : convert_revision : 93ed92d9fbb12939c751354cff464cc097379520
2008-12-28 08:44:01 +01:00
Juan RP
db1227ab76 libxbps: add fexec.c from NetBSD's pkg_install, with some minor mods.
--HG--
extra : convert_revision : 42a4231615746fdc21c826d7f5c1ccbe5ea7a6e2
2008-12-28 04:34:27 +01:00
Juan RP
74d63d15a5 cracklib: fix up $distfiles.
--HG--
extra : convert_revision : 17d9f7ccf1d1fee4e9734734ae1bb31ca29e5621
2008-12-28 02:22:00 +01:00
Juan RP
c4a01548e8 kernel: update i386 .config for 2.6.27.9.
--HG--
extra : convert_revision : 63dac99c4a47293abc1baecd911010a551799aec
2008-12-28 02:11:44 +01:00
Juan RP
6fa40b9e39 extract_func.sh: initialize a var to avoid an error.
--HG--
extra : convert_revision : 56fcbc667243b142c2a0bb55fc164f56254e468b
2008-12-28 00:23:13 +01:00
Juan RP
3aabbc6c8b Split repository functions from plist.c into its own file.
--HG--
extra : convert_revision : 581706f025dd210fc95d6e7c2f535ace786ea78f
2008-12-27 23:03:17 +01:00
Juan RP
e5774555cf xbps-bin: simplify sanitize_localpath().
--HG--
extra : convert_revision : 223334822b80c6b11e63f1a34e7bfadb9115d5b9
2008-12-27 22:56:47 +01:00
Juan RP
926b1dfa4a Improve binpkg priorities, dynamically allocate mem, etc.
--HG--
extra : convert_revision : 479011aba6e9da4e5662137381e04042e762d428
2008-12-27 22:19:04 +01:00
Juan RP
86cdb7dae6 Install packages in order from highest to lowest priority.
--HG--
extra : convert_revision : 33be12f1d249bfd8f76d4f1cb8374dfc3f71df21
2008-12-27 17:26:47 +01:00
Juan RP
456c6a2763 depends: fix a leak while destroying the simple queue.
--HG--
extra : convert_revision : aabc102f55fd81bce8b007d209596d40576eb8a5
2008-12-27 16:37:43 +01:00
Juan RP
68941a9a31 Introduce $install_priority for use in templates.
A higher number in this var will make the binary package to
be installed before other with lower priority. By default, all
packages have a 0 priority. xbps-base-dirs uses 100, because it
needs to be one of the first installed packages.

--HG--
extra : convert_revision : 81a88b676d2ae3180914612371619f19e1765d02
2008-12-27 16:20:54 +01:00
Juan RP
74e575f984 xbps-pkgdb: fix argv in sanitize-plist target.
--HG--
extra : convert_revision : 6e475309733ddf37970ff0506b15714a6996b652
2008-12-27 16:19:11 +01:00
Juan RP
11f0a2d4a6 xbps_get_pkg_name(): remove wrong comment.
--HG--
extra : convert_revision : 5a51c7fc6559347195e86d051aae72caafaf489d
2008-12-27 14:54:11 +01:00
Juan RP
bd6d7b5502 plist: remove dup assertion.
--HG--
extra : convert_revision : 5c31c8841ce9e5d0c44e85bd1ac218efea59c8ce
2008-12-27 14:53:50 +01:00
Juan RP
b2abe59c52 Added support to specify a root directory for xbps.
All xbps metadata files will go into <rootdir>/var/cache/xbps
and package data will go into <rootdir>/<data>.

--HG--
extra : convert_revision : 37007ac4f9b99b31465612a58749713b3164139b
2008-12-27 12:56:51 +01:00
Juan RP
091a8bf618 chroot: xbps-base-dirs provides required dirs now.
--HG--
extra : convert_revision : 5db8d2d8a74933cb16a4656922dbd6f8e6cbc79e
2008-12-27 10:09:52 +01:00
Juan RP
f70be652d6 libarchive: start $short_desc with a capital letter.
--HG--
extra : convert_revision : 95422ae8961e3cd8bf390cd5d28949165b7d9f3d
2008-12-27 09:22:43 +01:00
Juan RP
55a2223657 xbps-base-dirs: add some required dirs.
--HG--
extra : convert_revision : d177f36e9586f1b2edd50386c02e4f934512f911
2008-12-27 09:21:26 +01:00
Juan RP
b1ec791985 libarchive: fix $short_desc.
--HG--
extra : convert_revision : 32e9c0e47fd8de0852aa485dc8629690d41c3e3a
2008-12-27 09:10:20 +01:00
Juan RP
7be91b93b9 xbps-src: remove unneeded stuff.
--HG--
extra : convert_revision : 38d5fc74271e041cd9b4e529960ceeb482c6b51e
2008-12-27 08:51:40 +01:00
Juan RP
1ecc844eb4 xbps-base-{chroot,system}: depend on xbps-base-dirs.
--HG--
extra : convert_revision : d63fdd36b263e76c4b605811406df2d809946134
2008-12-27 08:44:37 +01:00
Juan RP
4d7a9ba2c8 Added xbps-base-dirs-0.1 template.
This package provides the directories required for GNU/Linux system.

--HG--
extra : convert_revision : c1b8b40c0718eeb15d75d60b33d7c23357a69dbc
2008-12-27 08:43:57 +01:00
Juan RP
3b702f33aa xbps-pkgdb: check that plist dict is there in version target.
--HG--
extra : convert_revision : 926363d195d0e4ce4fcd2e715823f43fd839561c
2008-12-27 08:43:13 +01:00
Juan RP
7f5a76ace3 TODO: add some new items for binary packages.
--HG--
extra : convert_revision : 2989daa26335b8a43fab576b0bfcb1489a6fc94e
2008-12-27 06:10:26 +01:00
Juan RP
11187893b6 README: libarchive is now required.
--HG--
extra : convert_revision : 7fed90ae0b8d5c8a05dd95f28f40624d594dd7e8
2008-12-27 05:25:38 +01:00
Juan RP
39c05644b3 gcc: mpfr is a runtime dependency.
--HG--
extra : convert_revision : 05d61207f70da060effc72d680a4d374217315ca
2008-12-27 04:30:28 +01:00
Juan RP
5d07bfa08d xbps-base-chroot: only depend in gcc.
--HG--
extra : convert_revision : 297c06ed20794f6d9e856d669e2e31a4c6ae9533
2008-12-27 04:30:14 +01:00