milis/talimatname/genel/n/netdiscover/talimat

35 lines
1000 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: DHCP sunucuları olmayan kablosuz ağlar için de geliştirilen arp protokolüne dayalı ağ adresi bulma aracıdır.
# URL: http://nixgeneration.com/~jaime/netdiscover/
# Paketçi: yakar
# Gerekler: libpcap libnet
# Grup: ağ güvenlik
isim=netdiscover
surum=0.3
devir=1
kaynak=(https://sourceforge.net/projects/${isim}/files/${isim}/0.3-pre-beta7-LINUXONLY/${isim}-0.3-pre-beta7-LINUXONLY.tar.gz::$isim-$surum.tar.gz
http://kaynaklar.milislinux.org/oui.tar.xz)
derle() {
cd "$SRC"/netdiscover-0.3-pre-beta7
patch -p1 -i ../oui.patch
./configure --sbindir=/usr/bin --prefix=/usr --sysconfdir=/etc/
make || return 1
make DESTDIR="$PKG" install || return 1
rm -rf "$PKG"/usr/share/doc
# desktop
mkdir -p "$PKG/usr/share/applications/"
cat > $PKG/usr/share/applications/$isim.desktop << BASLA
[Desktop Entry]
Name=Netdiscover
Exec=gksu "sh -c "netdiscover;${SHELL:-bash}""
Terminal=true
Icon=netdiscover
Type=Application
Categories=Network;X-Komutan;
Version=1.0
BASLA
}