From a45b78131f8d14d100665363fdf2cc2b797314c1 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 8 Dec 2006 00:23:15 +0000 Subject: simplaret: converted some functions to the new format git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@41 04377dda-e619-0410-9926-eae83683ac58 --- conf/repos.conf.new | 1 + conf/simplepkg.conf.new | 7 +- src/simplaret | 290 ++++++++++++++++++++---------------------------- 3 files changed, 129 insertions(+), 169 deletions(-) diff --git a/conf/repos.conf.new b/conf/repos.conf.new index 9da9f67..9ecfab9 100644 --- a/conf/repos.conf.new +++ b/conf/repos.conf.new @@ -5,6 +5,7 @@ # root repositories ROOT-i386="tds%http://slackware.mirrors.tds.net/pub/slackware/" ROOT-i386="sarava%http://slack.sarava.org/slackware/" +ROOT-x86_64="sarava%http://slack.sarava.org/slamd64/" ROOT-x86_64="slackadelic%http://mirror1.slackadelic.com/slamd64/" ROOT-x86_64="heanet%http://ftp.heanet.ie/pub/slamd64/" diff --git a/conf/simplepkg.conf.new b/conf/simplepkg.conf.new index 50db875..5d01f59 100644 --- a/conf/simplepkg.conf.new +++ b/conf/simplepkg.conf.new @@ -11,12 +11,15 @@ DEFAULT_ARCH="i386" DEFAULT_VERSION="10.2" STORAGE="/var/simplaret/packages" PASSIVE_FTP="1" +ROOT_PRIORITY="patches slackware extra testing pasture" # ROOT repository package priority # Enabling this option, jail-upgrade will look at your # standard repositories for new packages; if it find a package # with different version of your current installed package and # also this package isnt in the packages folder, then the new -# package is apllied; if in doubt, just say no or leave blank. -# Otherwise set it either to "yes" or "1" +# package is applied; if in doubt, just say no or leave blank. +# Otherwise set it either to "yes" or "1" and remember that if +# enables this feature can cause problems if you use more than +# one REPOS definition for each ARCH and VERSION. CONSIDER_ALL_PACKAGES_AS_PATCHES="0" diff --git a/src/simplaret b/src/simplaret index 37f768a..b7c6216 100755 --- a/src/simplaret +++ b/src/simplaret @@ -15,30 +15,8 @@ # this program; if not, write to the Free Software Foundation, Inc., 59 Temple # Place - Suite 330, Boston, MA 02111-1307, USA # -# config file simplepkg.conf: -# -# DEFAULT_ARCH="i386" -# DEFAULT=VERSION="10.2" -# STORAGE="/storage/packages" -# PASSIVE_FTP="1" -# -# config file repos.conf: -# -# ROOT-i386="sarava%http://slack.sarava.org/packages/slackware/" -# REPOS-i386-10.2="sarava%http://slack.sarava.org/packages/slackware/slackware-10.2/" -# ROOT-x86_64="slackadelic%http://mirror1.slackadelic.com/slamd64/" -# REPOS-x86_64-10.2="sarava%http://slack.sarava.org/packages/slamd64/slamd64-10.2/" -# -# usage: -# -# --update: downloads package list for each package -# --search: search for packages -# --get [-a]: donwload a package -# --get-pacthes: download patches -# --upgrade: download and aplly patches -# --purge [-w N]: purge package cache -# +DEFAULT_VERSION="11.0" SIMPLARET_CONF="/etc/simplepkg/simplepkg.conf" REPOS_CONF="/etc/simplepkg/repos.conf" COMMON="/usr/libexec/simplepkg/common.sh" @@ -47,42 +25,36 @@ FILELIST="FILELIST.TXT CHECKSUMS.md5" function simplaret_usage { echo "usage: [ARCH=otherarch] [VERSION=otherversion] `basename $0`