summaryrefslogtreecommitdiff
path: root/portdbc
diff options
context:
space:
mode:
authorFredrik Rinnestam <fredrik@crux.nu>2017-06-17 18:37:48 +0200
committerFredrik Rinnestam <fredrik@crux.nu>2017-06-17 18:37:48 +0200
commit6e16cee3067f1777b57a7219ca71ed44c552b95b (patch)
treeb89abb6ec738ec02901a480b698b401347bf21f4 /portdbc
parent8cf1cc06bc61fe7956fa315a8332da4b5d37432f (diff)
downloadopt-6e16cee3067f1777b57a7219ca71ed44c552b95b.tar.gz
opt-6e16cee3067f1777b57a7219ca71ed44c552b95b.tar.xz
portdbc: fixed source, added patch from FS#1404
Diffstat (limited to 'portdbc')
-rw-r--r--portdbc/.md5sum1
-rw-r--r--portdbc/.signature5
-rw-r--r--portdbc/Pkgfile5
-rw-r--r--portdbc/follow_redirect_302.patch13
4 files changed, 20 insertions, 4 deletions
diff --git a/portdbc/.md5sum b/portdbc/.md5sum
index f75b38625..10c10313f 100644
--- a/portdbc/.md5sum
+++ b/portdbc/.md5sum
@@ -1 +1,2 @@
+d4705e5a31efad03059220151bac8315 follow_redirect_302.patch
1d90fa7f09cf5b89bac0c86e866066f0 portdbc-1.1.tar.bz2
diff --git a/portdbc/.signature b/portdbc/.signature
index 1876dd361..fce809e8d 100644
--- a/portdbc/.signature
+++ b/portdbc/.signature
@@ -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
diff --git a/portdbc/Pkgfile b/portdbc/Pkgfile
index 5a02e2849..566ecd383 100644
--- a/portdbc/Pkgfile
+++ b/portdbc/Pkgfile
@@ -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
}
diff --git a/portdbc/follow_redirect_302.patch b/portdbc/follow_redirect_302.patch
new file mode 100644
index 000000000..3f7363f62
--- /dev/null
+++ b/portdbc/follow_redirect_302.patch
@@ -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);
+

Generated by cgit