Commit Graph

119 Commits

Author SHA1 Message Date
Juan RP bc1e2c8dcd TODO: I'm working in package upgrades now.
--HG--
extra : convert_revision : 01360954acd2aa4e0ff7c56e1d5b116eebf1a3e1
2009-03-16 07:08:13 +01:00
Juan RP 96c57cfb43 TODO: add another item.
--HG--
extra : convert_revision : fbf112f5e9e4a90ce3370d43414792a2dbc1b7c5
2009-03-16 07:05:10 +01:00
Juan RP f0887665fe Added two features missed in previous.
--HG--
extra : convert_revision : 245256117c7607d0020b81bf0f8e689467afc3f2
2009-03-14 07:46:08 +01:00
Juan RP 7c0071facc doc/FEATURES: mention some implemented features.
--HG--
extra : convert_revision : d4e86d69f11b2d1bcf12dc72f0e81dfafa3f0e1d
2009-03-14 07:41:58 +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 5d8328894d TODO: add some items required to make the system functional.
--HG--
extra : convert_revision : 38807c2fb729923194c903bf43be5a7b586c6436
2009-03-13 18:54:30 +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 37c27f7307 TODO: mark an item as stopped... not sure it will be implemented.
--HG--
extra : convert_revision : 2208040f9ee9cb2b21f73b45f75eccd7c34f2a83
2009-03-12 10:53:16 +01:00
Juan RP 348485f208 Added a FEATURES file mentioning stuff that's currently implemented.
--HG--
extra : convert_revision : af0535158c17afbefeabb748e8e3c16c7c8f5442
2009-03-12 10:37:15 +01:00
Juan RP 95b01cfd63 TODO: mark two items IN PROGRESS.
--HG--
extra : convert_revision : a9c2605eda8a80bb2bd437cdf8fdb117497fef61
2009-03-11 23:29:56 +01:00
Juan RP cffbaad064 TODO: initscripts are provided, even by reusing NetBSD's rc.d.
--HG--
extra : convert_revision : e1f7b42a90ebbe7d4ab12856dc34cef1a3edc25f
2009-03-06 08:25:41 +01:00
Juan RP 37e4be86f9 Added support to check the SHA256 hash for any binpkg before installation happens.
--HG--
extra : convert_revision : 4f812eb0cfb614461527e360db1692bd5f9c34aa
2009-03-02 23:38:24 +01:00
Juan RP 0d8f08e8ea Added support to list and remove orphaned packages.
A new target has been added to xbps-bin: autoremove. It works in
the same way than 'apt-get', but there's no stdin input. By default
it will list you all orphaned packages, and -f flag must be set
to really remove them.

The following is a real example for the git package, which requires
directly perl and curl-libs, and indirectly libidn and openssl.

$ xbps-bin -r ~/testing-xbps remove git
Removing package git-1.6.1.3 ... done.
$

$ xbps-bin -r ~/testing-xbps autoremove
The following packages were installed automatically
(as dependencies) and aren't needed anymore:

	perl-5.10.0 curl-libs-7.19.0 libidn-1.10 openssl-0.9.8j

If you are really sure you don't need them, use -f to confirm.
$

--HG--
extra : convert_revision : 70eebaa3d99be27753b94f580c8ec86330c7c2d3
2009-03-02 02:26:20 +01:00
Juan RP f1f34487e2 xbps-bin: added -f flag for remove target.
Now if any package is going to be removed and it's required by
other packages, it won't let you remove it unless -f is set.

Here's an example of how it looks like:

