lrzsz: enable package again

And build from latest commit on github repo.
This commit is contained in:
Henrik Grimler 2021-11-10 10:34:32 +01:00
parent 8b314cbf99
commit 94c7e0770e
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
6 changed files with 120 additions and 13 deletions

View File

@ -1,6 +0,0 @@
TERMUX_PKG_HOMEPAGE=https://ohse.de/uwe/software/lrzsz.html
TERMUX_PKG_DESCRIPTION="Tools for zmodem/xmodem/ymodem file transfer"
TERMUX_PKG_VERSION=0.12.20
TERMUX_PKG_SRCURL=https://ohse.de/uwe/releases/lrzsz-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=c28b36b14bddb014d9e9c97c52459852f97bd405f89113f30bee45ed92728ff1
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-syslog --mandir=$TERMUX_PREFIX/share/man"

15
packages/lrzsz/build.sh Normal file
View File

@ -0,0 +1,15 @@
TERMUX_PKG_HOMEPAGE=https://ohse.de/uwe/software/lrzsz.html
TERMUX_PKG_DESCRIPTION="Tools for zmodem/xmodem/ymodem file transfer"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=0.12.21-rc1
_COMMIT=8cb2a6a29f6345f84d5e8248e2d3376166ab844f
TERMUX_PKG_SRCURL=https://github.com/UweOhse/lrzsz/archive/$_COMMIT.tar.gz
TERMUX_PKG_SHA256=56f79c3eb8f6b140693667802d516824c2e115a83d15e1b4d5adbe1deab7c2e0
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-syslog
--mandir=$TERMUX_PREFIX/share/man
"
termux_step_pre_configure() {
autoreconf -vfi
}

View File

@ -0,0 +1,11 @@
--- ./configure.ac.orig 2021-11-10 10:02:16.023654429 +0100
+++ ./configure.ac 2021-11-10 10:02:41.180869468 +0100
@@ -145,7 +145,7 @@
AC_SUBST(LIBS)
AM_GNU_GETTEXT(external)
-AM_GNU_GETTEXT_VERSION
+AM_GNU_GETTEXT_VERSION([0.19])
dnl AC_DEFINE_UNQUOTED(LOCALEDIR,"$prefix/$DATADIRNAME",[The name of the directory for locale stuff])

View File

@ -0,0 +1,26 @@
--- ./src/lrz.c.orig 2021-11-10 10:16:37.913534371 +0100
+++ ./src/lrz.c 2021-11-10 10:18:10.292214167 +0100
@@ -195,8 +195,9 @@
lrzsz_check_stderr(&config);
chkinvok(argv[0]); /* if called as [-]rzCOMMAND set flag */
-
+#ifndef __ANDROID__
setlocale (LC_ALL, "");
+#endif
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
--- ./src/lsz.c.orig 2021-11-10 10:28:24.495598664 +0100
+++ ./src/lsz.c 2021-11-10 10:28:44.152693678 +0100
@@ -268,8 +269,9 @@
Restricted=1;
lrzsz_check_stderr(&config);
chkinvok(argv[0]);
-
+#ifndef __ANDROID__
setlocale (LC_ALL, "");
+#endif
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);

60
packages/lrzsz/log.patch Normal file
View File

@ -0,0 +1,60 @@
--- ./src/iomode.c.orig 2021-11-10 10:09:28.314172038 +0100
+++ ./src/iomode.c 2021-11-10 10:08:57.053490735 +0100
@@ -26,6 +26,7 @@
#include "lrzsz.h"
#include <sys/types.h>
+#include <syslog.h>
static struct termios oldtty;
--- ./src/lrz.c.orig 2021-11-10 10:07:52.992094536 +0100
+++ ./src/lrz.c 2021-11-10 10:08:43.819868988 +0100
@@ -32,6 +32,7 @@
#include <errno.h>
#include <getopt.h>
#include <time.h>
+#include <syslog.h>
#include "timing.h"
#include "long-options.h"
--- ./src/log.c.orig 2021-11-10 10:08:42.623176240 +0100
+++ ./src/log.c 2021-11-10 10:08:49.183319213 +0100
@@ -28,6 +28,7 @@
#include <string.h>
#include <stdio.h>
#include <ctype.h>
+#include <syslog.h>
static const char *username;
static int lrzsz_locallog_severity=LOG_INFO;
--- ./src/zm.c.orig 2021-11-10 10:15:55.309272598 +0100
+++ ./src/zm.c 2021-11-10 10:16:04.896148184 +0100
@@ -40,6 +40,7 @@
#include "lrzsz.h"
#include <stdio.h>
+#include <syslog.h>
unsigned int Rxtimeout = 100; /* Tenths of seconds to wait for something */
--- ./src/lsz.c.orig 2021-11-10 10:26:52.693598169 +0100
+++ ./src/lsz.c 2021-11-10 10:27:05.573878846 +0100
@@ -33,6 +33,7 @@
#include <ctype.h>
#include <errno.h>
#include <getopt.h>
+#include <syslog.h>
struct lrzsz_config config;
--- ./src/zreadline.c.orig 2021-11-10 10:29:30.677040827 +0100
+++ ./src/zreadline.c 2021-11-10 10:29:41.483942987 +0100
@@ -30,6 +30,7 @@
#include <signal.h>
#include <ctype.h>
#include <errno.h>
+#include <syslog.h>
#include "error.h"

View File

@ -1,9 +1,6 @@
Hard links are not supported on Android 6.0+
diff -u -r ../lrzsz-0.12.20/src/Makefile.in ./src/Makefile.in
--- ../lrzsz-0.12.20/src/Makefile.in 1998-12-30 17:31:46.000000000 +0100
+++ ./src/Makefile.in 2017-01-25 01:17:46.135033894 +0100
@@ -370,16 +370,16 @@
--- ./src/Makefile.am.orig 2021-11-10 10:12:52.155281162 +0100
+++ ./src/Makefile.am 2021-11-10 10:13:10.452346589 +0100
@@ -16,19 +16,19 @@
install-exec-local:
rm -f $(DESTDIR)/$(bindir)/`echo lsb | sed -e '$(transform)'`
@ -23,4 +20,8 @@ diff -u -r ../lrzsz-0.12.20/src/Makefile.in ./src/Makefile.in
+ ln -s $(DESTDIR)/$(bindir)/`echo lrz |sed -e '$(transform)'` \
$(DESTDIR)/$(bindir)/`echo lrx |sed -e '$(transform)'`
# rm -f $(bindir)/`echo lrzszbug | sed -e '$(transform)'`
# ln $(bindir)/`echo lrzszbug |sed -e '$(transform)'` \
-# ln $(bindir)/`echo lrzszbug |sed -e '$(transform)'` \
+# ln -s $(bindir)/`echo lrzszbug |sed -e '$(transform)'` \
# $(bindir)/`echo lrzszbug |sed -e '$(transform)'`
uninstall-local: