blob: 53e0c4f63b793ba0d5aac976d1ac8c676ba5ac08 (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# Maintainer: Gabor Pali <pali.gabor@gmail.com>
pkgname=socat
pkgver=1.7.4.4
pkgrel=0 # base: 0
pkgdesc="Multipurpose relay for binary protocols (stripped)"
options="!check"
url="http://www.dest-unreach.org/socat/"
arch="all"
license="GPL-2.0-only WITH OpenSSL-Exception"
makedepends="linux-headers"
subpackages="$pkgname-with-udp:_udp"
source="http://www.dest-unreach.org/socat/download/socat-$pkgver.tar.gz
use-linux-headers.patch
netdb-internal.patch
no-extras.patch
"
_srcdir="$srcdir"/"$pkgname"-"$pkgver"
_stripped_build_dir="$srcdir"/build-stripped
_with_udp_build_dir="$srcdir"/build-with-udp
prepare() {
default_prepare
mkdir -p \
"$_stripped_build_dir" \
"$_with_udp_build_dir"
}
_options="--srcdir=$_srcdir
--build=$CBUILD
--host=$CHOST
--disable-stdio
--disable-fdnum
--disable-file
--disable-creat
--disable-gopen
--disable-pipe
--disable-termios
--disable-ip6
--disable-rawip
--disable-genericsocket
--disable-interface
--disable-sctp
--disable-vsock
--disable-socks4
--disable-socks4a
--disable-proxy
--disable-exec
--disable-system
--disable-pty
--disable-fs
--disable-readline
--disable-openssl
--disable-tun
--disable-sycls
--disable-filan
--disable-retry
--disable-libwrap
--prefix=/usr"
build() {
msg "Building stripped (strict)"
cd "$_stripped_build_dir"
"$_srcdir"/configure \
$_options \
--disable-udp
make -j8
msg "Building with UDP"
cd "$_with_udp_build_dir"
"$_srcdir"/configure \
$_options
make -j8
}
package() {
cd "$_stripped_build_dir"
make DESTDIR="$pkgdir" install
}
_udp() {
pkgdesc="Multipurpose relay for binary protocols (with UDP enabled)"
provides="socat"
mkdir -p "$subpkgdir"
cd "$_with_udp_build_dir"
make DESTDIR="$subpkgdir" install
}
sha512sums="
709fd393642d4249152d75add4d489ea76e6118c9e6740e796f029e8c5ddd4f5c9218d587977fc57ada640f635a996cbbe4055275236a169881bb2be1d3e5df9 socat-1.7.4.4.tar.gz
2032b6528cb27b69d8fb6a6f64af32fcc1f6e4934bb0d7c8931b38ab7ad5e27f6f4344a6cf49751fa3178cd725f954e195373362f7d5929e587d7f0309346059 use-linux-headers.patch
22a6e0c2317a9317997c98114daac258ebbcc3d8e58e49a6ebf24781b98967afed47c63807282582fa0909076fe349281f05e4462faacb90e7aabc853903d6e6 netdb-internal.patch
de2ca2d318ada9ac7140ad6fbc42006ea0ef040d68cc579ed1452246fd16a7eceb4ce577336bc20e513cf6fe24da296447529ec36c22fa17a4c18be29e180b81 no-extras.patch
"
|