Browse Source

rhash: fix path to /etc

android-5
Leonid Plyushch 6 years ago
parent
commit
32580491d8
  1. 1
      packages/rhash/build.sh
  2. 12
      packages/rhash/parse_cmdline.c.patch

1
packages/rhash/build.sh

@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://github.com/rhash/RHash
TERMUX_PKG_DESCRIPTION="Console utility for calculation and verification of magnet links and a wide range of hash sums" TERMUX_PKG_DESCRIPTION="Console utility for calculation and verification of magnet links and a wide range of hash sums"
TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_VERSION=1.3.8 TERMUX_PKG_VERSION=1.3.8
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=be536a56acfefc87dbc8b1db30fc639020e41edf05518185ea98630e3df7c04c TERMUX_PKG_SHA256=be536a56acfefc87dbc8b1db30fc639020e41edf05518185ea98630e3df7c04c
TERMUX_PKG_SRCURL=https://github.com/rhash/RHash/archive/v$TERMUX_PKG_VERSION.tar.gz TERMUX_PKG_SRCURL=https://github.com/rhash/RHash/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_DEPENDS="openssl" TERMUX_PKG_DEPENDS="openssl"

12
packages/rhash/parse_cmdline.c.patch

@ -0,0 +1,12 @@
diff -uNr RHash-1.3.8/parse_cmdline.c RHash-1.3.8.mod/parse_cmdline.c
--- RHash-1.3.8/parse_cmdline.c 2019-02-04 06:05:28.000000000 +0200
+++ RHash-1.3.8.mod/parse_cmdline.c 2019-03-01 20:33:22.425704712 +0200
@@ -547,7 +547,7 @@
static const char* find_conf_file(void)
{
#ifndef SYSCONFDIR
-# define SYSCONFDIR "/etc"
+# define SYSCONFDIR "@TERMUX_PREFIX@/etc"
#endif
#define CONFIG_FILENAME "rhashrc"
Loading…
Cancel
Save