pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils Add a package for minipro, an open source pro...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/abe0da5d3b5f
branches:  trunk
changeset: 372282:abe0da5d3b5f
user:      thorpej <thorpej%pkgsrc.org@localhost>
date:      Sat Jan 22 17:52:53 2022 +0000

description:
Add a package for minipro, an open source program for controlling the
MiniPRO TL866xx series of chip programmers.

diffstat:

 sysutils/Makefile                       |   3 ++-
 sysutils/minipro/DESCR                  |   4 ++++
 sysutils/minipro/Makefile               |  18 ++++++++++++++++++
 sysutils/minipro/PLIST                  |   5 +++++
 sysutils/minipro/distinfo               |   8 ++++++++
 sysutils/minipro/patches/patch-Makefile |  15 +++++++++++++++
 sysutils/minipro/patches/patch-jedec.c  |  24 ++++++++++++++++++++++++
 sysutils/minipro/patches/patch-main.c   |  15 +++++++++++++++
 8 files changed, 91 insertions(+), 1 deletions(-)

diffs (134 lines):

diff -r 6f898ed74112 -r abe0da5d3b5f sysutils/Makefile
--- a/sysutils/Makefile Sat Jan 22 17:31:49 2022 +0000
+++ b/sysutils/Makefile Sat Jan 22 17:52:53 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.983 2022/01/19 20:43:50 rhialto Exp $
+# $NetBSD: Makefile,v 1.984 2022/01/22 17:52:53 thorpej Exp $
 #
 
 COMMENT=       System utilities
@@ -432,6 +432,7 @@
 SUBDIR+=       meson-tools
 SUBDIR+=       mesure
 SUBDIR+=       mgm
+SUBDIR+=       minipro
 SUBDIR+=       mklivecd
 SUBDIR+=       mkmemstick
 SUBDIR+=       mksunbootcd
