diff options
Diffstat (limited to 'extra/tcpdump')
-rw-r--r-- | extra/tcpdump/PKGBUILD | 34 | ||||
-rw-r--r-- | extra/tcpdump/tcpdump_duplicate_executable.patch | 10 |
2 files changed, 44 insertions, 0 deletions
diff --git a/extra/tcpdump/PKGBUILD b/extra/tcpdump/PKGBUILD new file mode 100644 index 000000000..c6c455be5 --- /dev/null +++ b/extra/tcpdump/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 117379 2011-04-01 00:46:15Z giovanni $ +# Maintainer: Giovanni Scafora <giovanni@archlinux.org> +# Contributor: dorphell <dorphell@archlinux.org> + +pkgname=tcpdump +pkgver=4.1.1 +pkgrel=2 +pkgdesc="A tool for network monitoring and data acquisition" +arch=('i686' 'x86_64') +url="http://www.tcpdump.org" +license=('BSD') +depends=('libpcap' 'openssl') +source=("http://www.tcpdump.org/release/${pkgname}-${pkgver}.tar.gz" + tcpdump_duplicate_executable.patch) +md5sums=('d0dd58bbd6cd36795e05c6f1f74420b0' + 'd4c374b25d10e41b77d2c72bb9ec0d79') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # do not install tcpdump-4.1.1 executable (FS#23346) + patch -Np1 -i "${srcdir}/tcpdump_duplicate_executable.patch" + ./configure --prefix=/usr \ + --enable-ipv6 + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + + #install the license + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/extra/tcpdump/tcpdump_duplicate_executable.patch b/extra/tcpdump/tcpdump_duplicate_executable.patch new file mode 100644 index 000000000..6e27b717a --- /dev/null +++ b/extra/tcpdump/tcpdump_duplicate_executable.patch @@ -0,0 +1,10 @@ +--- a/Makefile.in 2010-04-06 03:18:35.000000000 +0200 ++++ b/Makefile.in 2011-04-01 02:39:10.000000000 +0200 +@@ -403,7 +403,6 @@ + [ -d $(DESTDIR)$(sbindir) ] || \ + (mkdir -p $(DESTDIR)$(sbindir); chmod 755 $(DESTDIR)$(sbindir)) + $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG) +- $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG).`cat ${srcdir}/VERSION` + [ -d $(DESTDIR)$(mandir)/man1 ] || \ + (mkdir -p $(DESTDIR)$(mandir)/man1; chmod 755 $(DESTDIR)$(mandir)/man1) + $(INSTALL_DATA) $(PROG).1 $(DESTDIR)$(mandir)/man1/$(PROG).1 |