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:
Juan RP 2008-12-28 08:44:01 +01:00
parent db1227ab76
commit 4148b5e4b6
4 changed files with 53 additions and 12 deletions

View file

@ -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