# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=fetchmail pkgver=6.3.9 pkgrel=0 pkgdesc="A remote-mail retrieval and forwarding utility" url="http://fetchmail.berlios.de/" license="GPL" depends="openssl uclibc" makedepends="openssl-dev" install= subpackages="$pkgname-doc fetchmailconf" source="http://download.berlios.de/fetchmail/$pkgname-$pkgver.tar.bz2 fetchmail.initrd" build() { cd "$srcdir/$pkgname-$pkgver" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-ssl \ --disable-nls make || return 1 make DESTDIR="$pkgdir" install install -Dm755 $srcdir/fetchmail.initrd "$pkgdir"/etc/init.d/fetchmail } fetchmailconf() { depends="python" pkgdesc="A GUI for generating fetchmail configuration files" mkdir -p "$subpkgdir"/usr/bin cd "$pkgdir" mv usr/bin/fetchmailconf "$subpkgdir"/usr/bin/ mv usr/lib "$subpkgdir"/usr/ } md5sums="72c20ad2b9629f1a109668b05a84d823 fetchmail-6.3.9.tar.bz2 b6b95767279d77c98acdc3aa4d00ec89 fetchmail.initrd"