Add package: Mailutls
This commit is contained in:
parent
48d259bf78
commit
f61b9fb6d5
12
packages/mailutils/build.sh
Normal file
12
packages/mailutils/build.sh
Normal file
@ -0,0 +1,12 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://mailutils.org/
|
||||
TERMUX_PKG_DESCRIPTION="Mailutils is a swiss army knife of electronic mail handling. "
|
||||
TERMUX_PKG_LICENSE="GPL-3.0"
|
||||
TERMUX_PKG_MAINTAINER="@suhan-paradkar"
|
||||
TERMUX_PKG_VERSION=3.12
|
||||
TERMUX_PKG_SRCURL=https://ftp.gnu.org/gnu/mailutils/mailutils-$TERMUX_PKG_VERSION.tar.xz
|
||||
TERMUX_PKG_SHA256=6d43fa217c4ac63f057de87890c562d170bb92bc402368b5fbc579e4c2b3a158
|
||||
TERMUX_PKG_BUILD_DEPENDS="libandroid-glob, libcrypt"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
export LIBS="-landroid-glob"
|
||||
}
|
15
packages/mailutils/lu.c.patch
Normal file
15
packages/mailutils/lu.c.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff '--color=auto' -uNr mailutils-3.12/mh/tests/lu.c mailutils-3.12.mod/mh/tests/lu.c
|
||||
--- mailutils-3.12/mh/tests/lu.c 2021-01-05 18:37:40.000000000 +0530
|
||||
+++ mailutils-3.12.mod/mh/tests/lu.c 2021-05-10 19:40:53.565163140 +0530
|
||||
@@ -24,8 +24,11 @@
|
||||
|
||||
if (argc == 2)
|
||||
minuid = atoi (argv[1]);
|
||||
+#ifndef __ANDROID__
|
||||
while ((pw = getpwent ()))
|
||||
if (pw->pw_uid > minuid)
|
||||
printf ("%s\n", pw->pw_name);
|
||||
return 0;
|
||||
+#endif
|
||||
+ return 0;
|
||||
}
|
35
packages/mailutils/pwen.patch
Normal file
35
packages/mailutils/pwen.patch
Normal file
@ -0,0 +1,35 @@
|
||||
diff -uNr mh_alias_gram2.y mh_alias_gram.y
|
||||
--- ./mh/mh_alias_gram.y 2021-05-05 08:36:12.159978816 +0530
|
||||
+++ ./mh/mh_alias_gram.y 2021-05-05 08:52:30.847978875 +0530
|
||||
@@ -470,6 +470,7 @@
|
||||
if (grp)
|
||||
{
|
||||
struct passwd *pw;
|
||||
+ #ifndef __ANDROID__
|
||||
setpwent();
|
||||
while ((pw = getpwent ()))
|
||||
{
|
||||
@@ -477,6 +478,7 @@
|
||||
mu_list_append (lst, mu_strdup (pw->pw_name));
|
||||
}
|
||||
endpwent();
|
||||
+ #endif
|
||||
}
|
||||
return lst;
|
||||
}
|
||||
@@ -486,7 +488,7 @@
|
||||
{
|
||||
mu_list_t lst = list_create_or_die ();
|
||||
struct passwd *pw;
|
||||
-
|
||||
+#ifndef __ANDROID__
|
||||
setpwent();
|
||||
while ((pw = getpwent ()))
|
||||
{
|
||||
@@ -494,6 +496,7 @@
|
||||
mu_list_append (lst, mu_strdup (pw->pw_name));
|
||||
}
|
||||
endpwent();
|
||||
+#endif
|
||||
return lst;
|
||||
}
|
Loading…
Reference in New Issue
Block a user