summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-01-26 01:08:01 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-01-26 01:08:01 +0000
commit2a44f9b983f05afad6f3884989fa8afa918b4427 (patch)
tree815bdca6642b3c039cd406663e9b06026cfe3797
parent75b828e07fad4048c673e89deef52a8ab320f1cb (diff)
parentaa88e15da3d63f631c054a0213bbeb8bdc3f0b96 (diff)
downloadpackages-2a44f9b983f05afad6f3884989fa8afa918b4427.tar.gz
packages-2a44f9b983f05afad6f3884989fa8afa918b4427.tar.bz2
packages-2a44f9b983f05afad6f3884989fa8afa918b4427.tar.xz
packages-2a44f9b983f05afad6f3884989fa8afa918b4427.zip
Merge branch 'socat' into 'master'
user/socat: new package See merge request !147
-rw-r--r--user/socat/APKBUILD35
-rw-r--r--user/socat/netdb-internal.patch13
2 files changed, 48 insertions, 0 deletions
diff --git a/user/socat/APKBUILD b/user/socat/APKBUILD
new file mode 100644
index 000000000..93b519d45
--- /dev/null
+++ b/user/socat/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=socat
+pkgver=1.7.3.2
+pkgrel=0
+pkgdesc="Multipurpose network relay"
+url="http://www.dest-unreach.org/socat/"
+arch="all"
+options="!check" # No testsuite
+license="GPL-2.0-only"
+depends=""
+makedepends="openssl-dev"
+subpackages="$pkgname-doc"
+source="http://www.dest-unreach.org/socat/download/socat-$pkgver.tar.gz
+ netdb-internal.patch"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="540658b2a3d1b87673196282e5c62b97681bd0f1d1e4759ff9d72909d11060235ee9e9521a973603c1b00376436a9444248e5fbc0ffac65f8edb9c9bc28e7972 socat-1.7.3.2.tar.gz
+22a6e0c2317a9317997c98114daac258ebbcc3d8e58e49a6ebf24781b98967afed47c63807282582fa0909076fe349281f05e4462faacb90e7aabc853903d6e6 netdb-internal.patch"
diff --git a/user/socat/netdb-internal.patch b/user/socat/netdb-internal.patch
new file mode 100644
index 000000000..d1ebc8e5b
--- /dev/null
+++ b/user/socat/netdb-internal.patch
@@ -0,0 +1,13 @@
+--- socat-1.7.2.4.orig/compat.h
++++ socat-1.7.2.4/compat.h
+@@ -656,6 +656,10 @@
+ # define NETDB_INTERNAL h_NETDB_INTERNAL
+ #endif
+
++#if !defined(NETDB_INTERNAL)
++# define NETDB_INTERNAL (-1)
++#endif
++
+ #ifndef INET_ADDRSTRLEN
+ # define INET_ADDRSTRLEN sizeof(struct sockaddr_in)
+ #endif