#!/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: #DEP:linux_src #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=ifenslave #Version of the sourcefiles VER=`uname -r|sed 's/-/_/'` #Architecture that the created binaries run on. #Use noarch for scripts. ARCH=`uname -m` #from this point on, exit on errors: set -e ########Build and create the pacakge. #Uncomment the stuff that you dont want or need mkdir -p /tmp/pkg/sbin gcc -Wall -Wstrict-prototypes -O -I/usr/src/linux/include /usr/src/linux/Documentation/networking/ifenslave.c -o /tmp/pkg/sbin/ifenslave || exit 1 chmod 755 /tmp/pkg/sbin/* #strip bins and other stuff syn3_strip /tmp/pkg || exit 1 #make main package syn3_makepkg /tmp/pkg $NAME $VER $ARCH || exit 1