new package: xhost

See https://github.com/termux/x11-packages/issues/167.
This commit is contained in:
Leonid Pliushch 2019-10-26 16:07:12 +03:00 committed by Yaksh Bariya
parent 0e0b39826d
commit cf2d6bc9a1
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,9 @@
TERMUX_PKG_HOMEPAGE=https://xorg.freedesktop.org/
TERMUX_PKG_DESCRIPTION="Server access control program for X"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
TERMUX_PKG_VERSION=1.0.8
TERMUX_PKG_SRCURL=https://xorg.freedesktop.org/archive/individual/app/xhost-$TERMUX_PKG_VERSION.tar.bz2
TERMUX_PKG_SHA256=a2dc3c579e13674947395ef8ccc1b3763f89012a216c2cc6277096489aadc396
TERMUX_PKG_DEPENDS="libx11, libxmu"
TERMUX_PKG_BUILD_DEPENDS="xorg-util-macros"

View File

@ -0,0 +1,12 @@
diff -uNr xhost-1.0.8/xhost.c xhost-1.0.8.mod/xhost.c
--- xhost-1.0.8/xhost.c 2019-02-20 00:51:09.000000000 +0200
+++ xhost-1.0.8.mod/xhost.c 2019-10-26 16:06:33.210426710 +0300
@@ -160,7 +160,7 @@
}
#endif /* NEEDSOCKETS */
-#if defined(__CYGWIN__) || defined(WIN32)
+#if defined(__CYGWIN__) || defined(WIN32) || defined(__ANDROID__)
void sethostent(int x)
{}