Commit graph

1023 commits

Author SHA1 Message Date
Juan RP
de800de41f initng-ifiles: add a prepost-action script to generate required files.
--HG--
extra : convert_revision : 376e924f763c342b0d0ad19895f0241475e18eec
2009-01-27 13:35:41 +01:00
Juan RP
9efb9f6d69 initng: needs bash at runtime.
--HG--
extra : convert_revision : f63dcab3a7de1a685a4ca8630cbd3f9bd889a016
2009-01-27 13:35:26 +01:00
Juan RP
919ac78f4c cmake: needs openssl at runtime.
--HG--
extra : convert_revision : ff9ead6ff17597c1b7850006df23551453d09c7c
2009-01-27 13:34:52 +01:00
Juan RP
644867c419 initng-ifiles: fix genrunlevel hardcoded path for the binpkg.
--HG--
extra : convert_revision : fa6707f48f8bc1e31aefa5218fd80192ba23dd5d
2009-01-27 12:50:24 +01:00
Juan RP
d6d8c91d8d udev: update to 137. Less changes by default to have a working setup.
--HG--
extra : convert_revision : d71a3e8cd4ad0a0cb944a64c5eef688b331f5781
2009-01-27 12:34:58 +01:00
Juan RP
b70527d4d1 syslinux: update to 3.73.
--HG--
extra : convert_revision : 7fe4ef1d2833328315a65d0862929921f0793b65
2009-01-26 16:32:27 +01:00
Juan RP
d410602ced kbd: add patch to make this build with kernel 2.6.28.
--HG--
extra : convert_revision : ab84ee8a4b9b16639174e31e219eff176c794fd8
2009-01-25 23:41:15 +01:00
Juan RP
374c65648b kernel*: update to 2.6.28.1, without unionfs/squashfs.
--HG--
extra : convert_revision : 46a38da454341ff361d349e6a1ef26e8fd1749c6
2009-01-25 23:40:41 +01:00
Juan RP
a490aa8945 proplib: update to 0.3.
--HG--
extra : convert_revision : 6037d4bcf3f652aec8fb6749125a8532a154a740
2009-01-25 23:40:13 +01:00
Juan RP
73e510f2aa builddep_funcs: fix a wrong conditional.
--HG--
extra : convert_revision : c4f0b0a47239e7449730473456636a8dfe32c3c3
2009-01-14 16:51:17 +01:00
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