summaryrefslogtreecommitdiffstats
path: root/main/fetchmail/APKBUILD
blob: 63b73cf2529b7862b67565596346fc6275584a30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
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"