diff --git a/functions.sh b/functions.sh index 54ad878..3d8bc81 100644 --- a/functions.sh +++ b/functions.sh @@ -97,6 +97,16 @@ sit_pretest() { } +src_install() { + make install +} +sit_install() { + sit_info "Installing package ..." + cd ${BUILDDIR} + src_install || sit_fail "Install failed" +} + + src_posttest() { /bin/true } @@ -107,15 +117,15 @@ sit_posttest() { } -src_install() { - make install +src_postinst() { +/bin/true } -sit_install() { - sit_info "Installing package ..." - cd ${BUILDDIR} - src_install || sit_fail "Install failed" + +sit_postinst() { + src_postinst || sit_fail "Post installation failed" } + sit_copy_logs() { if [ ! -z $LOGDIR ] ; then cd $LOGDIR diff --git a/sit b/sit index 5d210ea..3f0319e 100755 --- a/sit +++ b/sit @@ -189,6 +189,7 @@ sit_build 2>&1 | tee "$LOGDIR/make.log"; ( exit ${PIPESTATUS[0]} ) sit_pretest 2>&1 | tee "$LOGDIR/pretest.log"; ( exit ${PIPESTATUS[0]} ) sit_install 2>&1 | tee "$LOGDIR/make_install.log"; ( exit ${PIPESTATUS[0]} ) sit_posttest 2>&1 | tee "$LOGDIR/posttest.log"; ( exit ${PIPESTATUS[0]} ) +sit_postinst 2>&1 | tee "$LOGDIR/postinst.log"; ( exit ${PIPESTATUS[0]} ) sit_copy_logs sit_setperms