summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatol Pomozov2015-06-28 08:40:03 -0700
committerAnatol Pomozov2015-06-28 08:47:32 -0700
commit55b14a7b5578f54d10f5431346bcf4fe0c70bd8b (patch)
tree6cac1a1031bd0fe058804efa831fd3a1a82cd232
downloadaur-55b14a7b5578f54d10f5431346bcf4fe0c70bd8b.tar.gz
FS#45392 Move mod_perl to AUR
mod_perl project is semi-alive and lags support for upstream versions of apache and perl. At this point it segfaults at perl 5.22. Move mod_perl to AUR to unblock perl 5.22 rebuild. Those who wants to use mod_perl have to stick with perl 5.20.
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD43
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c98ec07749b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = mod_perl
+ pkgdesc = Apache module that embeds the Perl interpreter within the server
+ pkgver = 2.0.9
+ pkgrel = 3
+ url = http://perl.apache.org/
+ arch = i686
+ arch = x86_64
+ license = APACHE
+ depends = perl<5.22
+ depends = apache
+ depends = db
+ depends = apr-util
+ depends = perl-linux-pid
+ options = !emptydirs
+ source = http://apache.org/dist/perl/mod_perl-2.0.9.tar.gz
+ source = http://apache.org/dist/perl/mod_perl-2.0.9.tar.gz.asc
+ source = undefined_symbol.patch::http://pkgs.fedoraproject.org/cgit/mod_perl.git/plain/mod_perl-2.0.4-inline.patch?h=f22
+ sha256sums = 0260f26ab771c1c95fadc67544b3400e420bb30b8a77565d2d02ad05498ef52b
+ sha256sums = SKIP
+ sha256sums = 08cd008e25d3eee44f477c744f50e574e2cb9853556d268ba06e8b3cb33341e4
+
+pkgname = mod_perl
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b8cb8ae3833
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 135647 2015-06-21 02:57:30Z anatolik $
+# Maintainer:
+# Contributor: Firmicus <francois.archlinux.org>
+# Contributor: Tom K <tomk@runbox.com>
+
+pkgname=mod_perl
+pkgver=2.0.9
+pkgrel=3
+pkgdesc='Apache module that embeds the Perl interpreter within the server'
+arch=(i686 x86_64)
+url='http://perl.apache.org/'
+license=(APACHE)
+depends=('perl<5.22' apache db apr-util perl-linux-pid)
+options=(!emptydirs)
+source=(http://apache.org/dist/perl/mod_perl-2.0.9.tar.gz{,.asc}
+ undefined_symbol.patch::http://pkgs.fedoraproject.org/cgit/mod_perl.git/plain/mod_perl-2.0.4-inline.patch?h=f22)
+validpgpkeys=(2026E6A4A6A4483E61BA6F3FAB34BA0040E92ECE)
+sha256sums=('0260f26ab771c1c95fadc67544b3400e420bb30b8a77565d2d02ad05498ef52b'
+ 'SKIP'
+ '08cd008e25d3eee44f477c744f50e574e2cb9853556d268ba06e8b3cb33341e4')
+
+prepare() {
+ cd mod_perl-$pkgver
+ # FS#45392
+ patch -p1 < ../undefined_symbol.patch
+}
+
+build() {
+ cd mod_perl-$pkgver
+ perl Makefile.PL INSTALLDIRS=vendor MP_APXS=/usr/bin/apxs
+ make
+}
+
+check() {
+ cd mod_perl-$pkgver
+ # tests are very flaky
+ # make test
+}
+
+package() {
+ cd mod_perl-$pkgver
+ make install DESTDIR="$pkgdir"
+}