pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils



Module Name:    pkgsrc
Committed By:   thorpej
Date:           Sat Jan 22 17:52:53 UTC 2022

Modified Files:
        pkgsrc/sysutils: Makefile
Added Files:
        pkgsrc/sysutils/minipro: DESCR Makefile PLIST distinfo
        pkgsrc/sysutils/minipro/patches: patch-Makefile patch-jedec.c
            patch-main.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.983 -r1.984 pkgsrc/sysutils/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/minipro/DESCR \
    pkgsrc/sysutils/minipro/Makefile pkgsrc/sysutils/minipro/PLIST \
    pkgsrc/sysutils/minipro/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/minipro/patches/patch-Makefile \
    pkgsrc/sysutils/minipro/patches/patch-jedec.c \
    pkgsrc/sysutils/minipro/patches/patch-main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/Makefile
diff -u pkgsrc/sysutils/Makefile:1.983 pkgsrc/sysutils/Makefile:1.984
--- pkgsrc/sysutils/Makefile:1.983      Wed Jan 19 20:43:50 2022
+++ pkgsrc/sysutils/Makefile    Sat Jan 22 17:52:53 2022
@@ -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+=    menu-cache
 SUBDIR+=       meson-tools
 SUBDIR+=       mesure
 SUBDIR+=       mgm
+SUBDIR+=       minipro
 SUBDIR+=       mklivecd
 SUBDIR+=       mkmemstick
 SUBDIR+=       mksunbootcd

Added files:

Index: pkgsrc/sysutils/minipro/DESCR
diff -u /dev/null pkgsrc/sysutils/minipro/DESCR:1.1
--- /dev/null   Sat Jan 22 17:52:53 2022
+++ pkgsrc/sysutils/minipro/DESCR       Sat Jan 22 17:52:53 2022
@@ -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+.
Index: pkgsrc/sysutils/minipro/Makefile
diff -u /dev/null pkgsrc/sysutils/minipro/Makefile:1.1
--- /dev/null   Sat Jan 22 17:52:53 2022
+++ pkgsrc/sysutils/minipro/Makefile    Sat Jan 22 17:52:53 2022
@@ -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"
Index: pkgsrc/sysutils/minipro/PLIST
diff -u /dev/null pkgsrc/sysutils/minipro/PLIST:1.1
--- /dev/null   Sat Jan 22 17:52:53 2022
+++ pkgsrc/sysutils/minipro/PLIST       Sat Jan 22 17:52:53 2022
@@ -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
Index: pkgsrc/sysutils/minipro/distinfo
diff -u /dev/null pkgsrc/sysutils/minipro/distinfo:1.1
--- /dev/null   Sat Jan 22 17:52:53 2022
+++ pkgsrc/sysutils/minipro/distinfo    Sat Jan 22 17:52:53 2022
@@ -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

Index: pkgsrc/sysutils/minipro/patches/patch-Makefile
diff -u /dev/null pkgsrc/sysutils/minipro/patches/patch-Makefile:1.1
--- /dev/null   Sat Jan 22 17:52:53 2022
+++ pkgsrc/sysutils/minipro/patches/patch-Makefile      Sat Jan 22 17:52:53 2022
@@ -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
Index: pkgsrc/sysutils/minipro/patches/patch-jedec.c
diff -u /dev/null pkgsrc/sysutils/minipro/patches/patch-jedec.c:1.1
--- /dev/null   Sat Jan 22 17:52:53 2022
+++ pkgsrc/sysutils/minipro/patches/patch-jedec.c       Sat Jan 22 17:52:53 2022
@@ -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;
+ 
Index: pkgsrc/sysutils/minipro/patches/patch-main.c
diff -u /dev/null pkgsrc/sysutils/minipro/patches/patch-main.c:1.1
--- /dev/null   Sat Jan 22 17:52:53 2022
+++ pkgsrc/sysutils/minipro/patches/patch-main.c        Sat Jan 22 17:52:53 2022
@@ -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