aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-rt-authen-externalauth/APKBUILD
blob: edfc1197c260d1731e065b580b7b4e036e538653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-rt-authen-externalauth
_realname=RT-Authen-ExternalAuth
pkgver=0.20
pkgrel=0
pkgdesc="RT Authentication using External Sources"
url="http://search.cpan.org/~tsibley"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends rt4 perl-dbi perl-ldap perl-net-ssleay"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/F/FA/FALCONE/${_realname}-${pkgver}.tar.gz
	use-DESTDIR-perl-rt-authen-externalauth.patch
	dont-install-in-local-perl-rt-authen-externalauth.patch
	"

_builddir="$srcdir/$_realname-$pkgver"

prepare() {
	cd "$_builddir"
	patch -p1 < ../use-DESTDIR-perl-rt-authen-externalauth.patch || return 1
	patch -p1 < ../dont-install-in-local-perl-rt-authen-externalauth.patch || return 1
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor DESTDIR="$pkgdir" \
	 RTHOME="/usr/lib/rt4" PREFIX="/usr/lib/rt4"
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make DESTDIR="$pkgdir" RTHOME="/usr/lib/rt4" PREFIX="/usr/lib/rt4"
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" RTHOME="/usr/lib/rt4" PREFIX="/usr/lib/rt4" install || return 1
	mkdir -p "$pkgdir"/etc/rt4/plugins
	mv "$pkgdir"/usr/lib/rt4/plugins/RT-Authen-ExternalAuth/etc \
	 "$pkgdir"/etc/rt4/plugins/RT-Authen-ExternalAuth || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
	# leftover empty dirs
	rm -rf "$pkgdir"/home
}

md5sums="8721e3d18ec75bf44dd496cc7e7a8d9f  RT-Authen-ExternalAuth-0.20.tar.gz
6e2fa78c896de4f10b3f4a3030dd8659  use-DESTDIR-perl-rt-authen-externalauth.patch
b1c1136f726af56af275021b9ce8b12e  dont-install-in-local-perl-rt-authen-externalauth.patch"
sha256sums="bd1dc1297cd1b13ada72501c93932add636e84a58eab0d76fc430c874e58c1ee  RT-Authen-ExternalAuth-0.20.tar.gz
6b254295f06fca929ebe96fdcd08d8f1c9fbae0ffaf9e1a9cd83ce57572f5bdc  use-DESTDIR-perl-rt-authen-externalauth.patch
2944a8139356ae9877020389e98cdb12db9e0e0239a88848d9d3cea8a1695c5c  dont-install-in-local-perl-rt-authen-externalauth.patch"
sha512sums="296ed55cd761560a211b1001ee7603b3769f2fb7d0139d4138794d6fcb761463edd97d285ab5ada703a57eab5e833d57e10ac7dd5daa2f2e565f02cc7607a5d7  RT-Authen-ExternalAuth-0.20.tar.gz
880d36550d7272595407b032c5d08da32a949255c1cb772df5c19150b75be599023d5d263fbbc679531751ec878d2dfe6023c4e271738d11446a21cdb1434eed  use-DESTDIR-perl-rt-authen-externalauth.patch
8ddc26ff26ed190b4c2801dc7514e41cdedffe485d083de49d787cf71ce1adf6d8e3fdb68df8c64396e977c4acebe853c982bb0735ab38f451de98d22424b65a  dont-install-in-local-perl-rt-authen-externalauth.patch"