summaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authorPavel Vinogradov2022-03-17 21:11:06 -0400
committerPavel Vinogradov2022-03-17 21:11:06 -0400
commitcf9fc6ed2b96f835b1b39f42a9f2924f11afb1a6 (patch)
tree6934caef4a5fd42d09bb8307c073dfc6c5f07ad5 /ftp
parent3857f32d143fa37db0cea7aff95eb54fe131c385 (diff)
ftp/transmission-i2p: fixed github url & added libressl 3.5.x patch
Diffstat (limited to 'ftp')
-rwxr-xr-xftp/transmission-i2p/DETAILS2
-rw-r--r--ftp/transmission-i2p/HISTORY6
-rwxr-xr-xftp/transmission-i2p/PRE_BUILD8
-rw-r--r--ftp/transmission-i2p/patches-libressl-3.5/struct-dh_st.patch37
4 files changed, 51 insertions, 2 deletions
diff --git a/ftp/transmission-i2p/DETAILS b/ftp/transmission-i2p/DETAILS
index cf4ecf8be7..fef99e462d 100755
--- a/ftp/transmission-i2p/DETAILS
+++ b/ftp/transmission-i2p/DETAILS
@@ -4,7 +4,7 @@
FORCE_DOWNLOAD=on
SOURCE_IGNORE=volatile
SOURCE=$SPELL-git.tar.xz
- SOURCE_URL[0]=git://github.com/l-n-s/${SPELL}.git:${SPELL}-git
+ SOURCE_URL[0]=git_http://github.com/l-n-s/${SPELL}.git:${SPELL}-git
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-git
WEB_SITE=https://github.com/l-n-s/transmission-i2p
LICENSE[0]=MIT
diff --git a/ftp/transmission-i2p/HISTORY b/ftp/transmission-i2p/HISTORY
index 93bfdce932..3cedc7bc2a 100644
--- a/ftp/transmission-i2p/HISTORY
+++ b/ftp/transmission-i2p/HISTORY
@@ -1,3 +1,9 @@
+2022-03-17 Pavel Vinogradov <public@sourcemage.org>
+ * DETAILS: git -> git_http,
+ (https://github.blog/2021-09-01-improving-git-protocol-security-github/)
+ * PRE_BUILD, patches-libressl-3.5/struct-dh_st.patch: added patch to build
+ with LibreSSL 3.5.x
+
2021-10-04 Pavel Vinogradov <public@sourcemage.org>
* BUILD, CONFIGURE, DEPENDS, DETAILS, PRE_BUILD, PREPARE, patches/package_name.patch,
patches/platform-quota.patch: created
diff --git a/ftp/transmission-i2p/PRE_BUILD b/ftp/transmission-i2p/PRE_BUILD
index 0ec8ad8845..439dd55d6d 100755
--- a/ftp/transmission-i2p/PRE_BUILD
+++ b/ftp/transmission-i2p/PRE_BUILD
@@ -1,4 +1,10 @@
default_pre_build &&
cd $SOURCE_DIRECTORY &&
-apply_patch_dir patches
+apply_patch_dir patches &&
+
+if spell_ok libressl; then
+ local LIBRESSL_VER="$(installed_version libressl)" &&
+ LIBRESSL_VER=${LIBRESSL_VER%.*} &&
+ apply_patch_dir "patches-libressl-${LIBRESSL_VER}"
+fi
diff --git a/ftp/transmission-i2p/patches-libressl-3.5/struct-dh_st.patch b/ftp/transmission-i2p/patches-libressl-3.5/struct-dh_st.patch
new file mode 100644
index 0000000000..8ec5557f55
--- /dev/null
+++ b/ftp/transmission-i2p/patches-libressl-3.5/struct-dh_st.patch
@@ -0,0 +1,37 @@
+diff --git a/libtransmission/crypto.h b/libtransmission/crypto.h
+--- a/libtransmission/crypto.h
++++ b/libtransmission/crypto.h
+@@ -34,6 +34,33 @@ enum
+ KEY_LEN = 96
+ };
+
++struct dh_st
++ {
++ /* This first argument is used to pick up errors when
++ * a DH is passed instead of a EVP_PKEY */
++ int pad;
++ int version;
++ BIGNUM *p;
++ BIGNUM *g;
++ long length; /* optional */
++ BIGNUM *pub_key; /* g^x */
++ BIGNUM *priv_key; /* x */
++
++ int flags;
++ BN_MONT_CTX *method_mont_p;
++ /* Place holders if we want to do X9.42 DH */
++ BIGNUM *q;
++ BIGNUM *j;
++ unsigned char *seed;
++ int seedlen;
++ BIGNUM *counter;
++
++ int references;
++ CRYPTO_EX_DATA ex_data;
++ const DH_METHOD *meth;
++ ENGINE *engine;
++ };
++
+ /** @brief Holds state information for encrypted peer communications */
+ typedef struct
+ {