mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 12:01:41 +02:00
testing/libcli: new aport
A library for including a Cisco-like command-line interface https://github.com/dparrish/libcli [TT: modernize]
This commit is contained in:
parent
061f3edca3
commit
19bff561e3
26
testing/libcli/APKBUILD
Normal file
26
testing/libcli/APKBUILD
Normal file
@ -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"
|
||||
11
testing/libcli/gcc-5.2-fix.patch
Normal file
11
testing/libcli/gcc-5.2-fix.patch
Normal file
@ -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]);
|
||||
@ -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"
|
||||
Loading…
x
Reference in New Issue
Block a user