[juan@fedora-vm xbps]$ xbps-bin -r ~/testing-xbps remove glibc
WARNING! glibc is required by the following packages:

	zlib-1.2.3 ncurses-libs-5.7 gcc-libstdc++-4.3.2 e2fsprogs-libs-1.41.4
	cracklib-2.8.13 expat-2.0.1 ncurses-5.7 cpio-2.9
	module-init-tools-3.6 busybox-initramfs-1.13.2 udev-138 procps-3.2.7
	pam-1.0.2 dbus-libs-1.2.12 lzma-utils-libs-4.32.7 coreutils-7.1
	sed-4.1.5 grep-2.5.4 gawk-3.1.6 gzip-1.3.12
	bzip2-1.0.5 bash-4.0 less-424 gdbm-1.8.3
	groff-1.20.1 lzma-utils-4.32.7 dbus-1.2.12 proplib-0.3
	dash-0.5.4 findutils-4.4.0 util-linux-ng-2.14.2 initramfs-tools-0.92o
	file-5.00 diffutils-2.8.1 wget-1.11.4 man-db-2.5.3
	sysklogd-1.5 eject-2.1.5 shadow-4.1.2.2 sudo-1.7.0
	e2fsprogs-1.41.4 tzdata-2009a vim-7.2 upstart-0.5.1
	kernel-2.6.28.1 xbps-base-pkg-0.1 kbd-1.14.1

If you are sure about this, use -f to force deletion for this package.
[juan@fedora-vm xbps]$

--HG--
extra : convert_revision : eeb92925e51f11d5b3bf7e069ed4986ae5fb0c2d
2009-03-01 01:34:15 +01:00
Juan RP b4806141f7 TODO: another item.
--HG--
extra : convert_revision : c24c1f09857cb4f4c33716e66e1702bf2935cdd3
2009-03-01 00:37:28 +01:00
Juan RP 7acc216a1c TODO: add some more items.
--HG--
extra : convert_revision : 03f9b2d2878248fdad68a7c2b3696e7361b9fbec
2009-03-01 00:34:00 +01:00
Juan RP c136f6193d TODO: another item.
--HG--
extra : convert_revision : 69c734f622b926b9fd7025c6a533718de3a49363
2009-02-28 17:50:53 +01:00
Juan RP f28419db7d TODO: updated an item.
--HG--
extra : convert_revision : 94bb4cbee658815f9601571ee697cdbf54c6fdfd
2009-02-27 17:48:47 +01:00
Juan RP 750f467fe6 Take into account $conf_files and $keep_dirs when removing a pkg.
* If a dir is listed in $keep_dirs it won't be removed (anyway any
  directory that is not empty won't either).
* If a config file hasn't been modified (SHA256 hash matches) the
  file will be removed, otherwise it won't be removed.

There's still missing support to handle new configuration files when
there's an existing file, but will do later.

--HG--
extra : convert_revision : 448af95876fc7a47da07a9a910d6111047f72271
2009-02-27 17:41:31 +01:00
Juan RP f211c85e6d Updated TODO.
--HG--
extra : convert_revision : 6b37e23d827b9fabb0305e1de5c1a8ac780bd9da
2009-02-27 16:00:38 +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 255c48b198 Added support to check SHA256 integrity for binary pkgs.
This currently checks:
 - While removing, any file is checked and if hash doesn't match the
   file is ignored and not removed.
 - While installing, if a binary pkg file doesn't match with the one
   reported by the repository's pkg index file, the process will be
   stopped.

--HG--
extra : convert_revision : 42bb64e89a092f0ff3e7d951e5b26e45d63a60fe
2009-02-26 05:41:49 +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 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 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 fda3da1543 Use string version comparator code from FreeBSD.
This fixes all cases that previous code has with no changes...
sorry pancake.

