Rilasciata la 1.0rc1
pacchetto
sorgenti
sotto github
su sourceforge
Testata con i seguenti repository:
Supports GPG
slackpkgplus: http://slakfinder.org/slackpkg+/
multilib: http://taper.alienbase.nl/mirrors/peopl ... .0,current}/
alienbob: http://taper.alienbase.nl/mirrors/peopl ... x86,x86_64}/
ktown: http://taper.alienbase.nl/mirrors/alien ... x86,x86_64}/
restricted: http://taper.alienbase.nl/mirrors/peopl ... x86,x86_64}/
slacky: http://repository.slacky.eu/slackware{,64}-{13.37,14.0}/
zerouno: http://www.z01.eu/repo-slack/slackware64-current/
mled: http://www.microlinux.fr/slackware/MLED ... 32,64}bit/
mles: http://www.microlinux.fr/slackware/MLES ... 32,64}bit/
mles: http://www.microlinux.fr/slackware/MLWS ... 32,64}bit/
msb: http://slackware.org.uk/msb/14.0/1.6/{x86,x86_64}/
slackers: http://www.slackers.it/repository/
Does NOT supports GPG
salixos(*): http://download.salixos.org/{i486,x86_64}/{13.37,14.0}/
salixext: http://people.salixos.org/ralvex/reposi ... 6_64/14.0/
rlworkman: http://rlworkman.net/pkgs/{13.37,14.0}/
slackel: http://www.slackel.gr/repo/{i486,x86_64}/current/
v. anche linuxquestions e alienbob blog
======= Post Originale =======
Ho fatto un plugin per slackpkg che aggiunge il supporto per i repository slacky.eu
Si, va a svantaggio di slackyd, lo so, ma volevo uno strumento unico per installazione e aggiornamento (e l'aggiornamento di slackware non lo faccio con slackyd), anche se mi perdo la gestione delle dipendenze.
La decisione del nome (perchè probabilmente lo pacchettizzerò) è stata difficile (magari aiutatemi):
slackpkg+
slackypkg
slackpkg-slacky
fondamentalmente si tratta di un plugin per pacchetti slacky (-Nsl-), quindi:
slackpkg+sl
Non è invasivo in quanto non va fatta alcuna modifica ai file di slackpkg.
Ecco il plugin:
/etc/slackpkg/slackypkg.conf:
Codice: Seleziona tutto
# Set to 'off' to disable slacky plugin
SLACKY=on
# This overwrite PRIORITY of slackpkg.conf
SLACKYPRIORITY=( patches %PKGMAIN extra pasture testing slacky )
# Use this if you want to overwrite slackware packages with slacky packages
#SLACKYPRIORITY=( slacky patches %PKGMAIN extra pasture testing )
# Please uncomment a mirror
#SLACKYMIRROR=http://repository.slacky.eu
SLACKYMIRROR=http://darkstar.ist.utl.pt/slackware/addon/slacky
SLACKVER=auto
#SLACKVER=slackware-13.37
#SLACKVER=slackware64-13.37
#SLACKVER=slackware-13.1
#SLACKVER=slackware64-13.1
Codice: Seleziona tutto
if [ -e /etc/slackpkg/slackypkg.conf ];then
. /etc/slackpkg/slackypkg.conf
fi
if [ "$SLACKY" = "on" ];then
# If CHECKGPG is "on", the system will FAIL the GPG signature of slacky repository
# Use MD5 check instead
CHECKGPG=off
for i in 0 1 2 3 4 5 ; do
if [ "${SLACKYPRIORITY[$i]}" = "%PKGMAIN" ]; then
PRIORITY[$i]=$PKGMAIN
else
PRIORITY[$i]=${SLACKYPRIORITY[$i]}
fi
done
if [ "$SLACKVER" = auto ];then
SLACKVER=slackware$(ls /var/log/packages/aaa_base-*|grep -o 64)-$(ls /var/log/packages/aaa_base-*|sed -r 's/.*aaa_base-([^-]+)-.*/\1/')
fi
SLACKYSOURCE=$SLACKYMIRROR/$SLACKVER/
function getfile(){
local URLFILE
URLFILE=$1
URLFILE=`echo $1|sed -r 's#/(development|games|graphic|hardware|libraries|multimedia|network|security|system|utilities)/#/slacky/\1/#' `
URLFILE=`echo $URLFILE|sed "s#^.*/slacky/#$SLACKYSOURCE#"`
echo -e "\t\t\tDownloading $URLFILE..."
$DOWNLOADER $2 $URLFILE
if [ $(basename $1) = "CHECKSUMS.md5" ];then
$DOWNLOADER $2-slacky $SLACKYSOURCE/CHECKSUMS.md5
egrep -e ^[a-f0-9]{32} $2-slacky >> $2
fi
if [ $(basename $1) = "ChangeLog.txt" ];then
$DOWNLOADER $2-slacky $SLACKYSOURCE/ChangeLog.txt
head -1 $2-slacky >> $2
fi
}
if [ -e /var/lib/slackpkg/pkglist ];then
tail -1 /var/lib/slackpkg/pkglist|grep -q ^slacky
if [ $? -ne 0 ];then
sed -r -i.bck \
's/^(development|games|graphic|hardware|libraries|multimedia|network|security|system|utilities)/slacky/' \
/var/lib/slackpkg/pkglist
fi
fi
fi
Codice: Seleziona tutto
# chmod +x /usr/libexec/slackpkg/functions.d/slacky-functions.sh
# slackpkg update
# slackpkg upgrade-all
┌─────────────────────────────upgrade────────────────────────────────â”
│ Choose packages to upgrade: │
│ ┌────────────────────────────────────────────────────────────────┠│
│ │ [*] mozilla-firefox-5.0-x86_64-1.txz │ │
│ │ [*] pinfo-0.6.9-x86_64-1sl.txz │ │
│ │ [*] slackyd-1.0-x86_64-1sl.txz │ │
│ │ [*] spkg-1.0rc13-x86_64-3sl.txz │ │
├─└────────────────────────────────────────────────────────────────┘─┤
│ < OK > <Cancel> │
└────────────────────────────────────────────────────────────────────┘
Ovviamente, come tutti i software, non è bug esente
Aspetto feedback (prima di pacchettizzarlo)
Ciao
01