blob: 5d2affcb28bc96ef683396dc4654c166c1405336 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=socat
pkgver=1.7.3.1
pkgrel=1
pkgdesc="Multipurpose relay for binary protocols"
url="http://www.dest-unreach.org/socat/"
arch="all"
license="GPL"
depends=
makedepends="libressl-dev readline-dev linux-headers"
subpackages="$pkgname-doc"
source="http://www.dest-unreach.org/$pkgname/download/$pkgname-$pkgver.tar.bz2
use-linux-headers.patch
netdb-internal.patch
socat-libressl.patch
"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$builddir"
for i in $source; do
case $i in
*.patch)
msg "Applying $i..."
patch -s -p1 -N -i "$srcdir"/$i || return 1
;;
esac
done
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
|| return 1
make || return 1
}
doc() {
default_doc
mkdir -p "$subpkgdir"/usr/share/socat/
install -m644 "$builddir"/EXAMPLES "$builddir"/doc/*.html "$builddir"/doc/*.css "$subpkgdir"/usr/share/"$pkgname"/
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
}
md5sums="334e46924f2b386299c9db2ac22bcd36 socat-1.7.3.1.tar.bz2
c87e489c0cb4baa22c8a051fab022f03 use-linux-headers.patch
66d19b98f4de8d8f1f4d67924c9d3da6 netdb-internal.patch
d87accad347a8f68ba4c1509dc3de063 socat-libressl.patch"
sha256sums="d2da659540c38139f388e9437bfaae16bb458d174d056cb3228432a8f489fbaa socat-1.7.3.1.tar.bz2
609f0499d9c61cff6aa4b9be2fa4a7051463de986742f5af5181af1c7238ae86 use-linux-headers.patch
ff671b41583a974f439c3ee8d223422d6f23ad508f404a4fbc240336eeb447a3 netdb-internal.patch
a543bc4ecaa5bdd3501594a859c232b9fab72ea45e6663950901870d9c62331b socat-libressl.patch"
sha512sums="463340f578d4d1d54458b8ef9573ad3eff51dbcc736205e1b62e9a4782770d4bb76e6a07506350fd35405b130660559aaa79dfa2664c53ea268d7d64231f9b32 socat-1.7.3.1.tar.bz2
2032b6528cb27b69d8fb6a6f64af32fcc1f6e4934bb0d7c8931b38ab7ad5e27f6f4344a6cf49751fa3178cd725f954e195373362f7d5929e587d7f0309346059 use-linux-headers.patch
22a6e0c2317a9317997c98114daac258ebbcc3d8e58e49a6ebf24781b98967afed47c63807282582fa0909076fe349281f05e4462faacb90e7aabc853903d6e6 netdb-internal.patch
ef756e5c5ef21c6d81942cbc47e31a3f3a07a4a576bd92335e150f71deb26cbb059e1fb2e431fa2fa9c27fb430b1d3273972b49eda0a35a06bb6bd4e75788521 socat-libressl.patch"
|