--HG--
extra : convert_revision : 993d0aa060daf36d1b5ffa63725002dda122c091
2009-02-17 03:49:02 +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
Juan RP 2b24128059 xbps-bin: added support for the show target.
--HG--
extra : convert_revision : 24b2d30a94c95b22b1c524203cf578da03314335
2009-02-16 16:24:33 +01:00
Juan RP 3bfe373475 TODO: another case that fails in xbps-cmpver.
--HG--
extra : convert_revision : 12f42919105bd7e6cbf3472308d8add1f0114304
2009-02-16 05:41:43 +01:00
Juan RP 3ac13cd512 TODO: new item for xbps-src.
--HG--
extra : convert_revision : 2ad510ebe24c8585a31cd34a1e4bb4b4f332e01b
2009-02-16 01:24:22 +01:00
Juan RP 6b6162bb44 Added support for using noarch packages.
--HG--
extra : convert_revision : a96166ddecb6efe65d35283f25e06a944cc4a038
2009-02-16 00:39:41 +01:00
Juan RP cf830c8b04 TODO: add item about noarch binpkgs.
--HG--
extra : convert_revision : 08816d99cf80a5a7284f6263efd3513cc1afa5af
2009-02-15 19:28:46 +01:00
Juan RP 902fb71aa6 Changed XBPS_META_PATH to /var/db/xbps rather than /var/cache/xbps.
--HG--
extra : convert_revision : 4e10af13ce05f060ebdfa8ca4e767a269c46b17f
2009-02-14 23:21:12 +01:00
Juan RP 49d1ea4dd5 Note that perl is also required to build xbps-base-chroot.
--HG--
extra : convert_revision : 4681f1971a0a41afae0a7d90fabd716befda574b
2009-02-14 23:09:10 +01:00
Juan RP 3cec555fa5 TODO: remove item for xbps-repo that has been fixed.
--HG--
extra : convert_revision : 250444dbbb78c07c09e2ec2986ef4a6158f79ac5
2009-02-14 05:15:04 +01:00
Juan RP 28cfeea6d1 New dependency sorting algorithm made in 2 days.
This algorithm works for all packages currently usable on xbps.
Previous code didn't take into account the correct order between
indirect and direct deps.

--HG--
extra : convert_revision : c49a20ce300e6e9dfa565325b40745b5a78b78ed
2009-02-12 17:30:38 +01:00
Juan RP e32d15605b TODO: add two items and note I'm working on them.
--HG--
extra : convert_revision : 898d33ad0eb7a94fb5b825516c05ca67a19ce32b
2009-02-09 17:37:12 +01:00
Juan RP a6f956257d Add a file to explain the property list of a pkg's dependency chain.
--HG--
extra : convert_revision : 889beac875cdcdd1332805b684f2997cd7976bf6
2009-02-07 17:20:48 +01:00
Juan RP d7b5f20e26 TODO: another item for xbps-bin.
--HG--
extra : convert_revision : ce16b1379f9c29e426566b28083e008c7cdf27b4
2009-02-05 16:20:51 +01:00
Juan RP 13ad490b4f More documentation bits... I hate this part.
--HG--
extra : convert_revision : 63d8524fd28a480c88731b717d55d1f822adf9cc
2009-02-05 16:12:00 +01:00
Juan RP 65d1c71008 Update TODO.
--HG--
extra : convert_revision : 2fb3e5cbd814d6b17645cdc78a05883942099353
2009-02-05 15:26:59 +01:00
Juan RP c86be9931b Install by default xbps.conf into $(PREFIX)/etc and use it.
--HG--
extra : convert_revision : d6550a3d9e6093cb1ec789715e2b1107b9bb59bd
2009-02-05 15:21:33 +01:00
Juan RP 001de5eb1a There's xbps-repo now to handle repository commands.
--HG--
extra : convert_revision : 566ebb54d45531af9077ba5dc776d3a1c3fab207
2009-02-05 14:51:32 +01:00
Juan RP 45265e44d5 BINPKG_REPOSITORY: minor fixes.
--HG--
extra : convert_revision : aef2b8ee133af8e0168ca03f0dd398e95912ad05
2009-02-05 06:02:16 +01:00
Juan RP c1f0ae6c16 TODO: basic remove support is there, recursive removing not yet.
--HG--
extra : convert_revision : 7c9fc9fc21889a560dda6bb5aabaac3edda6e83d
2009-02-03 23:55:15 +01:00
Juan RP 6c252d43d4 Split installation/removal parts in prepost-action scripts.
There are two scripts that can be used now:
	- prepost-inst: for pre/post actions at installation.
	- prepost-rm: for pre/post actions at removal.

