portdbc: fixed source, added patch from FS#1404
This commit is contained in:
parent
8cf1cc06bc
commit
6e16cee306
@ -1 +1,2 @@
|
||||
d4705e5a31efad03059220151bac8315 follow_redirect_302.patch
|
||||
1d90fa7f09cf5b89bac0c86e866066f0 portdbc-1.1.tar.bz2
|
||||
|
@ -1,5 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/opt.pub
|
||||
RWSE3ohX2g5d/QXxtl+a/3q2VbHZ3o+iBJ1vzQ5obm4c5R3CAi8QB28a2JZPvVNjwuLDWrVXYFXEImbA2iZa6uCr4tB53cL7dwo=
|
||||
SHA256 (Pkgfile) = 77f091f8fbf16775d9eb5fab714c58312e673826f972fa891a36aafbcc1b7cae
|
||||
RWSE3ohX2g5d/YRolyhqO+VG02KVKiy6VfncngQ5O2gKllkpvSlpdg1KIykOcgt3NNNVVxvfJXbTrDpi3E7c+4V3+hKhlY3FIwc=
|
||||
SHA256 (Pkgfile) = ae643f8d11d0a2687b8d18ebe84882a9b2841b24e0781161b3f72156ccfd2c53
|
||||
SHA256 (.footprint) = 579fe0bf42746aa53ee020277ac7ecc861e0ff4c19afd8d35fb90e4469ab878f
|
||||
SHA256 (portdbc-1.1.tar.bz2) = a141b35e7f7c4cf24cb9f4629c13f1accf901331ed23871f2a4ef1b3d991abc2
|
||||
SHA256 (follow_redirect_302.patch) = e956d387d7c9f716da884b8be1e38c143a39a9354b73dda973d74227387b1722
|
||||
|
@ -6,12 +6,13 @@
|
||||
|
||||
name=portdbc
|
||||
version=1.1
|
||||
release=2
|
||||
source=(http://sepen.mooo.com/releases/$name-$version.tar.bz2)
|
||||
release=4
|
||||
source=(https://crux.nu/files/$name-$version.tar.bz2 follow_redirect_302.patch)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
patch -p1 < $SRC/follow_redirect_302.patch
|
||||
make
|
||||
make DESTDIR=$PKG MANDIR=/usr/share/man install
|
||||
}
|
||||
|
13
portdbc/follow_redirect_302.patch
Normal file
13
portdbc/follow_redirect_302.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff -u portdbc-1.1.orig/portdbc.c portdbc-1.1.new/portdbc.c
|
||||
--- portdbc-1.1.orig/portdbc.c 2011-07-13 19:04:19.000000000 +0300
|
||||
+++ portdbc-1.1.new/portdbc.c 2017-05-04 20:06:34.753471227 +0300
|
||||
@@ -44,6 +44,9 @@
|
||||
/* send all data to this function */
|
||||
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, writeCallback);
|
||||
|
||||
+ /* 302 http -> https */
|
||||
+ curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, 1L);
|
||||
+
|
||||
/* get it! */
|
||||
curl_easy_perform(curl_handle);
|
||||
|
Loading…
x
Reference in New Issue
Block a user