diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-09-19 14:18:51 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-09-19 14:19:53 +0000 |
commit | 7ce897264a25cbaa175b53f5e72a56f9ebb3db90 (patch) | |
tree | 14111b887bcf714f6727184b7dc865793fd82243 /testing/perl-cwmp/APKBUILD | |
parent | 8f2711c65d7584ec23c2f5313a691a4243cfc3ce (diff) | |
download | aports-7ce897264a25cbaa175b53f5e72a56f9ebb3db90.tar.bz2 aports-7ce897264a25cbaa175b53f5e72a56f9ebb3db90.tar.xz |
testing/perl-cwmp: new aport
Diffstat (limited to 'testing/perl-cwmp/APKBUILD')
-rw-r--r-- | testing/perl-cwmp/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/perl-cwmp/APKBUILD b/testing/perl-cwmp/APKBUILD new file mode 100644 index 0000000000..3bf39ffec0 --- /dev/null +++ b/testing/perl-cwmp/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Maintainer: +pkgname=perl-cwmp +pkgver=0_git20150919 +pkgrel=0 +pkgdesc="Perl ACS server implementing CWMP protocol to manage CPE clients" +url="https://github.com/dpavlin/perl-cwmp" +arch="noarch" +license="GPL2" +depends="perl-class-accessor perl-data-dump perl-file-remove + perl-file-slurp perl-hash-merge perl-module-install perl-ipc-dirqueue + perl-module-pluggable perl-pathtools perl-xml-bare perl-xml-generator + perl-yaml-syck perl-yaml-tiny perl-json-xs perl-yaml perl-common-sense + perl-types-serialiser" +depends_dev= +makedepends="perl $depends_dev" +install= +subpackages="$pkgname-doc" +source="http://easycwmp.org/download/$pkgname-$pkgver.tar.gz + " +giturl="https://github.com/dpavlin/perl-cwmp" + +_builddir="$srcdir"/$pkgname-$pkgver + + +prepare() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + for file in acs cli cpe-queue dump dump2test; do + install -D -m0755 bin/${file}.pl "$pkgdir"/usr/bin/${file}.pl + done + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="5533317abb05a198e3ffab05fa848279 perl-cwmp-0_git20150919.tar.gz" +sha256sums="b2855523017734caa80f6d1e0ed21df23571a597dcd4269ea77195feabdf4534 perl-cwmp-0_git20150919.tar.gz" +sha512sums="92211a11c7b23a939211aca51e5f26856fd4451c0b9f0743f622c1df2fa934020dd1bb9427947c668462a9beae106c08366167080556a52179e6b92a76e35588 perl-cwmp-0_git20150919.tar.gz" |