#!/bin/bash # # simplaret v0.2: simplepkg's retrieval tool # feedback: rhatto at riseup.net | gpl # # Simplaret 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. # # Simplaret 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 # # 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 # SIMPLARET_CONF="/etc/simplepkg/simplepkg.conf" REPOS_CONF="/etc/simplepkg/repos.conf" COMMON="/usr/libexec/simplepkg/common.sh" function simplaret_usage { echo "usage: [ARCH=otherarch] [VERSION=otherversion] `basename $0`