#!/bin/bash ##DEP:drv_mISDN NAME=mISDNuser2 CWD=`pwd` VER=2_291109 PKGTMP=/tmp/pkgtmp #mkdir -p $PKGTMP/usr/lib/asterisk/modules || exit 1 tar -xzf mISDNuser-$VER.tar.gz || exit 1 cd mISDNuser || exit 1 make || exit 1 make INSTALL_PREFIX=$PKGTMP install || exit 1 ##make INSTALL_PREFIX=$PKGTMP config || exit 1 cd "$PKGTMP" || exit 1 makepkg -l n -c n $CWD/$NAME.pkg > /dev/null && echo $VER > $CWD/$NAME.version && arch > $CWD/$NAME.arch