summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoreolianoe2017-06-17 15:39:29 +0200
committereolianoe2017-06-17 15:39:29 +0200
commit356bb1034df70ef7612f9d0b7e8f0d2554b44719 (patch)
tree50fcb8eacd05177e5fed9eea64757260769b4fd7
parent1617bef3bb8641bc0c326f7de6485747d563370a (diff)
downloadaur-356bb1034df70ef7612f9d0b7e8f0d2554b44719.tar.gz
fix patch
-rw-r--r--.SRCINFO8
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD8
-rw-r--r--fixed_test_code.patch21
4 files changed, 29 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index edf40b84ce76..40a8799bd797 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Wed Apr 26 10:05:17 UTC 2017
+# Sat Jun 17 13:38:14 UTC 2017
pkgbase = libevhtp-seafile
pkgdesc = A more flexible replacement for libevent's httpd API. [Built for seafile]
pkgver = 1.2.0
- pkgrel = 1
+ pkgrel = 2
epoch = 2
url = https://github.com/haiwen/libevhtp
arch = i686
@@ -18,9 +18,9 @@ pkgbase = libevhtp-seafile
provides = libevhtp
conflicts = libevhtp
source = libevhtp-1.2.0.tar.gz::https://github.com/haiwen/libevhtp/archive/1.2.0.tar.gz
- source = fix_test_code.diff::https://github.com/haiwen/libevhtp/commit/18c649203f009ef1d77d6f8301eba09af3777adf.diff
+ source = fixed_test_code.patch
sha256sums = d8d98072693f5f68ccd74d327dedfa2f6add4446ac2799689c2f58dd480aa301
- sha256sums = e541796e94dcc71c9167bc64aa2e76d13ef327605e40240e8abd736385bfccb8
+ sha256sums = 0e30ff28d0bda592fd70f9e4bee54499473c9b7de6e017422c8c6420735eb992
pkgname = libevhtp-seafile
diff --git a/.gitignore b/.gitignore
index fb15920eb225..7b4db42c16c2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,5 @@
*.gz
*.xz
*.zip
-*.diff
/pkg
/src
diff --git a/PKGBUILD b/PKGBUILD
index e2cdfdecedae..d8d2783db029 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
_pkgname=libevhtp
pkgname="${_pkgname}"-seafile
pkgver=1.2.0
-pkgrel=1
+pkgrel=2
epoch=2
pkgdesc="A more flexible replacement for libevent's httpd API. [Built for seafile]"
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
@@ -17,14 +17,14 @@ makedepends=('cmake')
provides=('libevhtp')
conflicts=('libevhtp')
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz"
- "fix_test_code.diff::${url}/commit/18c649203f009ef1d77d6f8301eba09af3777adf.diff")
+ "fixed_test_code.patch")
sha256sums=('d8d98072693f5f68ccd74d327dedfa2f6add4446ac2799689c2f58dd480aa301'
- 'e541796e94dcc71c9167bc64aa2e76d13ef327605e40240e8abd736385bfccb8')
+ '0e30ff28d0bda592fd70f9e4bee54499473c9b7de6e017422c8c6420735eb992')
prepare(){
cd "${srcdir}/${_pkgname}-${pkgver}"
- patch -p1 < "${srcdir}"/fix_test_code.diff
+ patch -p1 < "${srcdir}"/fixed_test_code.patch
}
diff --git a/fixed_test_code.patch b/fixed_test_code.patch
new file mode 100644
index 000000000000..e70a76cc5a11
--- /dev/null
+++ b/fixed_test_code.patch
@@ -0,0 +1,21 @@
+From 18c649203f009ef1d77d6f8301eba09af3777adf Mon Sep 17 00:00:00 2001
+From: lins05 <linshuai2012@gmail.com>
+Date: Tue, 19 Aug 2014 11:11:34 +0800
+Subject: [PATCH] fixed test code
+
+---
+ test_proxy.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/test_proxy.c b/test_proxy.c
+index 2b391613..4e3719d6 100644
+--- a/test_proxy.c
++++ b/test_proxy.c
+@@ -4,6 +4,7 @@
+ #include <stdint.h>
+ #include <errno.h>
+ #include <evhtp.h>
++#include <signal.h>
+
+
+ int