Commit 9776f5ab authored by Natanael Copa's avatar Natanael Copa

main/rrdtool: install perl modules in vendor dir

(cherry picked from commit 689c8065)
parent 3a98cb3c
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rrdtool
pkgver=1.2.30
pkgrel=4
pkgrel=5
pkgdesc="Data logging and graphing application"
url="http://www.rrdtool.org"
license="GPL"
......@@ -17,13 +17,17 @@ build() {
--disable-tcl \
--disable-python \
--disable-ruby \
--enable-rrdcgi
--enable-rrdcgi \
--enable-perl-site-install \
--with-perl-options="INSTALLDIRS=vendor" \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
export INSTALLDIRS=vendor
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" -name '.packlist' -delete
find "$pkgdir" -name 'perllocal.pod' -delete
......@@ -37,8 +41,10 @@ dev() {
perl_rrd() {
pkgdesc="Perl interface for rrdtool"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/perl "$subpkgdir"/usr/lib/
mkdir -p "$subpkgdir"/usr/lib \
"$pkgdir"/usr/share
mv "$pkgdir"/usr/lib/perl* "$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/share/perl* "$subpkgdir"/usr/share/
}
md5sums="19b24f7184a8dbf7b48c1bbb565ad9fb rrdtool-1.2.30.tar.gz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment