From ff231b1e02bed98599bf4ed4b10b9945b7af8c6e Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Thu, 30 Jan 2020 22:38:55 +0000 Subject: perl-authen-pam: initial inclusion, dep of webmin --- abs/core/perl_modules/perl-authen-pam/PKGBUILD | 45 +++++++++++++++++++++++ abs/core/perl_modules/perl-encode-detect/PKGBUILD | 38 +++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 abs/core/perl_modules/perl-authen-pam/PKGBUILD create mode 100644 abs/core/perl_modules/perl-encode-detect/PKGBUILD diff --git a/abs/core/perl_modules/perl-authen-pam/PKGBUILD b/abs/core/perl_modules/perl-authen-pam/PKGBUILD new file mode 100644 index 0000000..09392e5 --- /dev/null +++ b/abs/core/perl_modules/perl-authen-pam/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Jose Riha +# Maintainer: Amish +# Contributor: Christian Hesse +# Contributor: mr_nuub + +pkgname=perl-authen-pam +pkgver=0.16 +pkgrel=7 +pkgdesc="Perl interface to PAM library" +_dist=Authen-PAM +arch=('any') +url="https://metacpan.org/release/${_dist}" +license=('GPL' 'PerlArtistic') +depends=('perl') +options=('!emptydirs' purge) +source=("https://cpan.metacpan.org/authors/id/N/NI/NIKIP/${_dist}-${pkgver}.tar.gz") +md5sums=('7278471dfa694d9ef312bc92d7099af2') +sha512sums=('2419698193697cb8c9ac3a1527a25abefffd9f15f4b492006081b2c8e7fe9e01e00f33e8fed6a07611b725b38ed92d9feb51b8ba61e4c23313cc5ff9ea1c05fd') + +prepare() { + cd "${srcdir}/${_dist}-${pkgver}" + sed -i -e 's#require "pam.cfg"#require "./pam.cfg"#g' Makefile.PL +} + +build() { + cd "${srcdir}/${_dist}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + /usr/bin/perl Makefile.PL + make +} + +check() { + cd "${srcdir}/${_dist}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 + echo skipped for now as tests asks for user password + #make test +} + +package() { + cd "${srcdir}/${_dist}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + make install INSTALLDIRS=vendor DESTDIR="${pkgdir}" +} diff --git a/abs/core/perl_modules/perl-encode-detect/PKGBUILD b/abs/core/perl_modules/perl-encode-detect/PKGBUILD new file mode 100644 index 0000000..946893c --- /dev/null +++ b/abs/core/perl_modules/perl-encode-detect/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Amish +# Contributor: John D Jones III AKA jnbek + +pkgname=perl-encode-detect +pkgver=1.01 +pkgrel=6 +pkgdesc="An Encode::Encoding subclass that detects the encoding of data" +_dist=Encode-Detect +arch=('any') +url="https://metacpan.org/release/${_dist}" +license=('GPL' 'PerlArtistic') +depends=('perl') +makedepends=('perl-module-build') +options=('!emptydirs' purge) +source=("https://cpan.metacpan.org/authors/id/J/JG/JGMYERS/${_dist}-${pkgver}.tar.gz") +md5sums=('ee9faf55d7105c97b02b8ebe590819c7') +sha512sums=('cc9c81f716dcb61abb321abd84e4ebb95a674d9aa34c4265f58cace38f6d15ef4f2b8338190ae7d200672e047b795a30ce6155f9c1b1c424e25d962579b96224') + +build() { + cd "${srcdir}/${_dist}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + /usr/bin/perl Makefile.PL + make +} + +check() { + cd "${srcdir}/${_dist}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 + make test +} + +package() { + cd "${srcdir}/${_dist}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT + make install INSTALLDIRS=vendor DESTDIR="${pkgdir}" +} -- cgit v0.12