From 52a3537b8ebca3a5146cf363ffa6d716f2b00da0 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 6 Mar 2009 02:03:53 +0000 Subject: removing old 0.6 branch git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@798 04377dda-e619-0410-9926-eae83683ac58 --- branches/0.6/utils/add-gpl | 33 ----------- branches/0.6/utils/add-slack-required | 63 --------------------- branches/0.6/utils/convert-template-scheme | 35 ------------ branches/0.6/utils/exec-slackbuild | 88 ------------------------------ branches/0.6/utils/merge-template | 37 ------------- branches/0.6/utils/metapkg | 72 ------------------------ branches/0.6/utils/searchpkg | 36 ------------ 7 files changed, 364 deletions(-) delete mode 100755 branches/0.6/utils/add-gpl delete mode 100755 branches/0.6/utils/add-slack-required delete mode 100755 branches/0.6/utils/convert-template-scheme delete mode 100755 branches/0.6/utils/exec-slackbuild delete mode 100755 branches/0.6/utils/merge-template delete mode 100755 branches/0.6/utils/metapkg delete mode 100755 branches/0.6/utils/searchpkg (limited to 'branches/0.6/utils') diff --git a/branches/0.6/utils/add-gpl b/branches/0.6/utils/add-gpl deleted file mode 100755 index 0a261e2..0000000 --- a/branches/0.6/utils/add-gpl +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# -# add-gpl is free software; you can redistribute it and/or modify it under the -# terms of the GNU General Public License as published by the Free Software -# Foundation; either version 2 of the License, or any later version. -# -# add-gpl is distributed in the hope that it will be useful, but WITHOUT ANY -# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR -# A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place - Suite 330, Boston, MA 02111-1307, USA -# -# This script should be used to add a license in scripts. -# - -script="SlackBuild" -#script="build" - -for file in `find -name "*.$script"`; do - - echo Changing $file... - package="`basename $file .$script`" - slackbuild="`basename $file`" - - string="\#\!\/bin\/bash\n\#\n# $slackbuild is free software; you can redistribute it and\/or modify it under the\n# terms of the GNU General Public License as published by the Free Software\n# Foundation; either version 2 of the License, or any later version.\n#\n# $slackbuild is distributed in the hope that it will be useful, but WITHOUT ANY\n# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n# A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License along with\n# this program; if not, write to the Free Software Foundation, Inc., 59 Temple\n# Place - Suite 330, Boston, MA 02111-1307, USA" - - sed -e "s/\#\!\/bin\/bash/$string/" $file > $file.new - cat $file.new > $file - rm $file.new - -done diff --git a/branches/0.6/utils/add-slack-required b/branches/0.6/utils/add-slack-required deleted file mode 100755 index 67804d0..0000000 --- a/branches/0.6/utils/add-slack-required +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash -# -# add-slack-required is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by the -# Free Software Foundation; either version 2 of the License, or any later version. -# -# add-slack-required is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR -# A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place - Suite 330, Boston, MA 02111-1307, USA -# -# add slack-required files in an existing repository -# by rhatto at riseup.net -# - -COMMON="/usr/libexec/simplepkg/common.sh" -BASENAME="`basename $0`" - -if [ -z "$2" ]; then - echo "usage: $BASENAME /path/to/slackbuilds /path/to/packages" - exit 1 -elif [ ! -d "$1" ]; then - echo "$BASENAME: folder not found: $1" - exit 1 -elif [ ! -d "$2" ]; then - echo "$BASENAME: folder not found: $2" - exit 1 -fi - -slackbuild="$1" -repository="$2" - -# we need the function package_name -if [ -f "$COMMON" ]; then - source $COMMON -else - echo "error: file $COMMON found, check your $BASENAME installation" - exit 1 -fi - -function search_and_copy_slackbuild { - - if [ -f "$1" ]; then - echo Copying `basename $1` to `dirname $package`/$pack.slack-required - cp $1 `dirname $package`/$pack.slack-required - svn add `dirname $package`/$pack.slack-required 2> /dev/null - fi - -} - -for package in `find $repository/ -name *tgz`; do - pack="`package_name $package`" - for build_script in `find $slackbuild/ -name $pack.SlackBuild`; do - - search_and_copy_slackbuild `dirname $build_script`/slack-required - search_and_copy_slackbuild `dirname $build_script`/$pack.slack-required - - done -done - diff --git a/branches/0.6/utils/convert-template-scheme b/branches/0.6/utils/convert-template-scheme deleted file mode 100755 index de7e507..0000000 --- a/branches/0.6/utils/convert-template-scheme +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash -# -# This software is free software; you can redistribute it and/or modify it under the -# terms of the GNU General Public License as published by the Free Software -# Foundation; either version 2 of the License, or any later version. -# -# This software is distributed in the hope that it will be useful, but WITHOUT ANY -# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR -# A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place - Suite 330, Boston, MA 02111-1307, USA -# -# script for converting simplepkg templates -# to the 0.5 own-folder format -# - -cwd="/etc/simplepkg" -cd $cwd - -for file in `ls *.template`; do - cd $cwd - template="`echo $file | cut -d . -f 1`" - mkdir templates/$template - mv $template.d templates/$template/ - mv $template.s templates/$templates/ - mv $template.template templates/$template/ - cd templates/$template/$template.s - # optional step - # if [ "$template" != "vserver" ]; then - # ln -sf ../../../defaults/templatesvserver/vserver.s/vserver.sh - # fi -done - diff --git a/branches/0.6/utils/exec-slackbuild b/branches/0.6/utils/exec-slackbuild deleted file mode 100755 index 0d92f28..0000000 --- a/branches/0.6/utils/exec-slackbuild +++ /dev/null @@ -1,88 +0,0 @@ -#!/bin/bash -x -# -# Script to execute SlackBuild and pass parameters -# -# by Rudson R. Alves -# -# Version 0.0.1 -PROG_VERSION=0.0.1 -LANG=en_US -BACK_TITLE="Exec SlackBuild $PROG_VERSION [$1]" - -if [ $# -ne 2 ]; then - echo "Use: exec-slackbuild " - exit 0 -fi - -SLACKBUILD=$1 -AUX_TMP=$2 - -# Load slackbuildrc -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# set do default null variables -[ -z $SRC_DIR ] && SRC_DIR="default" -[ -z $REPOS ] && REPOS="default" -[ -z $TMP ] && TMP="default" -[ -z $ARCH ] && ARCH="default" -[ -z $CLEANUP ] && CLEANUP="default" -[ -z $NUMJOBS ] && NUMJOBS="default" -[ -z $BUILD ] && BUILD="default" -[ -z $CONF_OPTIONS ] && CONF_OPTIONS="default" - -# Edit variables -ANS=`dialog --separate-widget "rudson" --stdout --backtitle "$BACK_TITLE" \ - --title "Set variables" --form "Use down key to more variables; default = null argument; use \" to set several arguments." \ - 19 52 11 \ - "SRC_DIR:" 1 1 "$SRC_DIR" 1 15 30 60 \ - "REPOS:" 3 1 "$REPOS" 3 15 30 60 \ - "TMP:" 5 1 "$TMP" 5 15 30 60 \ - "ARCH:" 7 1 "$ARCH" 7 15 30 60 \ - "CLEANUP:" 9 1 "$CLEANUP" 9 15 30 60 \ - "NUMJOBS:" 11 1 "$NUMJOBS" 11 15 30 60 \ - "BUILD:" 13 1 "$BUILD" 13 15 30 60 \ - "CONF_OPTIONS:" 15 1 "$CONF_OPTIONS" 15 15 30 60` -[ $? -ne 0 ] && exit 11 - -# Remove "s - SRC_DIR=`echo $ANS | awk '{print $1}' | tr -d \"` - REPOS=`echo $ANS | awk '{print $2}' | tr -d \"` - TMP=`echo $ANS | awk '{print $3}' | tr -d \"` - ARCH=`echo $ANS | awk '{print $4}' | tr -d \"` - CLEANUP=`echo $ANS | awk '{print $5}' | tr -d \"` - NUMJOBS=`echo $ANS | awk '{print $6}' | tr -d \"` - BUILD=`echo $ANS | awk '{print $7}' | tr -d \"` -CONF_OPTIONS=`echo $ANS | awk '{print $8}' | tr -d \"` - -# Set to null ("") variables with default value - [ "$SRC_DIR" = "default" ] && SRC_DIR="" - [ "$REPOS" = "default" ] && REPOS="" - [ "$TMP" = "default" ] && TMP="" - [ "$ARCH" = "default" ] && ARCH="" - [ "$CLEANUP" = "default" ] && CLEANUP="" - [ "$NUMJOBS" = "default" ] && NUMJOBS="" - [ "$BUILD" = "default" ] && BUILD="" -[ "$CONF_OPTIONS" = "default" ] && CONF_OPTIONS="" - -# Select debug level -DEBUG=`dialog --stdout --backtitle "$BACK_TITLE" \ - --cancel-label "no debug" --title "$MK_TITLE" \ - --menu "Select debug level" 10 35 3 \ - "-x" "Simple debug" \ - "-xv" "More information" \ - "none" "No debug"` - -[ $? -ne 0 -o "$DEBUG" = "none" ] && DEBUG="" - -# Check sintax from SlackBuild -sh -n $SLACKBUILD || exit 11 - -# Execute SlackBuild in background -SRC_DIR="$SRC_DIR" REPOS="$REPOS" TMP="$TMP" ARCH="$ARCH" CLEANUP="$CLEANUP" NUMJOBS="$NUMJOBS" BUILD="$BUILD" CONF_OPTIONS="$CONF_OPTIONS" sh $DEBUG $SLACKBUILD > $AUX_TMP 2>&1 & PID=$! - -# Return pid from process -echo $PID diff --git a/branches/0.6/utils/merge-template b/branches/0.6/utils/merge-template deleted file mode 100755 index 3df5f7a..0000000 --- a/branches/0.6/utils/merge-template +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# -# This software is free software; you can redistribute it and/or modify it under the -# terms of the GNU General Public License as published by the Free Software -# Foundation; either version 2 of the License, or any later version. -# -# This software is distributed in the hope that it will be useful, but WITHOUT ANY -# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR -# A PARTICULAR PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this program; if not, write to the Free Software Foundation, Inc., 59 Temple -# Place - Suite 330, Boston, MA 02111-1307, USA -# -# tip: to assemble a template from all slack tagfiles: -# -# for diskset in a ap d e f k l n t tcl x xap y; do -# lynx -dump http://slack.sarava.org/slackware/slackware-10.2/slackware/$diskset/tagfile >> slack.template -# done -# - -if [ -z "$2" ]; then - echo "usage: `basename $0`