From 0ab18a9b239accbd25eb420da2791c9ebbb3aa21 Mon Sep 17 00:00:00 2001 From: Benjamin Schieder Date: Wed, 14 Sep 2005 16:33:52 +0000 Subject: [PATCH] Benjamin Schieder: Add a hook for postinstall scripts. $confdir/postinstall.sh will be automatically installed to the correct location. [2005090509474012226] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@6361 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- scripts/functions | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/functions b/scripts/functions index d15558b93..e40ffde0f 100644 --- a/scripts/functions +++ b/scripts/functions @@ -753,6 +753,14 @@ build_this_package() { $root/usr/share/applications/`basename $file` done + if [ -f $confdir/postinstall.sh ] ; then + echo "Installing postinstall file $confdir/postinstall.sh" + mkdir -p $root/etc/postinstall + + rock_substitute $confdir/postinstall.sh > \ + $root/etc/postinstall/$pkg-postinstall.sh + fi + if [ "$createdocs" = 1 ]; then echo "Trying to copy the default documentation ..." [ -d $builddir/$xsrcdir ] && cd $builddir/$xsrcdir