milis/talimatname/genel/n/nethogs/talimat

24 lines
676 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: süreç bazlı net kullanım grafik göstericisi
2017-06-15 05:17:09 +02:00
# URL: https://github.com/raboof/nethogs
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: libpcap
2017-06-15 05:17:09 +02:00
2017-10-28 14:10:23 +02:00
isim=nethogs
surum=0.8.5
devir=1
kaynak=(https://github.com/raboof/nethogs/archive/v$surum.tar.gz)
2017-06-15 05:17:09 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd "$SRC/$isim-$surum"
2017-06-15 05:17:09 +02:00
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"
2017-10-28 14:10:23 +02:00
ln -s "/usr/lib/libnethogs.so.$surum" "$PKG/usr/lib/libnethogs.so"
2017-06-15 05:17:09 +02:00
}