mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
Rename xbps.sh to xbps-src.sh.
In preparation for the utility that will handle binary packages. --HG-- extra : convert_revision : c67f42bccad28f1b5313ae0e1739979a477fd2f1
This commit is contained in:
parent
ff4f1346c2
commit
d9fb96533f
4 changed files with 15 additions and 15 deletions
26
doc/README
26
doc/README
|
@ -62,7 +62,7 @@ To avoid problems with libtool and configure scripts finding stuff that is
|
||||||
available in the host system, almost all packages must be built inside of a
|
available in the host system, almost all packages must be built inside of a
|
||||||
chroot. So the first thing would be to create the binary packages with:
|
chroot. So the first thing would be to create the binary packages with:
|
||||||
|
|
||||||
$ xbps.sh install xbps-base-chroot
|
$ xbps-src.sh install xbps-base-chroot
|
||||||
|
|
||||||
This will build all required packages via fakeroot in masterdir, therefore you
|
This will build all required packages via fakeroot in masterdir, therefore you
|
||||||
can run it as normal user. Next commands will require super-user privileges
|
can run it as normal user. Next commands will require super-user privileges
|
||||||
|
@ -72,7 +72,7 @@ be that xbps packages are meant to be used in a system and not just for
|
||||||
ordinary users. So once all packages are built, you can create and enter
|
ordinary users. So once all packages are built, you can create and enter
|
||||||
to the chroot with:
|
to the chroot with:
|
||||||
|
|
||||||
$ sudo xbps.sh chroot
|
$ sudo xbps-src.sh chroot
|
||||||
|
|
||||||
Press Control + D to exit from the chroot. The following targets will require
|
Press Control + D to exit from the chroot. The following targets will require
|
||||||
to be done in the chroot:
|
to be done in the chroot:
|
||||||
|
@ -82,7 +82,7 @@ to be done in the chroot:
|
||||||
Now let's explain some more about the targets that you can use. To start
|
Now let's explain some more about the targets that you can use. To start
|
||||||
installing packages you should use the install target:
|
installing packages you should use the install target:
|
||||||
|
|
||||||
$ sudo xbps.sh install glib
|
$ sudo xbps-src.sh install glib
|
||||||
|
|
||||||
If the package is properly installed, it will be "stowned" automatically.
|
If the package is properly installed, it will be "stowned" automatically.
|
||||||
``stowned´´ means that this package is available in the master directory,
|
``stowned´´ means that this package is available in the master directory,
|
||||||
|
@ -90,47 +90,47 @@ on which xpbs has copied all files from DESTDIR/<pkgname>.
|
||||||
|
|
||||||
To remove a currently installed (and stowned) package, you can use:
|
To remove a currently installed (and stowned) package, you can use:
|
||||||
|
|
||||||
$ sudo xbps.sh remove glib
|
$ sudo xbps-src.sh remove glib
|
||||||
|
|
||||||
Please note that when you remove it, the package will also be removed
|
Please note that when you remove it, the package will also be removed
|
||||||
from XBPS_DESTDIR and previously "unstowned".
|
from XBPS_DESTDIR and previously "unstowned".
|
||||||
|
|
||||||
To stow an already installed package (from XBPS_DESTDIR/<pkgname>):
|
To stow an already installed package (from XBPS_DESTDIR/<pkgname>):
|
||||||
|
|
||||||
$ sudo xbps.sh stow glib
|
$ sudo xbps-src.sh stow glib
|
||||||
|
|
||||||
and to unstow an already installed (stowned) package:
|
and to unstow an already installed (stowned) package:
|
||||||
|
|
||||||
$ sudo xbps.sh unstow glib
|
$ sudo xbps-src.sh unstow glib
|
||||||
|
|
||||||
You can also print some stuff about any template build file, e.g:
|
You can also print some stuff about any template build file, e.g:
|
||||||
|
|
||||||
$ xbps.sh info glib
|
$ xbps-src.sh info glib
|
||||||
|
|
||||||
To list installed (stowned) packages, use this:
|
To list installed (stowned) packages, use this:
|
||||||
|
|
||||||
$ xbps.sh list
|
$ xbps-src.sh list
|
||||||
|
|
||||||
To only extract the distfiles, without configuring/building/installing:
|
To only extract the distfiles, without configuring/building/installing:
|
||||||
|
|
||||||
$ xbps.sh extract foo
|
$ xbps-src.sh extract foo
|
||||||
|
|
||||||
To not remove the build directory after successful installation:
|
To not remove the build directory after successful installation:
|
||||||
|
|
||||||
$ sudo xbps.sh -C install blah
|
$ sudo xbps-src.sh -C install blah
|
||||||
|
|
||||||
To only fetch the distfile:
|
To only fetch the distfile:
|
||||||
|
|
||||||
$ xbps.sh fetch blah
|
$ xbps-src.sh fetch blah
|
||||||
|
|
||||||
To only install the package, _without_ stowning it into the master directory:
|
To only install the package, _without_ stowning it into the master directory:
|
||||||
|
|
||||||
$ sudo xbps.sh install-destdir blob
|
$ sudo xbps-src.sh install-destdir blob
|
||||||
|
|
||||||
To list files installed by a package, note that package must be installed
|
To list files installed by a package, note that package must be installed
|
||||||
into destination directory first:
|
into destination directory first:
|
||||||
|
|
||||||
$ xbps.sh listfiles blob
|
$ xbps-src.sh listfiles blob
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
PERFORMANCE
|
PERFORMANCE
|
||||||
|
|
2
doc/TODO
2
doc/TODO
|
@ -1,4 +1,4 @@
|
||||||
xbps.sh:
|
xbps-src.sh:
|
||||||
* Personalized scripts per template to unpack distfiles.
|
* Personalized scripts per template to unpack distfiles.
|
||||||
* Multiple URLs to download source distribution files, aliases, etc.
|
* Multiple URLs to download source distribution files, aliases, etc.
|
||||||
Something like ${sourceforge} to pick up any specified mirror on the list.
|
Something like ${sourceforge} to pick up any specified mirror on the list.
|
||||||
|
|
|
@ -141,7 +141,7 @@ xbps_chroot_handler()
|
||||||
[ -n "$only_destdir" ] && \
|
[ -n "$only_destdir" ] && \
|
||||||
local lenv="install_destdir_target=yes"
|
local lenv="install_destdir_target=yes"
|
||||||
env in_chroot=yes ${lenv} chroot $XBPS_MASTERDIR \
|
env in_chroot=yes ${lenv} chroot $XBPS_MASTERDIR \
|
||||||
/xbps/xbps.sh $action $pkg
|
/xbps/xbps-src.sh $action $pkg
|
||||||
fi
|
fi
|
||||||
msg_normal "Exiting from the chroot on $XBPS_MASTERDIR."
|
msg_normal "Exiting from the chroot on $XBPS_MASTERDIR."
|
||||||
umount_chroot_fs
|
umount_chroot_fs
|
||||||
|
|
Loading…
Add table
Reference in a new issue