diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-08-02 07:28:55 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-08-02 07:29:15 +0000 |
commit | ecf4b8ef0242589439c01923ec5d36f09ea33781 (patch) | |
tree | a01e7287406c02c21cc0c632ed13fb5cddc10e9b /testing/perl-rt-authen-externalauth | |
parent | d83414351779f7b3201e36d294d8d15b17d0ebda (diff) | |
download | aports-ecf4b8ef0242589439c01923ec5d36f09ea33781.tar.bz2 aports-ecf4b8ef0242589439c01923ec5d36f09ea33781.tar.xz |
testing/perl-rt-authen-externalauth: move config to /etc, fix DESTDIR patch
Diffstat (limited to 'testing/perl-rt-authen-externalauth')
-rw-r--r-- | testing/perl-rt-authen-externalauth/APKBUILD | 15 | ||||
-rw-r--r-- | testing/perl-rt-authen-externalauth/dont-install-in-local-perl-rt-authen-externalauth.patch | 2 |
2 files changed, 11 insertions, 6 deletions
diff --git a/testing/perl-rt-authen-externalauth/APKBUILD b/testing/perl-rt-authen-externalauth/APKBUILD index 0b5770b53..1bf4ccd12 100644 --- a/testing/perl-rt-authen-externalauth/APKBUILD +++ b/testing/perl-rt-authen-externalauth/APKBUILD @@ -3,7 +3,7 @@ pkgname=perl-rt-authen-externalauth _realname=RT-Authen-ExternalAuth pkgver=0.17 -pkgrel=0 +pkgrel=1 pkgdesc="RT Authentication using External Sources" url="http://search.cpan.org/~tsibley" arch="noarch" @@ -32,21 +32,26 @@ prepare() { build() { cd "$_builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - make DESTDIR="$pkgdir" RTHOME="/usr/lib/rt4" PREFIX="/usr/lib/rt4" && make test + 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="f1d17f4c83d7ec2615db2e42f7b82d19 RT-Authen-ExternalAuth-0.17.tar.gz 6e2fa78c896de4f10b3f4a3030dd8659 use-DESTDIR-perl-rt-authen-externalauth.patch -fd061d4a9be350959daacc2576eb7282 dont-install-in-local-perl-rt-authen-externalauth.patch" +b1c1136f726af56af275021b9ce8b12e dont-install-in-local-perl-rt-authen-externalauth.patch" sha256sums="cd12c0c223c4cd4588feb5de76eb234ab62c6cbc865f3f82249f0023c21f5aca RT-Authen-ExternalAuth-0.17.tar.gz 6b254295f06fca929ebe96fdcd08d8f1c9fbae0ffaf9e1a9cd83ce57572f5bdc use-DESTDIR-perl-rt-authen-externalauth.patch -7f1f659858905d9aae817957279255c883d36f12fd8c85271a1fb37b5301e9de dont-install-in-local-perl-rt-authen-externalauth.patch" +2944a8139356ae9877020389e98cdb12db9e0e0239a88848d9d3cea8a1695c5c dont-install-in-local-perl-rt-authen-externalauth.patch" sha512sums="5110f21c46887049f0a43772cbc3d22bd24b29140a5753572dd3e29a75597bd3aaebb32dc73fb82482d98e321a1473cc2b8929b8d921702ef52adf08cb3ec85f RT-Authen-ExternalAuth-0.17.tar.gz 880d36550d7272595407b032c5d08da32a949255c1cb772df5c19150b75be599023d5d263fbbc679531751ec878d2dfe6023c4e271738d11446a21cdb1434eed use-DESTDIR-perl-rt-authen-externalauth.patch -2df06b5519854c313c38c430cae5bd5c76c2cc3b878bda8cf202d40e9ba816166317e1d73a2cdb982ef5390ce4801fa8c6888d225a5f235828b4350042dbefcf dont-install-in-local-perl-rt-authen-externalauth.patch" +8ddc26ff26ed190b4c2801dc7514e41cdedffe485d083de49d787cf71ce1adf6d8e3fdb68df8c64396e977c4acebe853c982bb0735ab38f451de98d22424b65a dont-install-in-local-perl-rt-authen-externalauth.patch" diff --git a/testing/perl-rt-authen-externalauth/dont-install-in-local-perl-rt-authen-externalauth.patch b/testing/perl-rt-authen-externalauth/dont-install-in-local-perl-rt-authen-externalauth.patch index 418ba7bb8..ccd2a52f1 100644 --- a/testing/perl-rt-authen-externalauth/dont-install-in-local-perl-rt-authen-externalauth.patch +++ b/testing/perl-rt-authen-externalauth/dont-install-in-local-perl-rt-authen-externalauth.patch @@ -12,7 +12,7 @@ diff -Naurp a/inc/Module/Install/RTx.pm b/inc/Module/Install/RTx.pm - $INC{'RT.pm'} = "$RT::LocalPath/lib/RT.pm"; + push @INC, "$prefix"; + require RT; -+ $RT::LocalPluginPath = '$(DESTDIR)'."$prefix/plugins"; ++ $RT::LocalPluginPath = "$prefix/plugins"; } else { local @INC = ( $ENV{RTHOME} ? ( $ENV{RTHOME}, "$ENV{RTHOME}/lib" ) : (), |