Initial commit

This commit is contained in:
Your Name
2026-04-23 17:07:55 +08:00
commit b7e39e063b
16725 changed files with 1625565 additions and 0 deletions
@@ -0,0 +1,33 @@
Exit normally for help/verison options
If -v or -h is used for the help/version information, it is a normal exit situation,
not an error condition. Sometimes these are used as a simple operation test of the
resulting binary so the exit code does matter.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Upstream-Status: Submitted [https://salsa.debian.org/minicom-team/minicom/-/merge_requests/14]
---
src/minicom.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
Index: minicom-2.8/src/minicom.c
===================================================================
--- minicom-2.8.orig/src/minicom.c
+++ minicom-2.8/src/minicom.c
@@ -1257,14 +1257,14 @@ int main(int argc, char **argv)
"modify it under the terms of the GNU General Public License\n"
"as published by the Free Software Foundation; either version\n"
"2 of the License, or (at your option) any later version.\n\n"));
- exit(1);
+ exit(0);
break;
case 's': /* setup mode */
dosetup = 1;
break;
case 'h':
helpthem();
- exit(1);
+ exit(0);
break;
case 'p': /* Pseudo terminal to use. */
if (strncmp(optarg, "/dev/", 5) == 0)
@@ -0,0 +1,30 @@
configure: Allow lockdev to be disabled
When the pkgconfig dependencies may be present, it is useful to be
able to explictly disable the lockdev dependency. This adds such an
option.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Upstream-Status: Submitted [https://salsa.debian.org/minicom-team/minicom/-/merge_requests/14]
Index: minicom-2.8/configure.ac
===================================================================
--- minicom-2.8.orig/configure.ac
+++ minicom-2.8/configure.ac
@@ -43,7 +43,13 @@ if test "x$enable_socket" = xyes; then
fi
PKG_PROG_PKG_CONFIG
-if test -n "$PKG_CONFIG"; then
+
+AC_ARG_ENABLE([lockdev],
+ AS_HELP_STRING([--enable-lockdev],
+ [Enable lockdev support (def: enabled)]),
+ [], [enable_lockdev="yes"])
+
+if test -n "$PKG_CONFIG" && test "x$enable_lockdev" = xyes; then
PKG_CHECK_MODULES([LOCKDEV], [lockdev], AC_DEFINE([HAVE_LOCKDEV],[1],[Define if you have lockdev]),[:])
fi
@@ -0,0 +1,28 @@
SUMMARY = "Text-based modem control and terminal emulation program"
HOMEPAGE = "https://salsa.debian.org/minicom-team/minicom"
DESCRIPTION = "Minicom is a text-based modem control and terminal emulation program for Unix-like operating systems"
SECTION = "console/network"
DEPENDS = "ncurses virtual/libiconv"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=420477abc567404debca0a2a1cb6b645 \
file://src/minicom.h;beginline=1;endline=12;md5=a58838cb709f0db517f4e42730c49e81"
SRC_URI = "${DEBIAN_MIRROR}/main/m/${BPN}/${BPN}_${PV}.orig.tar.bz2 \
file://allow.to.disable.lockdev.patch \
file://0001-fix-minicom-h-v-return-value-is-not-0.patch \
"
SRC_URI[sha256sum] = "38cea30913a20349326ff3f1763ee1512b7b41601c24f065f365e18e9db0beba"
PACKAGECONFIG ??= ""
PACKAGECONFIG[lockdev] = "--enable-lockdev,--disable-lockdev,lockdev"
inherit autotools gettext pkgconfig
do_install() {
for d in doc extras man lib src; do make -C $d DESTDIR=${D} install; done
}
RRECOMMENDS:${PN} += "lrzsz"
RDEPENDS:${PN} += "ncurses-terminfo-base"