summaryrefslogtreecommitdiffstats
path: root/libpcap/Pkgfile
blob: a2a4a5b39c2d4b3ed83ffcca9d2478f0808d209a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Description: Fourni les fonctions niveau utilisateur pour le fitrage de paquets
# URL: http://www.tcpdump.org
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch

name=libpcap
version=1.2.1
release=1
source=(http://www.tcpdump.org/release/$name-$version.tar.gz)

build() {
	cd $name-$version
	install -d -m755 $PKG/usr/bin
#	sed -i '/ln [^-][^s]/s/ln/ln -s/' Makefile.in
	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--enable-ipv6
	make
	make DESTDIR=$PKG install 
	rm -rf $PKG/usr/lib/libpcap.a

	# Compatibilité descendante , programme souvent vu comme net/bpf.h
  	mkdir -p $PKG/usr/include/net
  	cd $PKG/usr/include/net
  	ln -s ../pcap-bpf.h bpf.h

# install-shared
#	ln -s $name.so.$version $PKG/usr/lib/$name.so.1
#	ln -s $name.so.$version $PKG/usr/lib/$name.so
}