diff --git a/ports-mgmt/dialog4ports/Makefile b/ports-mgmt/dialog4ports/Makefile index 1838aeb1f7fc..ae095d534143 100644 --- a/ports-mgmt/dialog4ports/Makefile +++ b/ports-mgmt/dialog4ports/Makefile @@ -1,53 +1,53 @@ # Created by: Ilya A. Arkhipov PORTNAME= dialog4ports PORTVERSION= 0.1.6 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= ports-mgmt MASTER_SITES= https://files.etoilebsd.net/dialog4ports/ \ http://mirror.shatow.net/freebsd/${PORTNAME}/ \ http://files.etoilebsd.net/dialog4ports/:dialog \ ftp://invisible-island.net/dialog/:dialog \ http://mirror.shatow.net/freebsd/${PORTNAME}/:dialog MAINTAINER= rum1cro@yandex.ru COMMENT?= Console Interface to configure ports LICENSE= BSD2CLAUSE USES= uidfix # CCACHE has options, so may need d4p, make d4p not ccache friendly # to avoid circular dependency NO_CCACHE= yes MAKE_ENV+= __MAKE_CONF=/dev/null SRCCONF=/dev/null .if !defined(D4P_SLAVE) PLIST_FILES= bin/dialog4ports man/man1/${PORTNAME}.1.gz .endif .include .if defined(DEBUG_FLAGS) MAKE_ARGS+= DEBUG_FLAGS="${DEBUG_FLAGS}" .endif ## This is used by 'make config' via Tools/scripts/dialog4ports.sh ## Use caution in changing .if !exists(${DIALOG4PORTS}) DIALOG4PORTS= ${WRKSRC}/dialog4ports .endif .if defined(D4P_SLAVE) DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ ${DIALOGNAME}.tgz:dialog DIALOGNAME= dialog-1.1-20120706 MAKE_ENV+= DIALOGSOURCES=${WRKDIR}/${DIALOGNAME} do-configure: @cd ${WRKDIR}/${DIALOGNAME}; ./configure .endif .include diff --git a/ports-mgmt/dialog4ports/files/patch-mixedlist.c b/ports-mgmt/dialog4ports/files/patch-mixedlist.c new file mode 100644 index 000000000000..80e8a6c1191b --- /dev/null +++ b/ports-mgmt/dialog4ports/files/patch-mixedlist.c @@ -0,0 +1,17 @@ +--- mixedlist.c_old 2021-01-03 16:01:52.851092000 +0300 ++++ mixedlist.c 2021-01-03 16:06:04.266150000 +0300 +@@ -652,12 +652,12 @@ + break; + case DLGK_ITEM_PREV: + i = choice - 1; ++ if (choice == 0 && scrollamt == 0) ++ continue; + if (items[scrollamt + i].type == ITEM_SEPARATOR && (scrollamt + i) == 0) + i++; + else if (items[scrollamt + i].type == ITEM_SEPARATOR) + i--; +- if (choice == 0 && scrollamt == 0) +- continue; + break; + case DLGK_ITEM_NEXT: + i = choice + 1;