From cdb44d35ac7f9bc0a4759fc0a99f1265bc7c07ca Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Wed, 20 May 2015 12:52:50 +0200 Subject: [PATCH 1/2] package Zabbix2::API --- .SRCINFO | 22 ++++++++++++++++++++++ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..76c764b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = perl-zabbix2-api + pkgdesc = Access the JSON-RPC API of a Zabbix server + pkgver = 0.012 + pkgrel = 1 + url = https://metacpan.org/release/Zabbix2-API + arch = any + license = GPL + license = PerlArtistic + depends = perl>=5.10.0 + depends = perl-json + depends = perl-log-any + depends = perl-libwww + depends = perl-moo>=1.001000 + depends = perl-moo-lax + depends = perl-params-validate + depends = perl-uri + options = !emptydirs + source = http://cpan.metacpan.org/authors/id/F/FG/FGA/Zabbix2-API-0.012.tar.gz + md5sums = 83dc1afca04e1e409f7758dfda1b8955 + +pkgname = perl-zabbix2-api + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..bc9349a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Cedric Girard +_author=FGA +_perlmod=Zabbix2-API +pkgname=perl-zabbix2-api +pkgver=0.012 +pkgrel=1 +pkgdesc="Access the JSON-RPC API of a Zabbix server" +arch=('any') +url="https://metacpan.org/release/$_perlmod" +license=('GPL' 'PerlArtistic') +depends=( + 'perl>=5.10.0' + 'perl-json' + 'perl-log-any' + 'perl-libwww' + 'perl-moo>=1.001000' + 'perl-moo-lax' + 'perl-params-validate' + 'perl-uri' + ) +options=(!emptydirs) +source=(http://cpan.metacpan.org/authors/id/${_author:0:1}/${_author:0:2}/$_author/$_perlmod-$pkgver.tar.gz) +md5sums=('83dc1afca04e1e409f7758dfda1b8955') + +build() { + cd "$srcdir/$_perlmod-$pkgver" + + # Install module in vendor directories. + perl Build.PL installdirs=vendor destdir="$pkgdir/" + perl Build + +} + +package() { + cd "$srcdir/$_perlmod-$pkgver" + perl Build install + +} + +# vim:set ts=2 sw=2 et: From ded67be8d55c350618546f3d13f584d04f0a1a5e Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Wed, 10 Jun 2015 11:13:06 +0200 Subject: [PATCH 2/2] Zabbix2::API updated to 0.013 --- .SRCINFO | 7 +++---- PKGBUILD | 5 ++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 76c764b..6947e4d 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = perl-zabbix2-api pkgdesc = Access the JSON-RPC API of a Zabbix server - pkgver = 0.012 + pkgver = 0.013 pkgrel = 1 url = https://metacpan.org/release/Zabbix2-API arch = any @@ -11,12 +11,11 @@ pkgbase = perl-zabbix2-api depends = perl-log-any depends = perl-libwww depends = perl-moo>=1.001000 - depends = perl-moo-lax depends = perl-params-validate depends = perl-uri options = !emptydirs - source = http://cpan.metacpan.org/authors/id/F/FG/FGA/Zabbix2-API-0.012.tar.gz - md5sums = 83dc1afca04e1e409f7758dfda1b8955 + source = http://cpan.metacpan.org/authors/id/F/FG/FGA/Zabbix2-API-0.013.tar.gz + md5sums = 92a983f611847af6487e2fea161c6606 pkgname = perl-zabbix2-api diff --git a/PKGBUILD b/PKGBUILD index bc9349a..f65f61f 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ _author=FGA _perlmod=Zabbix2-API pkgname=perl-zabbix2-api -pkgver=0.012 +pkgver=0.013 pkgrel=1 pkgdesc="Access the JSON-RPC API of a Zabbix server" arch=('any') @@ -14,13 +14,12 @@ depends=( 'perl-log-any' 'perl-libwww' 'perl-moo>=1.001000' - 'perl-moo-lax' 'perl-params-validate' 'perl-uri' ) options=(!emptydirs) source=(http://cpan.metacpan.org/authors/id/${_author:0:1}/${_author:0:2}/$_author/$_perlmod-$pkgver.tar.gz) -md5sums=('83dc1afca04e1e409f7758dfda1b8955') +md5sums=('92a983f611847af6487e2fea161c6606') build() { cd "$srcdir/$_perlmod-$pkgver"