[arch-commits] Commit in libdnet/repos (10 files)

Sergej Pupykin spupykin at archlinux.org
Fri Feb 13 16:37:31 UTC 2015


    Date: Friday, February 13, 2015 @ 17:37:31
  Author: spupykin
Revision: 127678

archrelease: copy trunk to community-i686, community-x86_64

Added:
  libdnet/repos/community-i686/PKGBUILD
    (from rev 127677, libdnet/trunk/PKGBUILD)
  libdnet/repos/community-i686/libdnet-1.12.pyrex2.7.patch
    (from rev 127677, libdnet/trunk/libdnet-1.12.pyrex2.7.patch)
  libdnet/repos/community-i686/libdnet.install
    (from rev 127677, libdnet/trunk/libdnet.install)
  libdnet/repos/community-x86_64/PKGBUILD
    (from rev 127677, libdnet/trunk/PKGBUILD)
  libdnet/repos/community-x86_64/libdnet-1.12.pyrex2.7.patch
    (from rev 127677, libdnet/trunk/libdnet-1.12.pyrex2.7.patch)
  libdnet/repos/community-x86_64/libdnet.install
    (from rev 127677, libdnet/trunk/libdnet.install)
Deleted:
  libdnet/repos/community-i686/PKGBUILD
  libdnet/repos/community-i686/libdnet.install
  libdnet/repos/community-x86_64/PKGBUILD
  libdnet/repos/community-x86_64/libdnet.install

----------------------------------------------+
 /PKGBUILD                                    |   82 +++++++++++++++++++++++++
 /libdnet.install                             |    6 +
 community-i686/PKGBUILD                      |   33 ----------
 community-i686/libdnet-1.12.pyrex2.7.patch   |   74 ++++++++++++++++++++++
 community-i686/libdnet.install               |    3 
 community-x86_64/PKGBUILD                    |   33 ----------
 community-x86_64/libdnet-1.12.pyrex2.7.patch |   74 ++++++++++++++++++++++
 community-x86_64/libdnet.install             |    3 
 8 files changed, 236 insertions(+), 72 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2015-02-13 16:37:16 UTC (rev 127677)
+++ community-i686/PKGBUILD	2015-02-13 16:37:31 UTC (rev 127678)
@@ -1,33 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: James Fryman <jfryman at gmail.com>
-
-pkgname=libdnet
-pkgver=1.12
-pkgrel=8
-pkgdesc="A simplified, portable interface to several low-level networking routines"
-arch=(i686 x86_64)
-makedepends=(python2)
-optdepends=(python2)
-license=("BSD")
-url="http://code.google.com/p/libdnet/"
-source=(http://libdnet.googlecode.com/files/libdnet-$pkgver.tgz)
-md5sums=('9253ef6de1b5e28e9c9a62b882e44cc9')
-
-build() {
-  cd $srcdir/$pkgname-$pkgver
-
-  autoreconf -I config --force --install
-  ./configure --prefix=/usr --sbindir=/usr/bin
-  make
-}
-
-package() {
-  cd $srcdir/$pkgname-$pkgver
-  make DESTDIR="$pkgdir/" install
-
-  cd python && \
-  python2 setup.py install --root=$pkgdir
-
-  install -D -m0644 ../LICENSE $pkgdir/usr/share/licenses/libdnet/license
-}

Copied: libdnet/repos/community-i686/PKGBUILD (from rev 127677, libdnet/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2015-02-13 16:37:31 UTC (rev 127678)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: James Fryman <jfryman at gmail.com>
+
+pkgname=libdnet
+pkgver=1.12
+pkgrel=9
+pkgdesc="A simplified, portable interface to several low-level networking routines"
+arch=(i686 x86_64)
+makedepends=('python2' 'pyrex')
+optdepends=('python2')
+license=("BSD")
+url="http://code.google.com/p/libdnet/"
+source=(http://libdnet.googlecode.com/files/libdnet-$pkgver.tgz
+	libdnet-1.12.pyrex2.7.patch)
+md5sums=('9253ef6de1b5e28e9c9a62b882e44cc9'
+         '01c3a40f83fc13756728b836cd693942')
+
+prepare() {
+  cd $srcdir/$pkgname-$pkgver
+  patch -p0 <$srcdir/libdnet-1.12.pyrex2.7.patch
+  rm -f python/dnet.c
+}
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  autoreconf -I config --force --install
+  ./configure --prefix=/usr --sbindir=/usr/bin
+  pyrexc python/dnet.pyx
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR="$pkgdir/" install
+
+  cd python && \
+  python2 setup.py install --root=$pkgdir
+
+  install -D -m0644 ../LICENSE $pkgdir/usr/share/licenses/libdnet/license
+}

Copied: libdnet/repos/community-i686/libdnet-1.12.pyrex2.7.patch (from rev 127677, libdnet/trunk/libdnet-1.12.pyrex2.7.patch)
===================================================================
--- community-i686/libdnet-1.12.pyrex2.7.patch	                        (rev 0)
+++ community-i686/libdnet-1.12.pyrex2.7.patch	2015-02-13 16:37:31 UTC (rev 127678)
@@ -0,0 +1,74 @@
+--- python/dnet.pyx	2007-01-20 12:39:21.000000000 +0100
++++ python/dnet.pyx	2014-10-21 17:23:52.719665497 +0200
+@@ -24,7 +24,7 @@
+ cdef extern from "Python.h":
+     object  PyString_FromStringAndSize(char *s, int len)
+     int     PyString_Size(object o)
+-    int     PyObject_AsReadBuffer(object o, char **pp, int *lenp)
++    int     PyObject_AsReadBuffer(object o, char **pp, Py_ssize_t *lenp)
+     int     PyInt_Check(object o)
+     int     PyLong_Check(object o)
+     long    PyInt_AsLong(object o)
+@@ -160,7 +160,7 @@
+     return PyString_FromStringAndSize(ea.data, 6)
+ 
+ def eth_pack_hdr(dst=ETH_ADDR_BROADCAST, src=ETH_ADDR_BROADCAST,
+-                 type=ETH_TYPE_IP):
++                 type_=ETH_TYPE_IP):
+     """Return a packed binary string representing an Ethernet header.
+ 	
+     Keyword arguments:
+@@ -172,7 +172,7 @@
+     cdef eth_addr_t s, d
+     __memcpy(s.data, src, 6)
+     __memcpy(d.data, dst, 6)
+-    __eth_pack_hdr(hdr, d, s, type)
++    __eth_pack_hdr(hdr, d, s, type_)
+     return PyString_FromStringAndSize(hdr, 14)
+ 
+ #
+@@ -292,7 +292,7 @@
+     """
+     cdef char buf[2048]
+     cdef char *p
+-    cdef int n
++    cdef Py_ssize_t n
+     if PyObject_AsReadBuffer(pkt, &p, &n) == 0:
+         if n < 2048:
+             memcpy(buf, p, n)
+@@ -308,7 +308,7 @@
+ 
+ def ip_cksum_add(buf, int sum):
+     cdef char *p
+-    cdef int n
++    cdef Py_ssize_t n
+     if PyObject_AsReadBuffer(buf, &p, &n) == 0:
+         return __ip_cksum_add(p, n, sum)
+     else:
+@@ -441,7 +441,7 @@
+     """
+     cdef addr_t _addr
+     
+-    def __init__(self, addrtxt=None, type=ADDR_TYPE_NONE):
++    def __init__(self, addrtxt=None, type_=ADDR_TYPE_NONE):
+         if addrtxt != None and addr_aton(addrtxt, &self._addr) < 0:
+             if PyString_Size(addrtxt) == 4:
+                 self._addr.addr_type = ADDR_TYPE_IP
+@@ -785,7 +785,7 @@
+ cdef extern from *:
+     void __icmp_pack_hdr "icmp_pack_hdr" (char *hdr, int type, int code)
+     
+-def icmp_pack_hdr(type, code):
++def icmp_pack_hdr(type_, code):
+     """Return a packed binary string representing an ICMP header.
+ 
+     Keyword arguments:
+@@ -793,7 +793,7 @@
+     code -- ICMP code		(8-bit integer)
+     """
+     cdef char buf[4]
+-    __icmp_pack_hdr(buf, type, code)
++    __icmp_pack_hdr(buf, type_, code)
+     return PyString_FromStringAndSize(buf, sizeof(buf))
+ 
+ #

Deleted: community-i686/libdnet.install
===================================================================
--- community-i686/libdnet.install	2015-02-13 16:37:16 UTC (rev 127677)
+++ community-i686/libdnet.install	2015-02-13 16:37:31 UTC (rev 127678)
@@ -1,3 +0,0 @@
-post_install() {
-	/sbin/ldconfig
-}

Copied: libdnet/repos/community-i686/libdnet.install (from rev 127677, libdnet/trunk/libdnet.install)
===================================================================
--- community-i686/libdnet.install	                        (rev 0)
+++ community-i686/libdnet.install	2015-02-13 16:37:31 UTC (rev 127678)
@@ -0,0 +1,3 @@
+post_install() {
+	/sbin/ldconfig
+}

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2015-02-13 16:37:16 UTC (rev 127677)
+++ community-x86_64/PKGBUILD	2015-02-13 16:37:31 UTC (rev 127678)
@@ -1,33 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: James Fryman <jfryman at gmail.com>
-
-pkgname=libdnet
-pkgver=1.12
-pkgrel=8
-pkgdesc="A simplified, portable interface to several low-level networking routines"
-arch=(i686 x86_64)
-makedepends=(python2)
-optdepends=(python2)
-license=("BSD")
-url="http://code.google.com/p/libdnet/"
-source=(http://libdnet.googlecode.com/files/libdnet-$pkgver.tgz)
-md5sums=('9253ef6de1b5e28e9c9a62b882e44cc9')
-
-build() {
-  cd $srcdir/$pkgname-$pkgver
-
-  autoreconf -I config --force --install
-  ./configure --prefix=/usr --sbindir=/usr/bin
-  make
-}
-
-package() {
-  cd $srcdir/$pkgname-$pkgver
-  make DESTDIR="$pkgdir/" install
-
-  cd python && \
-  python2 setup.py install --root=$pkgdir
-
-  install -D -m0644 ../LICENSE $pkgdir/usr/share/licenses/libdnet/license
-}

Copied: libdnet/repos/community-x86_64/PKGBUILD (from rev 127677, libdnet/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2015-02-13 16:37:31 UTC (rev 127678)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: James Fryman <jfryman at gmail.com>
+
+pkgname=libdnet
+pkgver=1.12
+pkgrel=9
+pkgdesc="A simplified, portable interface to several low-level networking routines"
+arch=(i686 x86_64)
+makedepends=('python2' 'pyrex')
+optdepends=('python2')
+license=("BSD")
+url="http://code.google.com/p/libdnet/"
+source=(http://libdnet.googlecode.com/files/libdnet-$pkgver.tgz
+	libdnet-1.12.pyrex2.7.patch)
+md5sums=('9253ef6de1b5e28e9c9a62b882e44cc9'
+         '01c3a40f83fc13756728b836cd693942')
+
+prepare() {
+  cd $srcdir/$pkgname-$pkgver
+  patch -p0 <$srcdir/libdnet-1.12.pyrex2.7.patch
+  rm -f python/dnet.c
+}
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  autoreconf -I config --force --install
+  ./configure --prefix=/usr --sbindir=/usr/bin
+  pyrexc python/dnet.pyx
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR="$pkgdir/" install
+
+  cd python && \
+  python2 setup.py install --root=$pkgdir
+
+  install -D -m0644 ../LICENSE $pkgdir/usr/share/licenses/libdnet/license
+}

Copied: libdnet/repos/community-x86_64/libdnet-1.12.pyrex2.7.patch (from rev 127677, libdnet/trunk/libdnet-1.12.pyrex2.7.patch)
===================================================================
--- community-x86_64/libdnet-1.12.pyrex2.7.patch	                        (rev 0)
+++ community-x86_64/libdnet-1.12.pyrex2.7.patch	2015-02-13 16:37:31 UTC (rev 127678)
@@ -0,0 +1,74 @@
+--- python/dnet.pyx	2007-01-20 12:39:21.000000000 +0100
++++ python/dnet.pyx	2014-10-21 17:23:52.719665497 +0200
+@@ -24,7 +24,7 @@
+ cdef extern from "Python.h":
+     object  PyString_FromStringAndSize(char *s, int len)
+     int     PyString_Size(object o)
+-    int     PyObject_AsReadBuffer(object o, char **pp, int *lenp)
++    int     PyObject_AsReadBuffer(object o, char **pp, Py_ssize_t *lenp)
+     int     PyInt_Check(object o)
+     int     PyLong_Check(object o)
+     long    PyInt_AsLong(object o)
+@@ -160,7 +160,7 @@
+     return PyString_FromStringAndSize(ea.data, 6)
+ 
+ def eth_pack_hdr(dst=ETH_ADDR_BROADCAST, src=ETH_ADDR_BROADCAST,
+-                 type=ETH_TYPE_IP):
++                 type_=ETH_TYPE_IP):
+     """Return a packed binary string representing an Ethernet header.
+ 	
+     Keyword arguments:
+@@ -172,7 +172,7 @@
+     cdef eth_addr_t s, d
+     __memcpy(s.data, src, 6)
+     __memcpy(d.data, dst, 6)
+-    __eth_pack_hdr(hdr, d, s, type)
++    __eth_pack_hdr(hdr, d, s, type_)
+     return PyString_FromStringAndSize(hdr, 14)
+ 
+ #
+@@ -292,7 +292,7 @@
+     """
+     cdef char buf[2048]
+     cdef char *p
+-    cdef int n
++    cdef Py_ssize_t n
+     if PyObject_AsReadBuffer(pkt, &p, &n) == 0:
+         if n < 2048:
+             memcpy(buf, p, n)
+@@ -308,7 +308,7 @@
+ 
+ def ip_cksum_add(buf, int sum):
+     cdef char *p
+-    cdef int n
++    cdef Py_ssize_t n
+     if PyObject_AsReadBuffer(buf, &p, &n) == 0:
+         return __ip_cksum_add(p, n, sum)
+     else:
+@@ -441,7 +441,7 @@
+     """
+     cdef addr_t _addr
+     
+-    def __init__(self, addrtxt=None, type=ADDR_TYPE_NONE):
++    def __init__(self, addrtxt=None, type_=ADDR_TYPE_NONE):
+         if addrtxt != None and addr_aton(addrtxt, &self._addr) < 0:
+             if PyString_Size(addrtxt) == 4:
+                 self._addr.addr_type = ADDR_TYPE_IP
+@@ -785,7 +785,7 @@
+ cdef extern from *:
+     void __icmp_pack_hdr "icmp_pack_hdr" (char *hdr, int type, int code)
+     
+-def icmp_pack_hdr(type, code):
++def icmp_pack_hdr(type_, code):
+     """Return a packed binary string representing an ICMP header.
+ 
+     Keyword arguments:
+@@ -793,7 +793,7 @@
+     code -- ICMP code		(8-bit integer)
+     """
+     cdef char buf[4]
+-    __icmp_pack_hdr(buf, type, code)
++    __icmp_pack_hdr(buf, type_, code)
+     return PyString_FromStringAndSize(buf, sizeof(buf))
+ 
+ #

Deleted: community-x86_64/libdnet.install
===================================================================
--- community-x86_64/libdnet.install	2015-02-13 16:37:16 UTC (rev 127677)
+++ community-x86_64/libdnet.install	2015-02-13 16:37:31 UTC (rev 127678)
@@ -1,3 +0,0 @@
-post_install() {
-	/sbin/ldconfig
-}

Copied: libdnet/repos/community-x86_64/libdnet.install (from rev 127677, libdnet/trunk/libdnet.install)
===================================================================
--- community-x86_64/libdnet.install	                        (rev 0)
+++ community-x86_64/libdnet.install	2015-02-13 16:37:31 UTC (rev 127678)
@@ -0,0 +1,3 @@
+post_install() {
+	/sbin/ldconfig
+}



More information about the arch-commits mailing list