KSensors package

Postate qui se avete consigli per migliorare i pacchetti disponibili in questo sito o se avete problemi con installazione, funzionamento o altro.

Moderatore: Staff

Regole del forum
1) Citare in modo preciso il nome del pacchetto.
2) Specificare se discussione/suggerimento o richiesta d'aiuto.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Rispondi
Avatar utente
Trotto@81
Iper Master
Iper Master
Messaggi: 3559
Iscritto il: sab 26 giu 2004, 0:00
Nome Cognome: Andrea
Slackware: Slackware64 14.2 bet
Kernel: default
Desktop: KDE 4.14.14
Località: Monasterace M. (RC)
Contatta:

KSensors package

Messaggio da Trotto@81 »

Mi sono accorto della mancanza di questo package nei repository di slacky e mi sono apprestato a scrivere un semplice slackbuild per pacchettizzarlo. Il pacchetto richiede lm_sensors e un kernel con i driver i2c compilati come moduli.

Codice: Seleziona tutto

#!/bin/bash
# Semplice Slackbuild basato su Salckware 11.0
# http://ksensors.sourceforge.net

CWD=`pwd`
if [ "$TMP" = "" ]; then
	TMP=/tmp
fi

PKG=$TMP/package-ksensors	
NAME=ksensors
VERSION=0.7.3
ARCH=i486
BUILD=1at

if [ ! -d $TMP ]; then
	mkdir -p $TMP
fi

if [ ! -d $PKG ]; then 
	mkdir -p $PKG
fi

cd $TMP
tar xvzf $CWD/$NAME-$VERSION.tar.gz
cd $NAME-$VERSION
./configure --prefix=`kde-config --prefix`

make
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$NAME-$VERSION
cp -a AUTHORS COPYING ChangeLog Doxyfile FAQ INSTALL NEWS README TODO $PKG/usr/doc/$NAME-$VERSION


( cd $PKG 
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null 
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)

mkdir $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
chown -R root:root $PKG
chmod 644 $PKG/usr/doc/$NAME-$VERSION/*

cd $PKG
makepkg -l y -c n $NAME-$VERSION-$ARCH-$BUILD.tgz

mv $NAME-$VERSION-$ARCH-$BUILD.tgz $CWD

if [ "$1" = "--cleanup" ]; then 
	rm -rf $TMP/$NAME-$VERSION
	rm -rf $PKG
fi
e lo slack-desc:

Codice: Seleziona tutto

# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in.  You must
# make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':'.

        |-------handy-ruler----------------------------------------------------|
ksensors: ksensors 0.7.3
ksensors:
ksensors: KSensors is a nice lm-sensors frontend for the K Desktop Environment.
ksensors:
ksensors:
ksensors:
ksensors:
ksensors:
ksensors:
ksensors:
ksensors: Pacchetto creato da Trotto@81.

Avatar utente
submax82
Staff
Staff
Messaggi: 3202
Iscritto il: mer 31 ago 2005, 0:00
Desktop: xfce
Distribuzione: SalixOS
Contatta:

Messaggio da submax82 »

non è per fare polemica ... ma invialo via mail qui packages@slacky.it, come scritto su slacky :roll:

ottimo lavoro ;)

Avatar utente
Trotto@81
Iper Master
Iper Master
Messaggi: 3559
Iscritto il: sab 26 giu 2004, 0:00
Nome Cognome: Andrea
Slackware: Slackware64 14.2 bet
Kernel: default
Desktop: KDE 4.14.14
Località: Monasterace M. (RC)
Contatta:

Messaggio da Trotto@81 »

scusatemi non ci avevo fatto caso.

Rispondi