#!/bin/bash #Gebruik deze file als voorbeeld. Plaats de source tar.gz file in de zelfde directory als deze slackbuild #Met de NEED en DEP opties is het mogelijk om build dependencies aan te geven. #Voor de meeste packages hoeft er verder niks aan de variabellen veranderd te worden. ##################################### Build dependency info: #Strict build-dependencies #Our package will be automaticly rebuilded if there is a major change in a DEP package. #(this is recommended for most dependencys) ##DEP:linux ##DEP:linux_src ##DEP:openldap #Loose build-dependencies #The package will be installed in the buildroot during buidling, but no automatic rebuild will occur. #(not recommended) ##NEED:doxygen #######Essential package info. #Change these if autodetection fails. #Name of the Syn-3 package that we are going to create NAME=`basename $0|sed 's/.SlackBuild//'` #Version of the sourcefiles VER="1.0" #Architecture that the created binaries run on. #Use noarch for scripts. ARCH=`uname -m` #from this point on, exit on errors: set -e mkdir -p /tmp/pkg/var/lib/asterisk/scripts &>/dev/null || exit 1 cp fax2email /tmp/pkg/var/lib/asterisk/scripts/fax2email.new || exit 1 cp fax2email.README /tmp/pkg/var/lib/asterisk/scripts || exit 1 mkdir -p /tmp/pkg/etc/postinst.d || exit 1 cp post.fax2email /tmp/pkg/etc/postinst.d || exit 1 chmod +x /tmp/pkg/etc/postinst.d/post.fax2email || exit 1 mkdir -p /tmp/pkg/etc/cron.daily/ || exit 1 cp faxspool-cleaner.sh /tmp/pkg/etc/cron.daily/ || exit 1 chmod +x /tmp/pkg/etc/cron.daily/faxspool-cleaner.sh || exit 1 #make main package syn3_makepkg /tmp/pkg $NAME $VER $ARCH || exit 1