diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-12-03 23:47:42 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-12-03 23:47:42 +0000 |
commit | 66f0a5670afc97c1abacbb22e5b372c438cc0c69 (patch) | |
tree | 8a7a2d84733b339b2f136a13117e7f89b3c3e908 /trunk | |
parent | 5f631dc3ab9adc23f29573e5772088360dd24707 (diff) | |
download | simplepkg-66f0a5670afc97c1abacbb22e5b372c438cc0c69.tar.gz simplepkg-66f0a5670afc97c1abacbb22e5b372c438cc0c69.tar.bz2 |
simplepkg 0.6pre11
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@467 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk')
-rw-r--r-- | trunk/conf/repos.conf.new | 10 | ||||
-rw-r--r-- | trunk/lib/common.sh | 4 | ||||
-rw-r--r-- | trunk/mkbuild/generic.mkSlackBuild | 2 | ||||
-rw-r--r-- | trunk/mkbuild/perl.mkSlackBuild | 2 | ||||
-rwxr-xr-x | trunk/src/simplaret | 2 |
5 files changed, 15 insertions, 5 deletions
diff --git a/trunk/conf/repos.conf.new b/trunk/conf/repos.conf.new index 187377c..02ded08 100644 --- a/trunk/conf/repos.conf.new +++ b/trunk/conf/repos.conf.new @@ -6,11 +6,17 @@ # root repositories ROOT-i386="tds%http://slackware.mirrors.tds.net/pub/slackware/" ROOT-i386="sarava%http://slack.sarava.org/slackware/" +ROOT-powerpc="workaround%http://slackintosh.workaround.ch/pub/slackintosh/" +ROOT-s390="ibiblio%http://distro.ibiblio.org/pub/linux/distributions/slack390/" 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/" -ROOT-powerpc="workaround%http://slackintosh.workaround.ch/pub/slackintosh/" -ROOT-s390="ibiblio%http://distro.ibiblio.org/pub/linux/distributions/slack390/" +# If you want to use Bluewhite64 instead of Slamd64, please uncoment the +# next line and make sure to comment out all other slamd64 repository definitions +#ROOT-x86_64="bluewhite64%http://mirror.inode.at/data/bluewhite64/" +# If you want to use Sflack instead of Slamd64, please uncoment the +# next line and make sure to comment out all other slamd64 repository definitions +#ROOT-x86_64="bluewhite64%http://webftp.slackarea.net/pub/sflack/" # noarch NOARCH="sarava%http://slack.sarava.org/packages/noarch" diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index 2fcdb12..3a437c8 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -307,6 +307,8 @@ function default_version { cat $1/etc/slamd64-version | awk '{ print $2 }' | sed -e 's/.0$//' elif [ -f "$1/etc/bluewhite64-version" ]; then cat $1/etc/bluewhite64-version | awk '{ print $2 }' | sed -e 's/.0$//' + elif [ -f "$1/etc/sflack-version" ]; then + cat $1/etc/sflack-version | awk '{ print $2 }' | sed -e 's/.0$//' else aaa_base="`basename $(ls $1/var/log/packages/aaa_base-[0-9]* 2> /dev/null)`" echo `package_version $aaa_base` @@ -326,6 +328,8 @@ function default_arch { arch="`cat $1/etc/slamd64-version | awk '{ print $3 }' | sed -e 's/(//' -e 's/)//'`" elif [ -f "$1/etc/bluewhite64-version" ]; then arch="`cat $1/etc/bluewhite64-version | awk '{ print $3 }' | sed -e 's/(//' -e 's/)//'`" + elif [ -f "$1/etc/sflack-version" ]; then + arch="`cat $1/etc/sflack-version | awk '{ print $3 }' | sed -e 's/(//' -e 's/)//'`" else aaa_base="`basename $(ls $1/var/log/packages/aaa_base-[0-9]* 2> /dev/null)`" echo `package_arch $aaa_base` diff --git a/trunk/mkbuild/generic.mkSlackBuild b/trunk/mkbuild/generic.mkSlackBuild index cc388d6..4886d6b 100644 --- a/trunk/mkbuild/generic.mkSlackBuild +++ b/trunk/mkbuild/generic.mkSlackBuild @@ -1,7 +1,7 @@ ################################################################# ## Generic template for SlackBuilds ## -## Version 0.9.1 - Luis ( luis at riseup d0t net) +## Version 0.9.2 - Luis ( luis at riseup d0t net) ## Alves ( rudsonalves at yahoo d0t com d0t br ) ################################################################# #!/bin/bash diff --git a/trunk/mkbuild/perl.mkSlackBuild b/trunk/mkbuild/perl.mkSlackBuild index 323c515..245cd01 100644 --- a/trunk/mkbuild/perl.mkSlackBuild +++ b/trunk/mkbuild/perl.mkSlackBuild @@ -1,7 +1,7 @@ ################################################### ## Perl template for SlackBuilds ## -## Based on generic.mkSlackBuild version 0.8.1 by +## Based on generic.mkSlackBuild version 0.9.2 by ## Luis (luis at riseup d0t net) and changed by ## Rhatto (rhatto at riseup d0t net) ## diff --git a/trunk/src/simplaret b/trunk/src/simplaret index 7f96fba..ff8552a 100755 --- a/trunk/src/simplaret +++ b/trunk/src/simplaret @@ -1112,7 +1112,7 @@ case $1 in "--remove" | "remove") simplaret_req_arg $2 ; ROOT=/$ROOT removepkg $2 ;; "--help" | "help") simplaret_usage ;; *) - if echo $1 | grep -v '^--'; then + if echo $1 | grep -q -v '^--'; then simplaret_install $* else simplaret_usage |