From cf2d6bc9a113154eb1842d86f73508eb28062e92 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Sat, 26 Oct 2019 16:07:12 +0300 Subject: [PATCH] new package: xhost See https://github.com/termux/x11-packages/issues/167. --- x11-packages/xorg-xhost/build.sh | 9 +++++++++ x11-packages/xorg-xhost/xhost.c.patch | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 x11-packages/xorg-xhost/build.sh create mode 100644 x11-packages/xorg-xhost/xhost.c.patch diff --git a/x11-packages/xorg-xhost/build.sh b/x11-packages/xorg-xhost/build.sh new file mode 100644 index 000000000..082288c11 --- /dev/null +++ b/x11-packages/xorg-xhost/build.sh @@ -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 " +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" diff --git a/x11-packages/xorg-xhost/xhost.c.patch b/x11-packages/xorg-xhost/xhost.c.patch new file mode 100644 index 000000000..f4f039683 --- /dev/null +++ b/x11-packages/xorg-xhost/xhost.c.patch @@ -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) + {} +