summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-03-13 17:25:51 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-03-13 17:29:44 +0100
commite3cc152247ed702ab650a886d554ef244bccecf4 (patch)
treee85ab648228a1ebd0d0e5fc9cb62f0060718db56
parentImport from official repositories (diff)
downloadpkgbuilds-delegate.tar.gz
pkgbuilds-delegate.tar.zst
pkgbuilds-delegate.zip
Add READYCC patch from https://stackoverflow.com/a/62457597delegate
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD17
-rw-r--r--readycc.patch29
3 files changed, 49 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5057b64..0b8e149 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,22 @@
1pkgbase = delegate 1pkgbase = delegate
2 pkgdesc = Caching and converting multyprotocol proxy. For example, you may use it as NNTP web interface 2 pkgdesc = Caching and converting multyprotocol proxy. For example, you may use it as NNTP web interface
3 pkgver = 9.9.13 3 pkgver = 9.9.13
4 pkgrel = 3 4 pkgrel = 4
5 url = http://www.delegate.org/ 5 url = http://www.delegate.org/
6 install = delegate.install 6 install = delegate.install
7 arch = x86_64 7 arch = x86_64
8 license = GPL 8 license = GPL
9 depends = libnsl
9 depends = pam 10 depends = pam
10 options = !strip 11 optdepends = openssl-1.0: TLS support
12 optdepends = zlib: Zlib support
13 options = strip
11 source = ftp://ftp:ps790809%40inbox%2Eru@ftp.delegate.org/pub/DeleGate/delegate9.9.13.tar.gz 14 source = ftp://ftp:ps790809%40inbox%2Eru@ftp.delegate.org/pub/DeleGate/delegate9.9.13.tar.gz
12 source = ssl3.patch 15 source = ssl3.patch
13 md5sums = b617959aa785b751a6292dad7487c722 16 source = readycc.patch
14 md5sums = de7ebae5f5ba97509dc26a19e8e0aaf1 17 sha384sums = 3118c948643431c9cd232091a23ad6eca05fbe32c42537d3e8178cebce4a4916e51544874c19b509a4f5158d00198932
18 sha384sums = 589f1c9c086340d4e5b3d111b176925951a656007495aed0100d7cd7c5051cfb8800f4283a01cfbb2de6e78baea6472a
19 sha384sums = 6f549bedaa8bb840759ab043aa9e71befd40841b440d3d5ba78a1a3efe3449038064883def995af82508da2c2cbab62c
15 20
16pkgname = delegate 21pkgname = delegate
17 22
diff --git a/PKGBUILD b/PKGBUILD
index ffc6f85..95f8bd7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,30 @@
1# $Id: PKGBUILD 266875 2017-11-15 14:29:11Z foutrelis $ 1# $Id: PKGBUILD 266875 2017-11-15 14:29:11Z foutrelis $
2# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> 2# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
3# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> 3# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
4# Contributor: Kristóf Marussy <kristof@marussy.com>
4 5
5pkgname=delegate 6pkgname=delegate
6pkgver=9.9.13 7pkgver=9.9.13
7pkgrel=3 8pkgrel=4
8pkgdesc="Caching and converting multyprotocol proxy. For example, you may use it as NNTP web interface" 9pkgdesc="Caching and converting multyprotocol proxy. For example, you may use it as NNTP web interface"
9arch=('x86_64') 10arch=('x86_64')
10url="http://www.delegate.org/" 11url="http://www.delegate.org/"
11license=('GPL') 12license=('GPL')
12depends=('pam') 13depends=('libnsl' 'pam')
13options=(!strip) 14optdepends=('openssl-1.0: TLS support' 'zlib: Zlib support')
15options=(strip)
14install=delegate.install 16install=delegate.install
15source=(ftp://ftp:ps790809%40inbox%2Eru@ftp.delegate.org/pub/DeleGate/delegate$pkgver.tar.gz 17source=(ftp://ftp:ps790809%40inbox%2Eru@ftp.delegate.org/pub/DeleGate/delegate$pkgver.tar.gz
16 ssl3.patch) 18 ssl3.patch
17md5sums=('b617959aa785b751a6292dad7487c722' 19 readycc.patch)
18 'de7ebae5f5ba97509dc26a19e8e0aaf1') 20sha384sums=('3118c948643431c9cd232091a23ad6eca05fbe32c42537d3e8178cebce4a4916e51544874c19b509a4f5158d00198932'
21 '589f1c9c086340d4e5b3d111b176925951a656007495aed0100d7cd7c5051cfb8800f4283a01cfbb2de6e78baea6472a'
22 '6f549bedaa8bb840759ab043aa9e71befd40841b440d3d5ba78a1a3efe3449038064883def995af82508da2c2cbab62c')
19 23
20prepare() { 24prepare() {
21 cd "$srcdir"/$pkgname$pkgver 25 cd "$srcdir"/$pkgname$pkgver
22 patch -p1 <"$srcdir"/ssl3.patch 26 patch -p1 <"$srcdir"/ssl3.patch
27 patch -p1 <"$srcdir"/readycc.patch
23} 28}
24 29
25build() { 30build() {
diff --git a/readycc.patch b/readycc.patch
new file mode 100644
index 0000000..399c9c0
--- /dev/null
+++ b/readycc.patch
@@ -0,0 +1,29 @@
1diff -r -c1 orig/delegate9.9.13/include/fpoll.h delegate9.9.13/include/fpoll.h
2*** orig/delegate9.9.13/include/fpoll.h Sun May 18 05:11:20 2014
3--- delegate9.9.13/include/fpoll.h Fri Jun 19 12:16:16 2020
4***************
5*** 7,8 ****
6--- 7,9 ----
7 */
8+ #define _LIBIO_H // @2020-0619, @SatoxITS @ITS-more
9 #ifdef __linux__
10diff -r -c1 orig/delegate9.9.13/include/ystring.h delegate9.9.13/include/ystring.h
11*** orig/delegate9.9.13/include/ystring.h Sun Aug 10 17:29:50 2014
12--- delegate9.9.13/include/ystring.h Fri Jun 19 12:15:15 2020
13***************
14*** 1502,1503 ****
15--- 1502,1514 ----
16
17+ // the shortest patch for comilation of delegate9.9.13 on recent Linuxes
18+ // @2020-0619, @SatoxITS, @ITS-more
19+ #pragma GCC diagnostic ignored "-Wparentheses"
20+ #pragma GCC diagnostic ignored "-Wcomment"
21+ #pragma GCC diagnostic ignored "-Wunused-result"
22+ #pragma GCC diagnostic ignored "-Wunused-value"
23+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
24+ #pragma GCC diagnostic ignored "-Wformat-extra-args"
25+ #pragma GCC diagnostic ignored "-Wnarrowing"
26+ #pragma GCC diagnostic ignored "-Wstringop-overflow=" // for Pi
27+
28 #endif /* _YSTRING_H */
29