From 09eaae2dd1957aaad5bbc95aa958d75ddec0a1f9 Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Mon, 11 Jan 2016 17:36:32 +0000 Subject: testing/icli: new aport --- testing/icli/APKBUILD | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 testing/icli/APKBUILD (limited to 'testing/icli') diff --git a/testing/icli/APKBUILD b/testing/icli/APKBUILD new file mode 100644 index 0000000000..4fc0d25fe4 --- /dev/null +++ b/testing/icli/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: Francesco Colista +# Maintainer: Francesco Colista +pkgname=icli +_realname=App-Icli +pkgver=0.48 +pkgrel=0 +pkgdesc="Icinga Command Line Interface" +url="http://finalrewind.org/projects/App-Icli/" +arch="noarch" +license="custom" +depends="perl-datetime perl-datetime-format-strptime perl-datetime-timezone + perl-list-moreutils perl-term-size" +depends_dev="" +makedepends="$depends_dev perl-module-build perl-test-compile + perl-test-pod perl-test-command" +install="" +subpackages="$pkgname-doc" +source="http://finalrewind.org/projects/${_realname}/${_realname}-${pkgver}.tar.gz" + +_builddir="$srcdir"/$_realname-$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" + perl Build.PL installdirs=vendor destdir="${pkgdir}" \ + --icli-object-file=/var/spool/icinga/objects.cache \ + --icli-status-file=/var/spool/icinga/status.dat \ + --icli-command-file=/var/spool/icinga/rw/icinga.cmd + ./Build +} + +check() { + cd "$_builddir" + ./Build test +} + +package() { + cd "$_builddir" + ./Build install + install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING +} +md5sums="bc8a49aa80784553cd880ecafe059597 App-Icli-0.48.tar.gz" +sha256sums="f5dfd9c67a1e458d4d895be05d36e61f00b03eb8315e0942dbf6069593afb3ce App-Icli-0.48.tar.gz" +sha512sums="b3f5b9a626a3eea9406f63cbb7c06e6415d57ca9c3cb2ad5890e182a385842d819cd35b186e16ed5d78ce1eeba32bba4f0cfb3abff401f292aa64dfbb46686bf App-Icli-0.48.tar.gz" -- cgit v1.2.3