X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by lists.alpinelinux.org (Postfix) with ESMTP id 80C725C468F for ; Fri, 29 Jul 2016 13:25:04 +0000 (GMT) Received: by mail-wm0-f68.google.com with SMTP id x83so15713242wma.3 for ; Fri, 29 Jul 2016 06:25:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leishman.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=0ChuhH8lX959kAd81wQw8en9BbVkyYoIh7XaTPLq1ow=; b=fckSwcB+6RuGHW/z1ytZn0ZLtal0+zqEKsAVggGTo85I+33SDI5/N3gS7TZzl0sIRn D3uQrYoYtVAWpL+2MLGF+rHB/6EItqj7bVcZzaraU5daP1tIeZy5XKm3yrTJeTp8Ez/I cJJXBifX4vGi0SzvjGIGdA6zvfzSKpZlPwrQI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=0ChuhH8lX959kAd81wQw8en9BbVkyYoIh7XaTPLq1ow=; b=VRKr6oaoty0y0b5FKHXMiFeUDEQBqz2K5L5JFjSQZlmVcWaRsZmMzG++r2oxvrwzbX 0ezbcq6+GSgRqID++IGwAYH2Yq4NIziBn0KowGY7trMVHE5SZ4/9Ay/JDqjoLNpLJub+ tadsaJwGcxnXEGxgIs8vov9y74N3qmu82/MvyMOq/nZ3/voaxIiu+LFVGh75Nk64AzcV fxpu+AGWlRlmxa4/gsLypS5AdZV48eLX6/3YoNEFv9dfFfgvMKKfk1yysTPD4kyZqI1a hQnZ65LAOmb/t0g1jEqNK70YeEM6sbJEtw5vjC4OglkAO6kBMxGaVt1Nnw6+qLM6z8lO 0yzw== X-Gm-Message-State: AEkoouuaFnVbdjh9/wokC6t3eZSmrkejGpyzNwpTqINUEeJVkuPWZp8hLoKgKHzn5FmMRg== X-Received: by 10.28.175.16 with SMTP id y16mr1108312wme.64.1469798703455; Fri, 29 Jul 2016 06:25:03 -0700 (PDT) Received: from humia.fritz.box (p549FDF19.dip0.t-ipconnect.de. [84.159.223.25]) by smtp.gmail.com with ESMTPSA id v189sm3057733wmv.12.2016.07.29.06.25.02 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 29 Jul 2016 06:25:02 -0700 (PDT) From: Chris Leishman To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH 2/2] testing/libneo4j-client: new aport Date: Fri, 29 Jul 2016 15:25:00 +0200 Message-Id: <20160729132500.64587-2-chris@leishman.org> X-Mailer: git-send-email 2.9.2 In-Reply-To: <20160729132500.64587-1-chris@leishman.org> References: <20160729132500.64587-1-chris@leishman.org> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: https://github.com/cleishm/libneo4j-client Client library and CLI for the Neo4j graph database --- testing/libneo4j-client/APKBUILD | 74 ++++++++++++++++++++++++++++ testing/libneo4j-client/fortify_compat.patch | 31 ++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 testing/libneo4j-client/APKBUILD create mode 100644 testing/libneo4j-client/fortify_compat.patch diff --git a/testing/libneo4j-client/APKBUILD b/testing/libneo4j-client/APKBUILD new file mode 100644 index 0000000..56aa5c0 --- /dev/null +++ b/testing/libneo4j-client/APKBUILD @@ -0,0 +1,74 @@ +# Contributor: Chris Leishman +# Maintainer: Chris Leishman +pkgname=libneo4j-client +pkgver=1.1.0 +pkgrel=0 +pkgdesc="Client library for the Neo4j graph database" +url="https://github.com/cleishm/libneo4j-client" +arch="all" +license="ASL 2.0" +depends="openssl" +depends_dev="openssl-dev" +makedepends="$depends_dev automake autoconf libtool check-dev doxygen pkgconfig fts fts-dev libedit-dev libcypher-parser-dev" +install="" +subpackages="$pkgname-dev $pkgname-doc neo4j-client neo4j-client-doc" +source="https://github.com/cleishm/libneo4j-client/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz fortify_compat.patch" + +_builddir="$srcdir"/"$pkgname-$pkgver" +build() { + cd "$_builddir" + ./configure \ + --prefix=/usr \ + || return 1 + make || return 1 + make LIBS="-lfts" check || return 1 + make doc || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + mkdir -p "$pkgdir"/usr/share/doc/libneo4j-client + mv doc/html/* "$pkgdir"/usr/share/doc/libneo4j-client/ +} + +doc() { + depends="$depends_doc" + pkgdesc="$pkgdesc (documentation)" + arch=${arch_doc:-"noarch"} + install_if="docs $pkgname=$pkgver-r$pkgrel" + + if [ "X$subpkgname" = "Xlibneo4j-client-doc" ]; then + mkdir -p "$subpkgdir"/usr/share + mv "$pkgdir"/usr/share/doc "$subpkgdir"/usr/share/ + elif [ "X$subpkgname" = "Xneo4j-client-doc" ]; then + mkdir -p "$subpkgdir"/usr/share + mv "$pkgdir"/usr/share/man "$subpkgdir"/usr/share/ + find "$subpkgdir"/usr/share/man/ -type f | xargs gzip -9 + else + die "Unknown doc package $pkgname" + fi + + # remove if empty, ignore error (not empty) + rmdir "$pkgdir"/usr/share "$pkgdir"/usr 2>/dev/null + return 0 +} + +client() { + depends="libedit libcypher-parser" + pkgdesc="Command line shell for Neo4j" + + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ + + # remove if empty, ignore error (not empty) + rmdir "$pkgdir"/usr/bin "$pkgdir"/usr 2>/dev/null + return 0 +} + +md5sums="e9d17aa10a44df5f0b030fd129b576fa libneo4j-client-1.1.0.tar.gz +9d51c9b8826337a2c82767fc21fa576d fortify_compat.patch" +sha256sums="486ca50519e7377d356a14f1f061fa331301ac10b41ddca08f3bff87a11b82a5 libneo4j-client-1.1.0.tar.gz +39126e82e1c7d56cdd3786e070c64aeb43fe54d0b6878c020c8804006f00700f fortify_compat.patch" +sha512sums="5bf06f019fb71939b65d2b2a83ee3f2597a1b9ca171307834ea93cd394502e5506863cc21268477ed2f7231579f35faa203d19bd4c909a5cc60e5deda5d0766d libneo4j-client-1.1.0.tar.gz +eeb15d3580b175da31b97adcf133bdb206fc6ec44244c341f638d9356e5845dc4d3c3521d08f774d45cf73d56ad00631d07a04afbf060e01d412ea0de0cb96cc fortify_compat.patch" diff --git a/testing/libneo4j-client/fortify_compat.patch b/testing/libneo4j-client/fortify_compat.patch new file mode 100644 index 0000000..528b698 --- /dev/null +++ b/testing/libneo4j-client/fortify_compat.patch @@ -0,0 +1,31 @@ +diff --git a/src/lib/posix_iostream.c b/src/lib/posix_iostream.c +index 3f78f6d..3d9876e 100644 +--- a/src/lib/posix_iostream.c ++++ b/src/lib/posix_iostream.c +@@ -37,7 +37,7 @@ static ssize_t posix_write(neo4j_iostream_t *self, + static ssize_t posix_writev(neo4j_iostream_t *self, + const struct iovec *iov, unsigned int iovcnt); + static int posix_flush(neo4j_iostream_t *self); +-static int posix_close(neo4j_iostream_t *self); ++static int neo4j_posix_close(neo4j_iostream_t *self); + + + neo4j_iostream_t *neo4j_posix_iostream(int fd) +@@ -58,7 +58,7 @@ neo4j_iostream_t *neo4j_posix_iostream(int fd) + iostream->write = posix_write; + iostream->writev = posix_writev; + iostream->flush = posix_flush; +- iostream->close = posix_close; ++ iostream->close = neo4j_posix_close; + return iostream; + } + +@@ -131,7 +131,7 @@ int posix_flush(neo4j_iostream_t *self) + } + + +-int posix_close(neo4j_iostream_t *self) ++int neo4j_posix_close(neo4j_iostream_t *self) + { + struct posix_iostream *ios = container_of(self, + struct posix_iostream, _iostream); -- 2.9.2 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---