diff -r 6f898ed74112 -r abe0da5d3b5f sysutils/minipro/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/minipro/DESCR    Sat Jan 22 17:52:53 2022 +0000
@@ -0,0 +1,4 @@
+minipro is an open source program for controlling the MiniPRO TL866xx series
+of chip programmers with native support for Linux, BSD, and other flavors of
+Unix using the libusb-1.0.16 or greater.  It is compatible with the following
+Minipro programmers from Autoelectric: TL866CS, TL866A, and TL866II+.
diff -r 6f898ed74112 -r abe0da5d3b5f sysutils/minipro/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/minipro/Makefile Sat Jan 22 17:52:53 2022 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2022/01/22 17:52:53 thorpej Exp $
+
+MINIPRO_VERS=  0.5
+
+DISTNAME=      minipro-${MINIPRO_VERS}
+CATEGORIES=    sysutils
+MASTER_SITES=  https://gitlab.com/DavidGriffith/minipro/-/archive/${MINIPRO_VERS}/
+EXTRACT_SUFX=  .tar.bz2
+
+MAINTAINER=    thorpej%NetBSD.org@localhost
+HOMEPAGE=      https://gitlab.com/DavidGriffith/minipro/
+COMMENT=       Control the MiniPRO TL866xx series of chip programmers
+LICENSE=       gnu-gpl-v3
+
+USE_TOOLS+=    gmake
+
+.include "../../devel/libusb1/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 6f898ed74112 -r abe0da5d3b5f sysutils/minipro/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/minipro/PLIST    Sat Jan 22 17:52:53 2022 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2022/01/22 17:52:53 thorpej Exp $
+bin/minipro
+bin/miniprohex
+man/man1/minipro.1
+share/minipro/infoic.xml
diff -r 6f898ed74112 -r abe0da5d3b5f sysutils/minipro/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/minipro/distinfo Sat Jan 22 17:52:53 2022 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2022/01/22 17:52:53 thorpej Exp $
+
+BLAKE2s (minipro-0.5.tar.bz2) = 49494698441038357961402501a69bc77ed527642d0ca09771aaeb14433b1df2
+SHA512 (minipro-0.5.tar.bz2) = 6750c80077200badb08627909afbbac9f679dff483b5be2d24eb6083e859b1dc5ee3377eea4876ce8c9399d729910f1b02365ddbfc27fa6c59c8308b19c8fbae
+Size (minipro-0.5.tar.bz2) = 246205 bytes
+SHA1 (patch-Makefile) = 7426d43253bb899660152db5b53ab2b3152cdd95
+SHA1 (patch-jedec.c) = 6ea6a4bf9cccc442e86dc9a26fcdd210f9d471de
+SHA1 (patch-main.c) = ea464de8f0d69e65468ef878747ec76cd076ec06
diff -r 6f898ed74112 -r abe0da5d3b5f sysutils/minipro/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/minipro/patches/patch-Makefile   Sat Jan 22 17:52:53 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile,v 1.1 2022/01/22 17:52:53 thorpej Exp $
+
+Install the man page into the correct location for pkgsrc.
+
+--- Makefile.orig      2022-01-22 15:42:13.000000000 +0000
++++ Makefile
+@@ -70,7 +70,7 @@ BIN_INSTDIR=$(DESTDIR)$(PREFIX)/bin
+ LIB_INSTDIR=$(DESTDIR)$(PREFIX)/lib
+ SHARE_INSTDIR=$(DESTDIR)$(PREFIX)/share/minipro
+ INCLUDE_INSTDIR=$(DESTDIR)$(PREFIX)/include/libminipro
+-MAN_INSTDIR=$(DESTDIR)$(PREFIX)/share/man/man1
++MAN_INSTDIR=$(DESTDIR)$(PREFIX)/man/man1
+ 
+ UDEV_DIR=$(shell $(PKG_CONFIG) --define-variable=prefix=$(PREFIX) --silence-errors --variable=udevdir udev)
+ UDEV_RULES_INSTDIR=$(DESTDIR)$(UDEV_DIR)/rules.d
diff -r 6f898ed74112 -r abe0da5d3b5f sysutils/minipro/patches/patch-jedec.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/minipro/patches/patch-jedec.c    Sat Jan 22 17:52:53 2022 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-jedec.c,v 1.1 2022/01/22 17:52:53 thorpej Exp $
+
+Use ctype(3) functions safely.
+
+--- jedec.c.orig       2022-01-22 15:54:35.000000000 +0000
++++ jedec.c
+@@ -125,7 +125,7 @@ static int parse_tokens(char *buffer, si
+     if (!*p_token) continue;
+ 
+     // Skip non printable characters but ETX
+-    while (!isalpha(*p_token) && *p_token != ETX) p_token++;
++    while (!isalpha((unsigned char)*p_token) && *p_token != ETX) p_token++;
+ 
+     // Exit the loop if the ETX character is found
+     if (*p_token == ETX) break;
+@@ -237,7 +237,7 @@ static int parse_tokens(char *buffer, si
+          We need to parse each line to get the entire 120 bits row.
+          */
+         while (*p_next != DELIMITER) {
+-          if (!iscntrl(*p_next) && *p_next != ' ' && *p_next != '0' &&
++          if (!iscntrl((unsigned char)*p_next) && *p_next != ' ' && *p_next != '0' &&
+               *p_next != '1')
+             return BAD_FORMAT;
+ 
diff -r 6f898ed74112 -r abe0da5d3b5f sysutils/minipro/patches/patch-main.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/minipro/patches/patch-main.c     Sat Jan 22 17:52:53 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-main.c,v 1.1 2022/01/22 17:52:53 thorpej Exp $
+
+Use ctype(3) functions safely.
+
+--- main.c.orig        2022-01-22 15:56:02.000000000 +0000
++++ main.c
+@@ -922,7 +922,7 @@ int get_config_value(const char *buffer,
+     val = num;
+     cur += 2;  // Advances the pointer to the first numeric character
+     while (cur < eol) {
+-      if (isxdigit(*cur++))  // check for hex digit
++      if (isxdigit((unsigned char)*cur++))  // check for hex digit
+       {
+         *val++ = *(cur - 1);  // put it in the buffer
+       }



Home | Main Index | Thread Index | Old Index