added sit_postinst for final messages etc. after installation is finished
This commit is contained in:
parent
6da3aaaa36
commit
5f6afe13b4
2 changed files with 17 additions and 6 deletions
22
functions.sh
22
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() {
|
src_posttest() {
|
||||||
/bin/true
|
/bin/true
|
||||||
}
|
}
|
||||||
|
@ -107,15 +117,15 @@ sit_posttest() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
src_install() {
|
src_postinst() {
|
||||||
make install
|
/bin/true
|
||||||
}
|
}
|
||||||
sit_install() {
|
|
||||||
sit_info "Installing package ..."
|
sit_postinst() {
|
||||||
cd ${BUILDDIR}
|
src_postinst || sit_fail "Post installation failed"
|
||||||
src_install || sit_fail "Install failed"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
sit_copy_logs() {
|
sit_copy_logs() {
|
||||||
if [ ! -z $LOGDIR ] ; then
|
if [ ! -z $LOGDIR ] ; then
|
||||||
cd $LOGDIR
|
cd $LOGDIR
|
||||||
|
|
1
sit
1
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_pretest 2>&1 | tee "$LOGDIR/pretest.log"; ( exit ${PIPESTATUS[0]} )
|
||||||
sit_install 2>&1 | tee "$LOGDIR/make_install.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_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_copy_logs
|
||||||
sit_setperms
|
sit_setperms
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue