View | Details | Raw Unified | Return to bug 187977
Collapse All | Expand All

(-)net/libdnet/Makefile (-19 / +9 lines)
Lines 2-17 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	libdnet
4
PORTNAME=	libdnet
5
PORTVERSION=	1.11
5
PORTVERSION=	1.12
6
PORTREVISION?=	3
7
CATEGORIES?=	net
6
CATEGORIES?=	net
8
MASTER_SITES=	SF/libdnet/libdnet/libdnet-${PORTVERSION}
7
MASTER_SITES=	GOOGLE_CODE
9
8
10
MAINTAINER?=	onatan@gmail.com
9
MAINTAINER?=	onatan@gmail.com
11
COMMENT=	A simple interface to low level networking routines
10
COMMENT=	Simple interface to low level networking routines
12
11
12
LICENSE=	BSD3CLAUSE
13
13
GNU_CONFIGURE=	yes
14
GNU_CONFIGURE=	yes
14
USES=		gmake
15
CONFIGURE_ENV=	ac_cv_dnet_bsd_bpf=yes
16
USES=		libtool tar:tgz
15
17
16
.if !defined(LIBDNET_SLAVE)
18
.if !defined(LIBDNET_SLAVE)
17
CONFIGURE_ARGS+=	--without-python
19
CONFIGURE_ARGS+=	--without-python
Lines 18-36 Link Here
18
USE_LDCONFIG=	yes
20
USE_LDCONFIG=	yes
19
.endif
21
.endif
20
22
21
.include <bsd.port.pre.mk>
22
23
.if !defined(LIBDNET_SLAVE)
24
25
post-patch:
23
post-patch:
26
	@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure
24
	@${REINPLACE_CMD} 's|shrext|shrext_cmds|g' ${WRKSRC}/configure
27
25
28
post-build:
26
.include <bsd.port.mk>
29
	@cd ${WRKSRC}/src ; ${CC} ${CFLAGS} -shared -o libdnet.so .libs/addr-util.o .libs/addr.o .libs/blob.o .libs/ip-util.o .libs/ip6.o .libs/rand.o .libs/arp-bsd.o .libs/eth-bsd.o .libs/fw-pf.o .libs/intf.o .libs/ip.o .libs/route-bsd.o .libs/tun-bsd.o
30
31
post-install:
32
	${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME}.so ${STAGEDIR}${PREFIX}/lib/
33
	@${LN} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}.so ${STAGEDIR}${PREFIX}/lib/${PORTNAME}.so.1
34
.endif
35
36
.include <bsd.port.post.mk>
(-)net/libdnet/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (libdnet-1.11.tar.gz) = 0eb78415c8f2564c2f1e8ad36e98473348d9c94852f796a226360c716cc7ca53
1
SHA256 (libdnet-1.12.tgz) = 83b33039787cf99990e977cef7f18a5d5e7aaffc4505548a83d31bd3515eb026
2
SIZE (libdnet-1.11.tar.gz) = 446233
2
SIZE (libdnet-1.12.tgz) = 970125
(-)net/libdnet/files/patch-configure (-14 lines)
Lines 1-14 Link Here
1
--- configure.orig	2008-06-26 05:04:55.000000000 +0000
2
+++ configure	2008-06-26 05:05:13.000000000 +0000
3
@@ -21924,11 +21924,7 @@
4
     if test "${ac_cv_dnet_bsd_bpf+set}" = set; then
5
   echo $ECHO_N "(cached) $ECHO_C" >&6
6
 else
7
-  if test -c /dev/bpf0 ; then
8
 	    ac_cv_dnet_bsd_bpf=yes
9
-	else
10
-	    ac_cv_dnet_bsd_bpf=no
11
-	fi
12
 fi
13
 
14
     echo "$as_me:$LINENO: result: $ac_cv_dnet_bsd_bpf" >&5
(-)net/libdnet/files/patch-python__dnet.c (-20 lines)
Lines 1-20 Link Here
1
--- ./python/dnet.c.orig	Tue Jul 10 12:35:10 2007
2
+++ ./python/dnet.c	Tue Jul 10 12:35:59 2007
3
@@ -2726,7 +2726,7 @@
4
   PyObject *__pyx_3 = 0;
5
   unsigned short __pyx_4;
6
   Py_INCREF(__pyx_v_self);
7
-  ((PyObject*)__pyx_v_next) = Py_None; Py_INCREF(((PyObject*)__pyx_v_next));
8
+  __pyx_v_next = Py_None; Py_INCREF(((PyObject*)__pyx_v_next));
9
 
10
   /* "/Users/dugsong/projects/libdnet/python/./dnet.pyx":634 */
11
   __pyx_1 = (((struct __pyx_obj_4dnet___addr_ip4_iter *)__pyx_v_self)->cur <= ((struct __pyx_obj_4dnet___addr_ip4_iter *)__pyx_v_self)->max);
12
@@ -2738,7 +2738,7 @@
13
     Py_DECREF(__pyx_2); __pyx_2 = 0;
14
     if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_4dnet_addr)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; goto __pyx_L1;}
15
     Py_DECREF(((PyObject *)__pyx_v_next));
16
-    ((PyObject *)__pyx_v_next) = __pyx_3;
17
+    __pyx_v_next = __pyx_3;
18
     __pyx_3 = 0;
19
 
20
     /* "/Users/dugsong/projects/libdnet/python/./dnet.pyx":636 */
(-)net/libdnet/pkg-descr (-1 / +1 lines)
Lines 5-8 Link Here
5
packet and Ethernet frame transmission. It is intended to complement
5
packet and Ethernet frame transmission. It is intended to complement
6
the functionality provided by pcap(3).
6
the functionality provided by pcap(3).
7
7
8
WWW: http://libdnet.sourceforge.net/
8
WWW: https://code.google.com/p/libdnet/
(-)net/libdnet/pkg-plist (-2 / +1 lines)
Lines 1-11 Link Here
1
sbin/dnet
1
sbin/dnet
2
bin/dnet-config
2
bin/dnet-config
3
lib/libdnet
4
lib/libdnet.1
5
lib/libdnet.a
3
lib/libdnet.a
6
lib/libdnet.la
4
lib/libdnet.la
7
lib/libdnet.so
5
lib/libdnet.so
8
lib/libdnet.so.1
6
lib/libdnet.so.1
7
lib/libdnet.so.1.0.1
9
include/dnet.h
8
include/dnet.h
10
include/dnet/addr.h
9
include/dnet/addr.h
11
include/dnet/arp.h
10
include/dnet/arp.h

Return to bug 187977