From 9ed605710d1acdb16a12b47a2c83474cebd5c819 Mon Sep 17 00:00:00 2001 From: rhatto Date: Thu, 18 Jan 2007 01:54:06 +0000 Subject: lots of changes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@108 04377dda-e619-0410-9926-eae83683ac58 --- src/mkjail | 16 ----------- src/simplaret | 91 ++++++++++++++++------------------------------------------- 2 files changed, 24 insertions(+), 83 deletions(-) (limited to 'src') diff --git a/src/mkjail b/src/mkjail index 509bde3..49c6c8a 100755 --- a/src/mkjail +++ b/src/mkjail @@ -16,22 +16,6 @@ # this program; if not, write to the Free Software Foundation, Inc., 59 Temple # Place - Suite 330, Boston, MA 02111-1307, USA # -# Under the config file, adjust this to where your things live, for example: -# -# JAIL_ROOT="/vservers" # default folder where jails lives -# STORAGE="/var/simplaret" # place where simplaret host its packages -# SIMPLARET_CLEAN="1" # delete downloaded packages before installation -# SIMPLARET_DELETE_DOWN="1" # delete donwloaded packages after installation -# SIMPLARET_DELETE_DURING="1" # delete each package rigth after its installation -# SIMPLARET_UPDATE="0" # simplaret --update before get the packages -# SIMPLARET_PURGE_WEEKS="N" # purge cached packages older than N weeks -# PATCHES_DIR=/var/simplaret/patches" # where your patches lives -# -# todo: - list of packages that could not be installed -# - use swaret just for network mirrors -# - installation order -# - optionally execute chroot-upgrade after installation -# COMMON="/usr/libexec/simplepkg/common.sh" diff --git a/src/simplaret b/src/simplaret index c47e093..fd5a8b3 100755 --- a/src/simplaret +++ b/src/simplaret @@ -16,10 +16,16 @@ # Place - Suite 330, Boston, MA 02111-1307, USA # -SIMPLARET_CONF="/etc/simplepkg/simplepkg.conf" REPOS_CONF="/etc/simplepkg/repos.conf" COMMON="/usr/libexec/simplepkg/common.sh" +if [ -f "$COMMON" ]; then + source $COMMON +else + echo "error: file $COMMON found, check your `basename $0` installation" + exit 1 +fi + function simplaret_usage { echo "usage: [ARCH=otherarch] [VERSION=otherversion] `basename $0`