diff --git a/doc/BINPKG_INFO b/doc/BINPKG_INFO index 0dfc9173fe1..ef918d87d82 100644 --- a/doc/BINPKG_INFO +++ b/doc/BINPKG_INFO @@ -56,9 +56,10 @@ has the following structure: ... -This plist might be extended in the future; additional scripts might be -added to trigger actions at pre/post installation/removal of the -binary package. +The prepost-action is an executable script/command that allows you to +trigger any action at pre/post installation/removal of the binary +package. If return value is not 0, the package won't be registered into +the database. The package's dictionary will also be written into the repository's package index file, that describes information about a binary package on it. diff --git a/doc/BINPKG_REPOSITORY b/doc/BINPKG_REPOSITORY index 74b52a452ff..c4381cc4196 100644 --- a/doc/BINPKG_REPOSITORY +++ b/doc/BINPKG_REPOSITORY @@ -67,13 +67,13 @@ Here's how the package index plist file shall look like in a repository: To build binary packages from all currently installed packages in XBPS_MASTERDIR: - $ xbps-src.sh build-pkg all + $ xbps-src build-pkg all To generate the repository package index in default location XBPS_PACKAGESDIR (an additional path can be specified for another alternate location): - $ xbps-src.sh genindex + $ xbps-src genindex After this you can add your own local repository with binary packages: