diff options
author | manu <manu@pkgsrc.org> | 2020-04-28 15:22:42 +0000 |
---|---|---|
committer | manu <manu@pkgsrc.org> | 2020-04-28 15:22:42 +0000 |
commit | 12f414e849ed1bfa889ca3de8a08c0917aa01138 (patch) | |
tree | 2b5cdfe46b92dc04aad0a146dd6ebc1897b11eea /net/openrrcp | |
parent | 4c96b6da49d70ee7803075393f96efe367b86136 (diff) | |
download | pkgsrc-12f414e849ed1bfa889ca3de8a08c0917aa01138.tar.gz |
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 (limited to 'net/openrrcp')
-rw-r--r-- | net/openrrcp/DESCR | 8 | ||||
-rw-r--r-- | net/openrrcp/Makefile | 15 | ||||
-rw-r--r-- | net/openrrcp/PLIST | 19 | ||||
-rw-r--r-- | net/openrrcp/distinfo | 9 | ||||
-rw-r--r-- | net/openrrcp/patches/patch-lib_libcli.c | 16 | ||||
-rw-r--r-- | net/openrrcp/patches/patch-src_Makefile-helper.sh | 20 | ||||
-rw-r--r-- | net/openrrcp/patches/patch-src_rtl83xx.c | 15 |
7 files changed, 102 insertions, 0 deletions
diff --git a/net/openrrcp/DESCR b/net/openrrcp/DESCR new file mode 100644 index 00000000000..560825f97ca --- /dev/null +++ b/net/openrrcp/DESCR @@ -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 --git a/net/openrrcp/Makefile b/net/openrrcp/Makefile new file mode 100644 index 00000000000..7cea343fa01 --- /dev/null +++ b/net/openrrcp/Makefile @@ -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 +COMMENT= RealTek Remote Control Protocol tools +LICENSE= gnu-gpl-v2 + +INSTALL_DIRS= src + + +.include "../../net/libdnet/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/openrrcp/PLIST b/net/openrrcp/PLIST new file mode 100644 index 00000000000..2e31273aaaa --- /dev/null +++ b/net/openrrcp/PLIST @@ -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 --git a/net/openrrcp/distinfo b/net/openrrcp/distinfo new file mode 100644 index 00000000000..05acebbff2f --- /dev/null +++ b/net/openrrcp/distinfo @@ -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 --git a/net/openrrcp/patches/patch-lib_libcli.c b/net/openrrcp/patches/patch-lib_libcli.c new file mode 100644 index 00000000000..af2ad304156 --- /dev/null +++ b/net/openrrcp/patches/patch-lib_libcli.c @@ -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 --git a/net/openrrcp/patches/patch-src_Makefile-helper.sh b/net/openrrcp/patches/patch-src_Makefile-helper.sh new file mode 100644 index 00000000000..2d5e480ed48 --- /dev/null +++ b/net/openrrcp/patches/patch-src_Makefile-helper.sh @@ -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 --git a/net/openrrcp/patches/patch-src_rtl83xx.c b/net/openrrcp/patches/patch-src_rtl83xx.c new file mode 100644 index 00000000000..de396627600 --- /dev/null +++ b/net/openrrcp/patches/patch-src_rtl83xx.c @@ -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){ |