aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-02-22 14:46:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-02-22 14:46:32 +0000
commit2f615791320847ce15ccdb11b6c3b4f213161062 (patch)
tree1a275313bbedeebc3128c911697f9f7cfeabd185 /main
parentc5416cf20701bb5896f80aafdc0f1f9a0d607bf2 (diff)
parent3f0e983d0c54dce5b33d3999608ba556f20c4e71 (diff)
downloadaports-2f615791320847ce15ccdb11b6c3b4f213161062.tar.bz2
aports-2f615791320847ce15ccdb11b6c3b4f213161062.tar.xz
Merge git://inari.aerdan.org/var/git/aports
Diffstat (limited to 'main')
-rw-r--r--main/socat/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/main/socat/APKBUILD b/main/socat/APKBUILD
new file mode 100644
index 000000000..af6162918
--- /dev/null
+++ b/main/socat/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
+# Maintainer:
+pkgname=socat
+pkgver=1.7.1.3
+pkgrel=0
+pkgdesc="Multipurpose relay for binary protocols"
+url="http://www.dest-unreach.org/socat/"
+arch="all"
+license="GPL"
+depends=
+makedepends="openssl-dev readline-dev"
+subpackages="$pkgname-doc"
+source="http://www.dest-unreach.org/$pkgname/download/$pkgname-$pkgver.tar.bz2"
+
+_builddir="$srcdir/$pkgname-$pkgver"
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+doc() {
+ mkdir -p "$subpkgdir"/usr/share
+ install -m644 "$_builddir"/EXAMPLES "$subpkgdir"/usr/share
+ mv "$pkgdir"/usr/share/man "$subpkgdir"/usr/share
+ install -m644 "$_builddir"/doc/*.html "$_builddir"/doc/*.css "$subpkgdir"/usr/share/"$pkgname"
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="2081987fb0cb0290b8105574058cb329 socat-1.7.1.3.tar.bz2"