# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=fetchmail pkgver=6.3.26 pkgrel=0 pkgdesc="A remote-mail retrieval and forwarding utility" url="http://fetchmail.berlios.de/" arch="all" license="GPL" depends= pkgusers="fetchmail" pkggroups="fetchmail" makedepends="openssl-dev python" install="fetchmail.pre-install" subpackages="$pkgname-doc fetchmailconf" source="http://download.berlios.de/fetchmail/$pkgname-$pkgver.tar.bz2 fetchmail.initd" build() { cd "$srcdir/$pkgname-$pkgver" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-ssl \ --disable-nls \ || return 1 make || return 1 } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" install install -Dm755 "$srcdir"/fetchmail.initd "$pkgdir"/etc/init.d/fetchmail install -o fetchmail -g fetchmail -d "$pkgdir"/var/lib/fetchmail \ "$pkgdir"/var/run/fetchmail } fetchmailconf() { depends="python" pkgdesc="A GUI for generating fetchmail configuration files" install= mkdir -p "$subpkgdir"/usr/bin cd "$pkgdir" mv usr/bin/fetchmailconf "$subpkgdir"/usr/bin/ mv usr/lib "$subpkgdir"/usr/ } md5sums="d9ae3d939205a3c06a21ea79b8f14793 fetchmail-6.3.26.tar.bz2 20ad22948fd77cf24e2bb288af6fd266 fetchmail.initd" sha256sums="1c724a4e48c47e84981aef0da31cf01e0334c99b295d907d0d21d31674762a23 fetchmail-6.3.26.tar.bz2 7a8cf11f172bf747453b98e97723b98953c1b06f95f68ad0d8332a253604e8dd fetchmail.initd" sha512sums="6f9a8a1901acccfa5438866ef1b07b2d688f502cbee53050beb9e8dffa54ba509d5d9c4fc6326b299ed50db943a6be67ba38a8e7fe9e86d4aa41488a91ecf2b1 fetchmail-6.3.26.tar.bz2 a4606676085d69e08633665b11994ba0a2deb54e00d99ca191058b1cc4f0e2ff681f941f5ef88254fda78d620ed835d4107f51a484f2ddefa53e05b925cea61e fetchmail.initd"