sbbuilder-buildbot-patching / templates / header

# This script assumes it will be launched within "/NAME/VERSION/src" dir.
# With all sources in "src" Your Vector Linux .txz package, slack-desc,
# and slack-required will be found in "VERSION" dir. The extraction and
# build will be in a temp dir created in "NAME" dir, and then removed on exit.
# Comment out second to last line to keep this dir intact.
# This Template was compiled from the contributions of many users of the Vector
# Linux forum at and from tidbits collected 
# from all over the internet. 
# Generated by sbbuilder-[% sbbversion %], written by Rodrigo Bistolfi 
# (rbistolfi) and Raimon Grau Cuscó (Kidd) for VectorLinux.
# Please put your name below if you add some original scripting lines.

NAME="[% package %]"            #Enter package Name!
VERSION=${VERSION:-"[% version %]"}      #Enter package Version!
VER=$(echo $VERSION|sed 's/-/_/') #this fixes - in version
VL_PACKAGER=${VL_PACKAGER:-"[% user %]"}   #Enter your Name!
LINK=${LINK:-"[% link %]"}  #Enter URL for package here!

BUILDNUM=${BUILDNUM:-"[% build %]"}
VL_VERSION=${VL_VERSION:-"$(ls /var/log/packages/|grep vlconfig2|cut -d "-" -f4|cut -c 2-5)"}
ARCH=${ARCH:-"[% arch %]"}
CONFIG_OPTIONS=${CONFIG_OPTIONS:-"[% configure_options %]"}
ADDRB=${ADDRB:-"[% add %]"} #Add deps that need to be added to the slack-required file here
EXRB=${EXRB:-"[% exclude %]"} #Add deps that need to be excluded from the slack-required file here
MAKEDEPENDS=${MAKEDEPENDS:-""}# Add deps needed TO BUILD this package here.

# DO NOT EXECUTE if NORUN is set to 1
if [ "$NORUN" != "1" ]; then

cd ../
cd $CWD
mkdir -p $RELEASEDIR/tmp

if [ $UID != 0 ]; then
   echo "You are not authorized to run this script. Please login as root"
   exit 1

if [ ! -x /usr/bin/requiredbuilder ]; then
   echo "Requiredbuilder not installed, or not executable."
   exit 1

if [ $VL_PACKAGER = "YOURNAME" ]; then
   echo 'Who are you?
   Please edit VL_PACKAGER=${VL_PACKAGER:-YOURNAME} in this script.
   Change the word "YOURNAME" to your VectorLinux packager name.
   You may also export VL_PACKAGER, or call this script with
   exit 1
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.