--HG--
extra : convert_revision : 5e054758f549f5c81693b825795fbb36e2d5513a
2009-02-03 17:32:51 +01:00
Juan RP 74b213b519 TODO: add another bug.
--HG--
extra : convert_revision : a1daa1ea882b1877ff8ed7a71697757bdc71bdb1
2009-01-28 16:26:42 +01:00
Juan RP 3550f9cd27 Update TODO with new stuff.
--HG--
extra : convert_revision : 385a0335f4e6750dd4fdc559631a264eb8907c38
2009-01-27 19:41:11 +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 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 a1425f164d TODO: add new items.
--HG--
extra : convert_revision : 636dec5341d934ef18f0686a84d08e7e8a230a14
2008-12-28 11:38:40 +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 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 9bb392de51 README: ncurses-dev is also needed.
--HG--
extra : convert_revision : 59793eeea49b84ca602d068f32ed09dbc89a0216
2008-12-22 15:36:13 +01:00
Juan RP 00036e035b README: mention that gettext is also needed.
--HG--
extra : convert_revision : e1903006cc63766cc3c614e805089943e69845e8
2008-12-22 15:30:25 +01:00
Juan RP 77debbc7c4 README: update for recent changes.
--HG--
extra : convert_revision : 38ce28d007a36e20b3a71764868f7b37776ee9b3
2008-12-22 02:27:51 +01:00
Juan RP 6ee35486bf To use xbps now 'make and make install' is required.
--HG--
extra : convert_revision : 976738f26daf1ccd2101ca2325e1e517d98e71cb
2008-12-22 02:14:40 +01:00
Juan RP d7c720ef7d Move xbps.conf to the new etc dir.
--HG--
extra : convert_revision : 84988fe710423c1610c1a3aa79bd38eee884d4c0
2008-12-22 00:40:36 +01:00
Juan RP 4a88e000e6 Update README with last changes.
--HG--
extra : convert_revision : b0ed200f01b731aee831d0d488c4900ac9804703
2008-12-22 00:02:13 +01:00
Juan RP 8523e208fe Mention some new recent stuff on BINPKG_REPOSITORY.
--HG--
extra : convert_revision : 91043c7be9c32ef9a7d1eb8e98518d90c162fe95
2008-12-21 05:41:17 +01:00
Juan RP 045e10c94e genindex: added "filename-sha256" obj in pkgdict.
--HG--
extra : convert_revision : d443575b681c408bb357027fcc46f1e19022bd87
2008-12-19 21:44:00 +01:00
Juan RP a4c1f17a56 Extend the pkgindex plist file with some new objects.
--HG--
extra : convert_revision : ee311e4c0821a43de3dcc464a91550f7b1917024
2008-12-19 06:22:03 +01:00
Juan RP d9fb96533f Rename xbps.sh to xbps-src.sh.
In preparation for the utility that will handle binary packages.

--HG--
extra : convert_revision : c67f42bccad28f1b5313ae0e1739979a477fd2f1
2008-12-18 11:07:33 +01:00
Juan RP 756757d034 Explain some more about binpkgs and repositories.
--HG--
extra : convert_revision : 76193e4a513a216400bebbdfb69787e9405f5b20
2008-12-18 07:15:02 +01:00
Juan RP ef2601f4eb Add pkg metadata into /var/cache/xbps/metadata and not /xbps-metadata.
With this change it's possible to use a binary package just by unpacking
it into the destination directory.

--HG--
extra : convert_revision : 5f025a5e5d7593555fa55d08d5652c26736a139e
2008-12-17 08:27:28 +01:00
Juan RP 0f4c3a385a Update TODO with reality.
--HG--
extra : convert_revision : 7f19cdb77433b553d95d3cfa802e4f610c76d5c9
2008-12-17 00:53:12 +01:00
Juan RP 8df38b299b TODO: mention mpfr hardcoded gmp rpath.
--HG--
extra : convert_revision : 284b726032ac10260632ebbebbcd89f1a5f547f2
2008-12-13 07:44:19 +01:00
Juan RP 23fa45a18b Reorganize the tree for easier and better handling.
- Template helpers have been moved to templates/helpers.
- Documentation to docs/.
- Common scripts have been moved to utils/sh.
- Fixed install-destdir when executed via chroot.
- Added a build-pkg target that builds a binary package.
  The package must be installed into destdir before using.
- Misc tweaks and fixes.

--HG--
extra : convert_revision : 0896e8f24bb7592116aaf77ae9c776033818a3d8
2008-12-13 03:01:24 +01:00