[arch-commits] Commit in dsniff/repos/community-x86_64 (8 files)
Kpcyrd
kpcyrd at archlinux.org
Wed May 6 23:13:19 UTC 2020
Date: Wednesday, May 6, 2020 @ 23:13:18
Author: kpcyrd
Revision: 625219
archrelease: copy trunk to community-x86_64
Added:
dsniff/repos/community-x86_64/PKGBUILD
(from rev 625218, dsniff/trunk/PKGBUILD)
dsniff/repos/community-x86_64/dsniff-httppostfix.patch
(from rev 625218, dsniff/trunk/dsniff-httppostfix.patch)
dsniff/repos/community-x86_64/dsniff-macof-size-calculation.patch
(from rev 625218, dsniff/trunk/dsniff-macof-size-calculation.patch)
dsniff/repos/community-x86_64/dsniff-rpc.patch
(from rev 625218, dsniff/trunk/dsniff-rpc.patch)
Deleted:
dsniff/repos/community-x86_64/PKGBUILD
dsniff/repos/community-x86_64/dsniff-httppostfix.patch
dsniff/repos/community-x86_64/dsniff-macof-size-calculation.patch
dsniff/repos/community-x86_64/dsniff-rpc.patch
-------------------------------------+
PKGBUILD | 128 +++++++++++++++++-----------------
dsniff-httppostfix.patch | 40 +++++-----
dsniff-macof-size-calculation.patch | 22 ++---
dsniff-rpc.patch | 80 ++++++++++-----------
4 files changed, 135 insertions(+), 135 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-05-06 23:13:03 UTC (rev 625218)
+++ PKGBUILD 2020-05-06 23:13:18 UTC (rev 625219)
@@ -1,64 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
-# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: ViNS <gladiator at fastwebnet.it>
-
-pkgname=dsniff
-pkgver=2.4b1
-pkgrel=27
-pkgdesc='Collection of tools for network auditing and penetration testing'
-url='https://www.monkey.org/~dugsong/dsniff/'
-arch=('x86_64')
-license=('BSD')
-depends=('glibc' 'libpcap' 'openssl' 'libxmu' 'glib2' 'libnet' 'libnids' 'libtirpc')
-makedepends=('rpcsvc-proto')
-options=('!makeflags')
-source=(https://www.monkey.org/~dugsong/${pkgname}/beta/${pkgname}-${pkgver}.tar.gz
- http://ftp.de.debian.org/debian/pool/main/d/${pkgname}/${pkgname}_2.4b1+debian-28.debian.tar.xz
- dsniff-rpc.patch
- dsniff-macof-size-calculation.patch
- dsniff-httppostfix.patch)
-sha256sums=('a9803a7a02ddfe5fb9704ce86f0ffc48453c321e88db85810db411ba0841152a'
- 'b67866be5dca90a02165a3469db4286f43dc5ea6090b3a8cf5569863a1d3c3b9'
- '21b37ba4c386aa576d6829c298bdd62df6fa227e44164d9e96675e66b93bb134'
- 'd8f5cc5d14a614410a84a8eaba5a4212ee03466c4fe2fd4a634f5d7c3f688ec7'
- '3efd6ca2267540016e843af3e8d7720d888fd17a73cba410e2c68022fd3a7baf')
-
-prepare() {
- cd ${pkgname}-2.4
-
- # apply bundled patches via series
- while IFS='' read -r patch || [[ -n "${patch}" ]]; do
- msg2 "Applying patch ${patch}"
- patch -Np1 < "../debian/patches/${patch}"
- done < ../debian/patches/series
-
- # apply local patches
- for _patch in "${source[@]}"; do
- _patch=${_patch%%::*}
- if [[ "${_patch}" =~ \.patch$ ]]; then
- msg2 "Applying patch ${_patch}"
- patch -Np1 < "../${_patch}"
- fi
- done
-
- autoreconf -fiv
-}
-
-build() {
- cd ${pkgname}-2.4
- ./configure \
- --with-libtirpc \
- --prefix=/usr \
- --sbindir=/usr/bin
- make
-}
-
-package() {
- cd ${pkgname}-2.4
- make install_prefix="${pkgdir}" install
- install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
- install -Dm 644 CHANGES README -t "${pkgdir}/usr/share/doc/${pkgname}"
-}
-
-# vim: ts=2 sw=2 et:
Copied: dsniff/repos/community-x86_64/PKGBUILD (from rev 625218, dsniff/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-05-06 23:13:18 UTC (rev 625219)
@@ -0,0 +1,64 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: ViNS <gladiator at fastwebnet.it>
+
+pkgname=dsniff
+pkgver=2.4b1
+pkgrel=28
+pkgdesc='Collection of tools for network auditing and penetration testing'
+url='https://www.monkey.org/~dugsong/dsniff/'
+arch=('x86_64')
+license=('BSD')
+depends=('glibc' 'libpcap' 'openssl' 'libxmu' 'glib2' 'libnet' 'libnids' 'libtirpc')
+makedepends=('rpcsvc-proto')
+options=('!makeflags')
+source=(https://www.monkey.org/~dugsong/${pkgname}/beta/${pkgname}-${pkgver}.tar.gz
+ http://ftp.de.debian.org/debian/pool/main/d/${pkgname}/${pkgname}_2.4b1+debian-29.debian.tar.xz
+ dsniff-rpc.patch
+ dsniff-macof-size-calculation.patch
+ dsniff-httppostfix.patch)
+sha256sums=('a9803a7a02ddfe5fb9704ce86f0ffc48453c321e88db85810db411ba0841152a'
+ '3f2263452facf9f0a402497b34c7a2573da0700005bb3c7940df9c5e099b5835'
+ '21b37ba4c386aa576d6829c298bdd62df6fa227e44164d9e96675e66b93bb134'
+ 'd8f5cc5d14a614410a84a8eaba5a4212ee03466c4fe2fd4a634f5d7c3f688ec7'
+ '3efd6ca2267540016e843af3e8d7720d888fd17a73cba410e2c68022fd3a7baf')
+
+prepare() {
+ cd "${pkgname}-2.4"
+
+ # apply bundled patches via series
+ while IFS='' read -r patch || [[ -n "${patch}" ]]; do
+ echo "** Applying patch ${patch}"
+ patch -Np1 < "../debian/patches/${patch}"
+ done < ../debian/patches/series
+
+ # apply local patches
+ for _patch in "${source[@]}"; do
+ _patch=${_patch%%::*}
+ if [[ "${_patch}" =~ \.patch$ ]]; then
+ echo "** Applying patch ${_patch}"
+ patch -Np1 < "../${_patch}"
+ fi
+ done
+
+ autoreconf -fiv
+}
+
+build() {
+ cd ${pkgname}-2.4
+ ./configure \
+ --with-libtirpc \
+ --prefix=/usr \
+ --sbindir=/usr/bin
+ make
+}
+
+package() {
+ cd ${pkgname}-2.4
+ make install_prefix="${pkgdir}" install
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 CHANGES README -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
Deleted: dsniff-httppostfix.patch
===================================================================
--- dsniff-httppostfix.patch 2020-05-06 23:13:03 UTC (rev 625218)
+++ dsniff-httppostfix.patch 2020-05-06 23:13:18 UTC (rev 625219)
@@ -1,20 +0,0 @@
---- a/decode_http.c 2000-12-19 07:38:05.000000000 +0800
-+++ b/decode_http.c 2006-03-05 22:32:14.000000000 +0800
-@@ -139,14 +139,14 @@
- host = p;
- }
- else if (req[0] == 'P') {
-- if (strncmp(p, "Content-type: ", 14) == 0) {
-- if (strncmp(p + 14, "application/"
-+ if (strncasecmp(p, "Content-type: ", 14) == 0) {
-+ if (strncasecmp(p + 14, "application/"
- "x-www-form-urlencoded",
- 33) != 0) {
- query = NULL;
- }
- }
-- else if (strncmp(p, "Content-length: ", 16) == 0) {
-+ else if (strncasecmp(p, "Content-length: ", 16) == 0) {
- p += 16;
- i = atoi(p);
- if ((msg = buf_tok(&inbuf, NULL, i)) == NULL)
Copied: dsniff/repos/community-x86_64/dsniff-httppostfix.patch (from rev 625218, dsniff/trunk/dsniff-httppostfix.patch)
===================================================================
--- dsniff-httppostfix.patch (rev 0)
+++ dsniff-httppostfix.patch 2020-05-06 23:13:18 UTC (rev 625219)
@@ -0,0 +1,20 @@
+--- a/decode_http.c 2000-12-19 07:38:05.000000000 +0800
++++ b/decode_http.c 2006-03-05 22:32:14.000000000 +0800
+@@ -139,14 +139,14 @@
+ host = p;
+ }
+ else if (req[0] == 'P') {
+- if (strncmp(p, "Content-type: ", 14) == 0) {
+- if (strncmp(p + 14, "application/"
++ if (strncasecmp(p, "Content-type: ", 14) == 0) {
++ if (strncasecmp(p + 14, "application/"
+ "x-www-form-urlencoded",
+ 33) != 0) {
+ query = NULL;
+ }
+ }
+- else if (strncmp(p, "Content-length: ", 16) == 0) {
++ else if (strncasecmp(p, "Content-length: ", 16) == 0) {
+ p += 16;
+ i = atoi(p);
+ if ((msg = buf_tok(&inbuf, NULL, i)) == NULL)
Deleted: dsniff-macof-size-calculation.patch
===================================================================
--- dsniff-macof-size-calculation.patch 2020-05-06 23:13:03 UTC (rev 625218)
+++ dsniff-macof-size-calculation.patch 2020-05-06 23:13:18 UTC (rev 625219)
@@ -1,11 +0,0 @@
---- a/macof.c
-+++ b/macof.c
-@@ -134,7 +134,7 @@ main(int argc, char *argv[])
- libnet_build_tcp(sport, dport, seq, 0, TH_SYN, 512,
- 0, 0, LIBNET_TCP_H, NULL, 0, l, 0);
-
-- libnet_build_ipv4(LIBNET_TCP_H, 0,
-+ libnet_build_ipv4(LIBNET_IPV4_H + LIBNET_TCP_H, 0,
- libnet_get_prand(LIBNET_PRu16), 0, 64,
- IPPROTO_TCP, 0, src, dst, NULL, 0, l, 0);
-
Copied: dsniff/repos/community-x86_64/dsniff-macof-size-calculation.patch (from rev 625218, dsniff/trunk/dsniff-macof-size-calculation.patch)
===================================================================
--- dsniff-macof-size-calculation.patch (rev 0)
+++ dsniff-macof-size-calculation.patch 2020-05-06 23:13:18 UTC (rev 625219)
@@ -0,0 +1,11 @@
+--- a/macof.c
++++ b/macof.c
+@@ -134,7 +134,7 @@ main(int argc, char *argv[])
+ libnet_build_tcp(sport, dport, seq, 0, TH_SYN, 512,
+ 0, 0, LIBNET_TCP_H, NULL, 0, l, 0);
+
+- libnet_build_ipv4(LIBNET_TCP_H, 0,
++ libnet_build_ipv4(LIBNET_IPV4_H + LIBNET_TCP_H, 0,
+ libnet_get_prand(LIBNET_PRu16), 0, 64,
+ IPPROTO_TCP, 0, src, dst, NULL, 0, l, 0);
+
Deleted: dsniff-rpc.patch
===================================================================
--- dsniff-rpc.patch 2020-05-06 23:13:03 UTC (rev 625218)
+++ dsniff-rpc.patch 2020-05-06 23:13:18 UTC (rev 625219)
@@ -1,40 +0,0 @@
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -37,8 +37,8 @@
- X11INC = @X_CFLAGS@
- X11LIB = @X_LIBS@ @X_PRE_LIBS@ -lXmu -lX11 @X_EXTRA_LIBS@
-
--INCS = -I. $(NIDSINC) $(PCAPINC) $(LNETINC) $(DBINC) $(SSLINC) $(X11INC) \
-- -I$(srcdir)/missing
--LIBS = @LIBS@ -L$(srcdir) -lmissing
-+INCS = -I. $(NIDSINC) $(PCAPINC) $(LNETINC) $(DBINC) $(SSLINC) $(X11INC) @RPC_CFLAGS@ \
-+ -I$(srcdir)/missing
-+LIBS = @LIBS@ -L$(srcdir) -lmissing @RPC_LIBS@
-
- INSTALL = @INSTALL@
---- a/configure.in
-+++ b/configure.in
-@@ -337,4 +337,23 @@
- AC_SUBST(SSLINC)
- AC_SUBST(SSLLIB)
-
-+AC_ARG_WITH([libtirpc],
-+ AS_HELP_STRING([--with-libtirpc], [Use libtirpc as RPC implementation (instead of sunrpc)]),
-+ [], [ with_libtirpc=no ])
-+
-+AS_IF([test "x$with_libtirpc" != xno],
-+ [PKG_CHECK_MODULES([TIRPC],
-+ [libtirpc],
-+ [RPC_CFLAGS=$TIRPC_CFLAGS; RPC_LIBS=$TIRPC_LIBS;],
-+ [AC_MSG_ERROR([libtirpc requested, but library not found.])]
-+ )],
-+ [AC_CHECK_HEADER(rpc/rpc.h,
-+ [RPC_CFLAGS=""; RPC_LIBS="";],
-+ [AC_MSG_ERROR([sunrpc requested, but headers are not present.])]
-+ )]
-+)
-+
-+AC_SUBST(RPC_CFLAGS)
-+AC_SUBST(RPC_LIBS)
-+
- AC_OUTPUT(Makefile)
Copied: dsniff/repos/community-x86_64/dsniff-rpc.patch (from rev 625218, dsniff/trunk/dsniff-rpc.patch)
===================================================================
--- dsniff-rpc.patch (rev 0)
+++ dsniff-rpc.patch 2020-05-06 23:13:18 UTC (rev 625219)
@@ -0,0 +1,40 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -37,8 +37,8 @@
+ X11INC = @X_CFLAGS@
+ X11LIB = @X_LIBS@ @X_PRE_LIBS@ -lXmu -lX11 @X_EXTRA_LIBS@
+
+-INCS = -I. $(NIDSINC) $(PCAPINC) $(LNETINC) $(DBINC) $(SSLINC) $(X11INC) \
+- -I$(srcdir)/missing
+-LIBS = @LIBS@ -L$(srcdir) -lmissing
++INCS = -I. $(NIDSINC) $(PCAPINC) $(LNETINC) $(DBINC) $(SSLINC) $(X11INC) @RPC_CFLAGS@ \
++ -I$(srcdir)/missing
++LIBS = @LIBS@ -L$(srcdir) -lmissing @RPC_LIBS@
+
+ INSTALL = @INSTALL@
+--- a/configure.in
++++ b/configure.in
+@@ -337,4 +337,23 @@
+ AC_SUBST(SSLINC)
+ AC_SUBST(SSLLIB)
+
++AC_ARG_WITH([libtirpc],
++ AS_HELP_STRING([--with-libtirpc], [Use libtirpc as RPC implementation (instead of sunrpc)]),
++ [], [ with_libtirpc=no ])
++
++AS_IF([test "x$with_libtirpc" != xno],
++ [PKG_CHECK_MODULES([TIRPC],
++ [libtirpc],
++ [RPC_CFLAGS=$TIRPC_CFLAGS; RPC_LIBS=$TIRPC_LIBS;],
++ [AC_MSG_ERROR([libtirpc requested, but library not found.])]
++ )],
++ [AC_CHECK_HEADER(rpc/rpc.h,
++ [RPC_CFLAGS=""; RPC_LIBS="";],
++ [AC_MSG_ERROR([sunrpc requested, but headers are not present.])]
++ )]
++)
++
++AC_SUBST(RPC_CFLAGS)
++AC_SUBST(RPC_LIBS)
++
+ AC_OUTPUT(Makefile)
More information about the arch-commits
mailing list