Ensuite, tu crées un fichier slack-desk avec par exemple le contenu suivant (la ligne #-- fin de fichier n'est pas à inclure) :
iftop: iftop : suivi des connections réseaux
iftop:
iftop: Cet outils affiche les connections réseaux et assure un suivi de
iftop: consommation de bande passante
iftop:
iftop: Utilise les bibliothèques :
iftop: libm libncurses libpthreads libgpm
iftop:
iftop:
iftop:
iftop:i
# --fin de fichier
Ensuite, tu crées un fichier iftop.SlackBuild exécutable avec le contenu suivant :
#!/bin/sh
CWD=`pwd`
PKG=/tmp/package-iftop
VERSION=0.17
ARCH=${ARCH:-i486}
BUILD=001
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
elif [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2"
fi
# Ton paquet n'est pas adapté à ta version de slackware
Posté par slack . En réponse au message Manque de packages. Évalué à 1.
Pour obtenir un paquet convenable, charge dans un répertoire de travail les sources de iftop que tu trouveras à l'adresse :
http://www.ex-parrot.com/~pdw/iftop/download/?M=D
Ensuite, tu crées un fichier slack-desk avec par exemple le contenu suivant (la ligne #-- fin de fichier n'est pas à inclure) :
iftop: iftop : suivi des connections réseaux
iftop:
iftop: Cet outils affiche les connections réseaux et assure un suivi de
iftop: consommation de bande passante
iftop:
iftop: Utilise les bibliothèques :
iftop: libm libncurses libpthreads libgpm
iftop:
iftop:
iftop:
iftop:i
# --fin de fichier
Ensuite, tu crées un fichier iftop.SlackBuild exécutable avec le contenu suivant :
#!/bin/sh
CWD=`pwd`
PKG=/tmp/package-iftop
VERSION=0.17
ARCH=${ARCH:-i486}
BUILD=001
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
elif [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2"
fi
rm -rf $PKG
mkdir -p $PKG
cd /tmp
rm -rf iftop-$VERSION
tar xzvf $CWD/iftop-$VERSION.tar.gz
cd iftop-$VERSION
chown -R root.root .
#find . -perm 777 -exec chmod 755 {} \;
#find . -perm 664 -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--build $ARCH-slackware-linux | less
make
make check
make install DESTDIR=$PKG
cd $PKG
chown -R root.bin $PKG/usr/bin $PKG/bin
( 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
)
gzip -9 $PKG/usr/man/man?/*.?
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
makepkg -l y -c n ../iftop-$VERSION-$ARCH-$BUILD.tgz
# --fin de fichier
Enfin, exécute sous la compte root iftop.SlackBuild. Tu obtiendras un beau paquet tout neuf.