From 546354758b9a532912651b047fab6a23f0cb0a3c Mon Sep 17 00:00:00 2001 From: rhatto Date: Mon, 31 Jul 2006 20:54:39 +0000 Subject: initial import git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@1 04377dda-e619-0410-9926-eae83683ac58 --- simplaret | 482 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 482 insertions(+) create mode 100755 simplaret (limited to 'simplaret') diff --git a/simplaret b/simplaret new file mode 100755 index 0000000..ed98402 --- /dev/null +++ b/simplaret @@ -0,0 +1,482 @@ +#!/bin/bash +# +# simplaret v0.1.1: simplepkg's package grabber +# 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="http://slack.sarava.org/packages/slackware" +# REPOS-i386-10.2="slack.sarava.org%http://slack.sarava.org/packages/slackware/slackware-10.2/" +# ROOT-x86_64="http://darkstar.ist.utl.pt/pub/slamd64/" +# REPOS-x86_64-10.2="slack.sarava.org%http://slack.sarava.org/packages/slamd64/slamd64-10.2/" +# +# usage: +# +# --update: baixa lista de pacotes de cada repositorio +# --search: busca +# --get [-a]: baixa um unico pacote +# --get-pacthes: baixa os patches e faz o checksum / gpg +# --purge [-w N]: remove o cache +# +# precedence: +# +# - checa antes o repositorio raiz, caso o pacote nao seja encontrado segue na ordem das +# definicoes REPOS do arquivo de configuracao +# + +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`