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
This commit is contained in:
parent
db1227ab76
commit
4148b5e4b6
4 changed files with 53 additions and 12 deletions
|
@ -133,7 +133,11 @@ xbps_make_binpkg()
|
|||
|
||||
cd $destdir || exit 1
|
||||
|
||||
run_rootcmd tar cfjp $XBPS_DESTDIR/$binpkg .
|
||||
#
|
||||
# Sort the tar archive to have a chance that metadata is at
|
||||
# the beginning.
|
||||
#
|
||||
run_rootcmd tar cfjp $XBPS_DESTDIR/$binpkg . | sort -r
|
||||
if [ $? -eq 0 ]; then
|
||||
[ ! -d $XBPS_PACKAGESDIR ] && mkdir -p $XBPS_PACKAGESDIR
|
||||
mv -f $XBPS_DESTDIR/$binpkg $XBPS_PACKAGESDIR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue