Browse Source
Also fixes overwriting of config file during package upgrade. Use config in etc as default instead (leaves config in users home to allow overriding).android-5
Marcel Dopita
7 years ago
committed by
Fredrik Fornwall
6 changed files with 39 additions and 10 deletions
@ -1,16 +1,18 @@ |
|||||
TERMUX_PKG_HOMEPAGE=https://nzbget.net/ |
TERMUX_PKG_HOMEPAGE=https://nzbget.net/ |
||||
TERMUX_PKG_DESCRIPTION="The most efficient usenet downloader" |
TERMUX_PKG_DESCRIPTION="The most efficient usenet downloader" |
||||
TERMUX_PKG_VERSION=19.1 |
TERMUX_PKG_VERSION=20.0 |
||||
TERMUX_PKG_SRCURL=https://github.com/nzbget/nzbget/releases/download/v${TERMUX_PKG_VERSION}/nzbget-${TERMUX_PKG_VERSION}-src.tar.gz |
TERMUX_PKG_SRCURL=https://github.com/nzbget/nzbget/releases/download/v${TERMUX_PKG_VERSION}/nzbget-${TERMUX_PKG_VERSION}-src.tar.gz |
||||
TERMUX_PKG_SHA256=06df42356ac2d63bbc9f7861abe9c3216df56fa06802e09e8a50b05f4ad95ce6 |
TERMUX_PKG_SHA256=04dc36d432549c33d55145ecd95cc4309b3ab4a7731a1a03d954de389eacd06f |
||||
TERMUX_PKG_DEPENDS="libxml2, ncurses, openssl, unrar, p7zip" |
TERMUX_PKG_DEPENDS="libxml2, ncurses, openssl, unrar, p7zip" |
||||
TERMUX_PKG_BUILD_IN_SRC=yes |
TERMUX_PKG_BUILD_IN_SRC=yes |
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_c_bigendian=no" |
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_c_bigendian=no" |
||||
|
|
||||
termux_step_create_debscripts () { |
termux_step_create_debscripts () { |
||||
echo "#!$TERMUX_PREFIX/bin/sh" > postinst |
echo "#!$TERMUX_PREFIX/bin/sh" > postinst |
||||
|
echo "if [ -z \"\$2\" ]; then" >> postinst # Run only on fresh install, not on upgrade |
||||
echo "sed -e 's|^\(CertStore=\).*|\1$TERMUX_PREFIX/etc/tls/cert.pem|g" >> postinst |
echo "sed -e 's|^\(CertStore=\).*|\1$TERMUX_PREFIX/etc/tls/cert.pem|g" >> postinst |
||||
echo "s|^\(ControlPassword=\).*|\1|g' $TERMUX_PREFIX/share/nzbget/nzbget.conf > ~/.nzbget" >> postinst |
echo "s|^\(ControlPassword=\).*|\1|g' $TERMUX_PREFIX/share/nzbget/nzbget.conf > $TERMUX_PREFIX/etc/nzbget.conf" >> postinst |
||||
|
echo "fi" >> postinst |
||||
echo "exit 0" >> postinst |
echo "exit 0" >> postinst |
||||
chmod 0755 postinst |
chmod 0755 postinst |
||||
} |
} |
||||
|
@ -0,0 +1,14 @@ |
|||||
|
diff --git a/daemon/main/nzbget.h b/daemon/main/nzbget.h
|
||||
|
index bfaf03b9..eeb4445c 100644
|
||||
|
--- a/daemon/main/nzbget.h
|
||||
|
+++ b/daemon/main/nzbget.h
|
||||
|
@@ -254,7 +254,9 @@ typedef int pid_t;
|
||||
|
#include <openssl/sha.h> |
||||
|
#include <openssl/pem.h> |
||||
|
#include <openssl/x509v3.h> |
||||
|
+#ifndef OPENSSL_NO_COMP
|
||||
|
#include <openssl/comp.h> |
||||
|
+#endif
|
||||
|
#endif /* HAVE_OPENSSL */ |
||||
|
|
||||
|
#ifdef HAVE_REGEX_H |
@ -0,0 +1,14 @@ |
|||||
|
diff --git a/daemon/connect/TlsSocket.cpp b/daemon/connect/TlsSocket.cpp
|
||||
|
index 158101e4..2d426f22 100644
|
||||
|
--- a/daemon/connect/TlsSocket.cpp
|
||||
|
+++ b/daemon/connect/TlsSocket.cpp
|
||||
|
@@ -214,7 +214,9 @@ void TlsSocket::Final()
|
||||
|
//ENGINE_cleanup(); |
||||
|
CONF_modules_free(); |
||||
|
CONF_modules_unload(1); |
||||
|
+#ifndef OPENSSL_NO_COMP
|
||||
|
COMP_zlib_cleanup(); |
||||
|
+#endif
|
||||
|
ERR_free_strings(); |
||||
|
EVP_cleanup(); |
||||
|
CRYPTO_cleanup_all_ex_data(); |
Loading…
Reference in new issue