Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc Add OpenRRCP 0.2.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c0c3c2e179c4
branches:  trunk
changeset: 428496:c0c3c2e179c4
user:      manu <manu%pkgsrc.org@localhost>
date:      Tue Apr 28 15:22:42 2020 +0000

description:
Add OpenRRCP 0.2.1

RRCP(Realtek Remote Configuration Protocol) is protocol for making some
specific low-cost dumb ethernet switches act like more expensive managed
switches with no or little hardware modifications.

OpenRRCP is an open-source cross-platform RRCP-based toolset, that is
able to configure and fetch status from such ethernet switches.

WWW: http://openrrcp.org.ru/

diffstat:

 doc/CHANGES-2020                                  |   3 ++-
 net/Makefile                                      |   3 ++-
 net/openrrcp/DESCR                                |   8 ++++++++
 net/openrrcp/Makefile                             |  15 +++++++++++++++
 net/openrrcp/PLIST                                |  19 +++++++++++++++++++
 net/openrrcp/distinfo                             |   9 +++++++++
 net/openrrcp/patches/patch-lib_libcli.c           |  16 ++++++++++++++++
 net/openrrcp/patches/patch-src_Makefile-helper.sh |  20 ++++++++++++++++++++
 net/openrrcp/patches/patch-src_rtl83xx.c          |  15 +++++++++++++++
 9 files changed, 106 insertions(+), 2 deletions(-)

diffs (161 lines):

diff -r 8d9d8f2061de -r c0c3c2e179c4 doc/CHANGES-2020
--- a/doc/CHANGES-2020  Tue Apr 28 15:18:44 2020 +0000
+++ b/doc/CHANGES-2020  Tue Apr 28 15:22:42 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES-2020,v 1.2614 2020/04/28 13:53:57 nikita Exp $
+$NetBSD: CHANGES-2020,v 1.2615 2020/04/28 15:22:42 manu Exp $
 
 Changes to the packages collection and infrastructure in 2020:
 
@@ -3748,3 +3748,4 @@
        Updated math/py-lmfit to 1.0.0 [adam 2020-04-28]
        Added devel/go-pkgconfig version 0.0.0.20170226 [nikita 2020-04-28]
        Added security/libgabe version 1.0 [nikita 2020-04-28]
+       Added net/openrrcp 0.2.1 [manu 2020-04-28]
diff -r 8d9d8f2061de -r c0c3c2e179c4 net/Makefile
--- a/net/Makefile      Tue Apr 28 15:18:44 2020 +0000
+++ b/net/Makefile      Tue Apr 28 15:22:42 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1321 2020/04/21 11:34:16 wiz Exp $
+# $NetBSD: Makefile,v 1.1322 2020/04/28 15:22:42 manu Exp $
 #
 
 COMMENT=       Networking tools
@@ -457,6 +457,7 @@
 SUBDIR+=       openh323
 SUBDIR+=       openntpd
 SUBDIR+=       openresolv
+SUBDIR+=       openrrcp
 SUBDIR+=       openrsync
 SUBDIR+=       openslp
 SUBDIR+=       openvmps
diff -r 8d9d8f2061de -r c0c3c2e179c4 net/openrrcp/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/openrrcp/DESCR        Tue Apr 28 15:22:42 2020 +0000
@@ -0,0 +1,8 @@
+RRCP(Realtek Remote Configuration Protocol) is protocol for making some
+specific low-cost dumb ethernet switches act like more expensive managed
+switches with no or little hardware modifications.
+
+OpenRRCP is an open-source cross-platform RRCP-based toolset, that is
+able to configure and fetch status from such ethernet switches.
+
+WWW: http://openrrcp.org.ru/
diff -r 8d9d8f2061de -r c0c3c2e179c4 net/openrrcp/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/openrrcp/Makefile     Tue Apr 28 15:22:42 2020 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2020/04/28 15:22:43 manu Exp $
+
+DISTNAME=      openrrcp-0.2.1
+CATEGORIES=    net
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=openrrcp/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       RealTek Remote Control Protocol tools
+LICENSE=       gnu-gpl-v2
+
+INSTALL_DIRS=  src
+
+       
+.include "../../net/libdnet/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 8d9d8f2061de -r c0c3c2e179c4 net/openrrcp/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/openrrcp/PLIST        Tue Apr 28 15:22:42 2020 +0000
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1 2020/04/28 15:22:43 manu Exp $
+bin/rrcpcli
+bin/rtl8316b
+bin/rtl8324
+bin/rtl8326
+bin/rtl83xx
+bin/rtl83xx_asus_gigax_1024p
+bin/rtl83xx_compex_ps2216
+bin/rtl83xx_compex_ps2216_6d
+bin/rtl83xx_compex_ps2216_6dp
+bin/rtl83xx_compex_sds1224
+bin/rtl83xx_dlink_des1016d
+bin/rtl83xx_dlink_des1024d_b1
+bin/rtl83xx_dlink_des1024d_c1
+bin/rtl83xx_edimax_es-3116p
+bin/rtl83xx_ovislink_fsh2402gt
+bin/rtl83xx_repotec_g3224x
+bin/rtl83xx_signamax_065-7531a
+bin/rtl83xx_zyxel_es116p
diff -r 8d9d8f2061de -r c0c3c2e179c4 net/openrrcp/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/openrrcp/distinfo     Tue Apr 28 15:22:42 2020 +0000
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1 2020/04/28 15:22:43 manu Exp $
+
+SHA1 (openrrcp-0.2.1.tar.gz) = 410a2734f188aba17c41d06bd51dbad9999bf32f
+RMD160 (openrrcp-0.2.1.tar.gz) = 030aea6b5ce380a09610d0b4f5dbfe0ef3a74b14
+SHA512 (openrrcp-0.2.1.tar.gz) = 4b9d087fd9da6db565c6d612c51a8087c0c8cf7443a3e67d8800aadb900fd6c499d15880b7765006a8b16345cb5fa824bb125018a164d1c6de5945bfc4f867e3
+Size (openrrcp-0.2.1.tar.gz) = 71513 bytes
+SHA1 (patch-lib_libcli.c) = 0f3bb2da61463b97ecc2fd9cf55302afcb3195cf
+SHA1 (patch-src_Makefile-helper.sh) = 76ebb28ada7dee0159f1ec9ada593d12fa9bc9f8
+SHA1 (patch-src_rtl83xx.c) = dcf1c7fc8c0de9733e0aaca75521e85c8a4534f6
diff -r 8d9d8f2061de -r c0c3c2e179c4 net/openrrcp/patches/patch-lib_libcli.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/openrrcp/patches/patch-lib_libcli.c   Tue Apr 28 15:22:42 2020 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-lib_libcli.c,v 1.1 2020/04/28 15:22:43 manu Exp $
+
+Fix build for missing struct timeval definition
+
+--- lib/libcli.c.orig  2020-04-27 17:08:53.316497742 +0200
++++ lib/libcli.c       2020-04-27 17:18:12.464903450 +0200
+@@ -10,8 +10,9 @@
+ #include <string.h>
+ #include <ctype.h>
+ #include <unistd.h>
+ #include <regex.h>
++#include <time.h>
+ #include "libcli.h"
+ // vim:sw=8 ts=8
+ 
+ enum cli_states
diff -r 8d9d8f2061de -r c0c3c2e179c4 net/openrrcp/patches/patch-src_Makefile-helper.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/openrrcp/patches/patch-src_Makefile-helper.sh Tue Apr 28 15:22:42 2020 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-src_Makefile-helper.sh,v 1.1 2020/04/28 15:22:43 manu Exp $
+
+Add runtime search path for libdnet
+
+Also, this software crashses with -O2 and works with -g, which does not
+helps for debugging.
+
+--- src/Makefile-helper.sh.orig        2020-04-27 17:26:24.128386613 +0200
++++ src/Makefile-helper.sh     2020-04-27 17:17:53.896676336 +0200
+@@ -7,9 +7,9 @@
+     exit;
+ fi;
+ 
+ if test "$sys" = "NetBSD"; then
+-    echo -n "-s -Wall -O2 -ldnet -lpcap -I/usr/pkg/include -L/usr/pkg/lib"
++    echo -n "-s -Wall -g -ldnet -lpcap -I${PREFIX}/include -L${PREFIX}/lib -R${PREFIX}/lib"
+     exit;
+ fi;
+ 
+ if test "$sys" = "FreeBSD"; then
diff -r 8d9d8f2061de -r c0c3c2e179c4 net/openrrcp/patches/patch-src_rtl83xx.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/openrrcp/patches/patch-src_rtl83xx.c  Tue Apr 28 15:22:42 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_rtl83xx.c,v 1.1 2020/04/28 15:22:43 manu Exp $
+
+Patch from the FreeBSD port
+
+--- src/rtl83xx.c.orig 2008-06-03 06:14:18.000000000 +0400
++++ src/rtl83xx.c      2008-06-27 15:59:44.000000000 +0400
+@@ -180,7 +180,7 @@
+                       dest_mac[4],
+                       dest_mac[5],
+                       r ? "":"not ");
+-    _exit(!r);
++    exit(!r);
+ }
+ 
+ void print_vlan_status(int show_vid){



Home | Main Index | Thread Index | Old Index