aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArch3y <arch3y@arch3y.com>2017-04-24 19:28:10 -0400
committerTimo Teräs <timo.teras@iki.fi>2017-08-29 07:18:57 +0000
commit19bff561e3385c19076fe36ddbf38df01efe278d (patch)
tree0d8d0dc0a51fd59b51fca5a665381df403243d12
parent061f3edca3c05cb5a6720916ba69a32ff3815c5e (diff)
downloadaports-19bff561e3385c19076fe36ddbf38df01efe278d.tar.bz2
aports-19bff561e3385c19076fe36ddbf38df01efe278d.tar.xz
testing/libcli: new aport
A library for including a Cisco-like command-line interface https://github.com/dparrish/libcli [TT: modernize]
-rw-r--r--testing/libcli/APKBUILD26
-rw-r--r--testing/libcli/gcc-5.2-fix.patch11
-rw-r--r--unmaintained/libcli/APKBUILD40
3 files changed, 37 insertions, 40 deletions
diff --git a/testing/libcli/APKBUILD b/testing/libcli/APKBUILD
new file mode 100644
index 0000000000..f3fdf55a0b
--- /dev/null
+++ b/testing/libcli/APKBUILD
@@ -0,0 +1,26 @@
+# Contributor: arch3y <arch3y@riseup.net>
+# Maintainer: arch3y <arch3y@riseup.net>
+pkgname=libcli
+pkgver=1.9.7
+pkgrel=2
+pkgdesc="A library for including a Cisco-like command-line interface"
+url="https://github.com/dparrish/libcli"
+arch="all"
+options="!check"
+license="LGPL2+"
+source="$pkgname-$pkgver.tar.gz::https://github.com/dparrish/libcli/archive/v$pkgver.tar.gz
+ gcc-5.2-fix.patch"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ make
+}
+
+package() {
+ cd "$builddir"
+ make PREFIX=/usr DESTDIR="$pkgdir" install
+}
+
+sha512sums="b2dacfd40bc068ddcc0dc3d60576ef2f7d7e2af80b93c6e7ae899d654afca6f0f8d2df2b33c9c8e760bdbea9aa2eaf757029d46032dcf307341f78f1a8f4f66f libcli-1.9.7.tar.gz
+4e8a3741e79f764a006bf6822ae503d6e8ff6a67a984f03e2006ed393f78b259846c64640288ee5f59074eb1730e41ec1af3b7f5307885c8e671b1096a9bea15 gcc-5.2-fix.patch"
diff --git a/testing/libcli/gcc-5.2-fix.patch b/testing/libcli/gcc-5.2-fix.patch
new file mode 100644
index 0000000000..0f2232ea73
--- /dev/null
+++ b/testing/libcli/gcc-5.2-fix.patch
@@ -0,0 +1,11 @@
+--- libcli-1.9.7.orig/clitest.c
++++ libcli-1.9.7/clitest.c
+@@ -72,7 +72,7 @@
+ int cmd_test(struct cli_def *cli, const char *command, char *argv[], int argc)
+ {
+ int i;
+- cli_print(cli, "called %s with \"%s\"", __FUNCTION__, command);
++ cli_print(cli, "called %s with \"%s\"", __func__, command);
+ cli_print(cli, "%d arguments:", argc);
+ for (i = 0; i < argc; i++)
+ cli_print(cli, " %s", argv[i]);
diff --git a/unmaintained/libcli/APKBUILD b/unmaintained/libcli/APKBUILD
deleted file mode 100644
index a4d54e13b3..0000000000
--- a/unmaintained/libcli/APKBUILD
+++ /dev/null
@@ -1,40 +0,0 @@
-# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
-# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=libcli
-pkgver=1.9.7
-pkgrel=0
-pkgdesc="A library for including a Cisco-like command-line interface"
-url="https://github.com/dparrish/libcli"
-arch="all"
-license="LGPL2+"
-depends=""
-depends_dev=""
-makedepends="$depends_dev"
-install=""
-subpackages="$pkgname-dev"
-source="https://github.com/dparrish/libcli/archive/v$pkgver.tar.gz"
-
-_builddir="$srcdir"/$pkgname-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
-
-build() {
- cd "$_builddir"
- make || return 1
-}
-
-package() {
- cd "$_builddir"
- make PREFIX=/usr DESTDIR="$pkgdir" install || return 1
-}
-
-md5sums="f33e0fdb8ae8e14e66036424704b201b v1.9.7.tar.gz"
-sha256sums="7ddda6b6e044a1498cf3a27e49ed5d7b97840bbe5a036c43fb0532b5e431886c v1.9.7.tar.gz"
-sha512sums="b2dacfd40bc068ddcc0dc3d60576ef2f7d7e2af80b93c6e7ae899d654afca6f0f8d2df2b33c9c8e760bdbea9aa2eaf757029d46032dcf307341f78f1a8f4f66f v1.9.7.tar.gz"