PKGBUILDs/extra/fetchmail/PKGBUILD

36 lines
1.1 KiB
Bash
Raw Normal View History

2009-10-10 02:23:22 +00:00
# $Id: PKGBUILD 31067 2009-03-24 09:00:41Z douglas $
# Maintainer: Aaron Griffin <aaron@archlinux.org>
# Contributor: dorphell <dorphell@archlinux.org>
pkgname=fetchmail
pkgver=6.3.8
pkgrel=5
pkgdesc="A remote-mail retrieval utility"
url="http://fetchmail.berlios.de/"
arch=('i686' 'x86_64')
depends=('glibc' 'openssl' 'python')
license=('GPL')
install=fetchmail.install
source=(http://download2.berlios.de/fetchmail/$pkgname-$pkgver.tar.bz2
http://fetchmail.berlios.de/fetchmail-SA-2007-02.txt
fetchmail.rc fetchmail.conf)
md5sums=('66b97500b0a1e3c0916b3b5314f597f5' '0105fd95ac563a02f20a40355d731159'\
'b5f4d1da0c61d3d8a93fdf4e238f4949' '8fcd6a22dfbc247755fdd050c5c5c4d3')
build() {
export MAKEFLAGS="-j1"
cd $startdir/src/$pkgname-$pkgver
patch -up0 < ../fetchmail-SA-2007-02.txt
./configure --prefix=/usr --with-ssl=/usr
make || return 1
make DESTDIR=$startdir/pkg install
install -D -m755 ../fetchmail.rc $startdir/pkg/etc/rc.d/fetchmail
install -D -m644 ../fetchmail.conf $startdir/pkg/etc/conf.d/fetchmail
# "home" directory for pid file.
install -d -o 90 -g nobody -m700 $startdir/pkg/var/run/fetchmail
}