diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-01-11 17:36:32 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-01-11 17:36:32 +0000 |
commit | 09eaae2dd1957aaad5bbc95aa958d75ddec0a1f9 (patch) | |
tree | 98b419affe950f7d652f6d09ed6b36eae7b7bc05 /testing/icli | |
parent | e9e6e71660d159d95fb37b2ae763d26aede52212 (diff) | |
download | aports-09eaae2dd1957aaad5bbc95aa958d75ddec0a1f9.tar.bz2 aports-09eaae2dd1957aaad5bbc95aa958d75ddec0a1f9.tar.xz |
testing/icli: new aport
Diffstat (limited to 'testing/icli')
-rw-r--r-- | testing/icli/APKBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
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 <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +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" |