You are not logged in.

#1 2010-07-10 15:40:29

deeztech
Member
Registered: 2010-07-10
Posts: 1

Unable to install perl-unix-syslog

Hello,

I'm attempting to install amavisd-new. One of the required packages for amavisd-new is perl-unix-syslog. I have downloaded the tarball from the AUR extracted and tried to run the makepkg command. However, it fails when trying to download the source from any of the mirrors in order to build the package. I'm a bit stuck and I have no idea where to go to next. I would appreciate help on this particular issue.

Thanks

Offline

#2 2010-07-10 16:41:23

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Unable to install perl-unix-syslog

The source is "missing" because the version is out of date (as noted on the AUR page).

http://search.cpan.org/~mharnisch/Unix- … /Syslog.pm

Update the pkgver variable in the PKGBUILD and regenerate the md5sums with 'makepkg -g >> PKGBUILD'.

Edit: maybe I'm unfamiliar with perl PKGBUILDs, but this one seems poorly written.

Last edited by falconindy (2010-07-10 16:43:25)

Offline

#3 2010-07-10 23:15:04

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: Unable to install perl-unix-syslog

pkgname=perl-unix-syslog
pkgver=1.1
pkgrel=1
pkgdesc="Perl interface to the UNIX syslog calls"
arch=('any')
url="http://search.cpan.org/dist/Unix-Syslog/"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.8.4')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/M/MH/MHARNISCH/Unix-Syslog-$pkgver.tar.gz)
md5sums=('73d78e309fe9508ffc9a54d84d79aac9')

build() {
  cd "$srcdir/Unix-Syslog-$pkgver"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
  make || return 1
}

package() {
  cd "$srcdir/Unix-Syslog-$pkgver"
  make DESTDIR="$pkgdir" install
}

Offline

Board footer

Powered by FluxBB