Live Support My forum, my way! Il forum dei newsgroup: Linux » [SLACKWARE&SLACKY] slackpkg+sl, ovvero slackpkg per slacky.eu
My forum, my way! Il forum dei newsgroup
Fast Uncompromising Discussions.Newsgroup FUDforum will get your users talking.

Loading
Utenti      F.A.Q.    Registrati    Login    Home
Home » Computer » Linux » [SLACKWARE&SLACKY] slackpkg+sl, ovvero slackpkg per slacky.eu
[SLACKWARE&SLACKY] slackpkg+sl, ovvero slackpkg per slacky.eu [messaggio #40316] mar, 12 luglio 2011 18:47 Messaggio precedente
Matteo Rossini  è attualmente disconnesso Matteo Rossini
Messaggi: 10
Registrato: giugno 2011
Junior Member
Ho fatto un plugin per slackpkg che aggiunge il supporto per i
repository slacky.eu

Si, va a svantaggio di slackyd, ma volevo uno strumento unico, ma lo
volevo.

Appena slacky torna up magari lo pacchettizzo o lo metto nel wiki.
Ero indeciso se chiamare il pacchetto slackpkg+ oppure slackypkg o
slackpkg-slacky. Alla fine l'ho chiamato slackpkg+sl


La modifica non è invasiva, nel senso che non si va a toccare nessun
file di slackpkg ufficiale (nemmeno il file di configurazione), così
un upgrade di slackpkg non nulla le funzionalità apportate da slackpkg
+sl.

Nel frattempo:

/etc/slackpkg/slackypkg.conf:

SLACKY=on

# 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


/usr/libexec/slackpkg/functions.d/slacky-functions.sh:

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
PRIORITY[5]=slacky

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)/#/sl acky/\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
 
Leggi messaggio
Leggi messaggio
Leggi messaggio
Argomento precedente:u-lite con XP: spazio non sufficiente
Argomento successivo:cambiare permissions
Vai al forum:
  


Ora corrente: gio lug 18 03:25:17 CEST 2024

Tempo totale richiesto per generare la pagina: 0.01707 secondi
.:: Contatti :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Live Support