blob: 9dd3ef3ef5332037307213ad54cddfc092472e8b (
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
58
|
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fetchmail
pkgver=6.4.1
pkgrel=1
pkgdesc="A remote-mail retrieval and forwarding utility"
url="https://www.fetchmail.info/"
arch="all"
license="GPL-2.0-or-later AND Public Domain"
pkgusers="fetchmail"
pkggroups="fetchmail"
makedepends="openssl-dev python3"
install="fetchmail.pre-install"
subpackages="$pkgname-doc $pkgname-openrc"
source="https://downloads.sourceforge.net/fetchmail/fetchmail-$pkgver.tar.xz
$pkgname.initd
$pkgname.confd
"
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-ssl \
--disable-nls \
--enable-POP3 \
--enable-IMAP \
--without-hesiod \
--enable-ETRN \
--enable-NTLM \
--enable-SDPS \
--enable-RPA \
--without-kerberos5 \
--without-gssapi \
--enable-fallback=no
make
}
package() {
make DESTDIR="$pkgdir" install
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
install -o fetchmail -g fetchmail -d "$pkgdir"/var/lib/fetchmail \
"$pkgdir"/var/run/fetchmail
rm -f "$pkgdir"/usr/bin/fetchmailconf*
rm -f "$pkgdir"/usr/share/man/man1/fetchmailconf.1*
rm -f "$pkgdir"/usr/lib/python3*/site-packages/fetchmailconf.py*
rm -f "$pkgdir"/usr/lib/python3*/site-packages/__pycache__/fetchmailconf*
}
sha512sums="940b8df52f963f71537962ebe2b2cb88298fd2b54ca79932e5c974abe850f0b59cdc4919d606ee4f210e82d1e0a6f090ea87f1d3bdea18b531d4fbb36f7f9ea0 fetchmail-6.4.1.tar.xz
9520ec6616f4004d091b1c908d3ea38e104ad8f6595959a3cd3ef7544d05e3b75854631289e167ead08479250d04584d3f1855668a7a0ebd16a1ee9106f3b0b3 fetchmail.initd
6f031ec6bd4a3ae53cd04fbd8470f4d10bd46ca29cabffa634a6801aa2e7707169855fbc045ced3c9a69523e694511a3f076b611678143e49339c8ccac98074e fetchmail.confd"
|