milis/talimatname/genel/n/nethogs/talimat

24 lines
676 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: süreç bazlı net kullanım grafik göstericisi
# URL: https://github.com/raboof/nethogs
# Paketçi: milisarge
# Gerekler: libpcap
isim=nethogs
surum=0.8.5
devir=1
kaynak=(https://github.com/raboof/nethogs/archive/v$surum.tar.gz)
derle() {
cd "$SRC/$isim-$surum"
sed -i 's|/sbin|/bin|' src/MakeApp.mk
sed -i 's|/local||' Makefile
unset CFLAGS
unset CXXFLAGS
make prefix="/usr"
make prefix="/usr" libnethogs
make prefix="/usr" DESTDIR="$PKG" install
make prefix="/usr" DESTDIR="$PKG" install_lib
install -Dm755 src/libnethogs.h "$PKG/usr/include/libnethogs.h"
ln -s "/usr/lib/libnethogs.so.$surum" "$PKG/usr/lib/libnethogs.so"
}