diff options
author | Erich Eckner <git@eckner.net> | 2019-07-11 09:32:39 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-07-11 09:33:49 +0200 |
commit | 704b7f71c703ecfe5b19d48dea6a74d3a9ba08fa (patch) | |
tree | d9a5542b5bb25a39d80f064ccbaf82425faa9d2b /fetchmail/PKGBUILD | |
parent | 0287978f1277e3ed7e69dc799deebbf90ea39e4c (diff) | |
download | archlinuxewe-704b7f71c703ecfe5b19d48dea6a74d3a9ba08fa.tar.xz |
fetchmail new
Diffstat (limited to 'fetchmail/PKGBUILD')
-rw-r--r-- | fetchmail/PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/fetchmail/PKGBUILD b/fetchmail/PKGBUILD new file mode 100644 index 000000000..2cd86c201 --- /dev/null +++ b/fetchmail/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> + +pkgname=fetchmail +pkgver=6.3.26 +pkgrel=7 +pkgdesc="A remote-mail retrieval utility" +arch=('x86_64') +url="http://www.fetchmail.info" +license=('GPL') +depends=('openssl') +makedepends=('python2') +optdepends=('tk: for using fetchmailconf' + 'python2: for using fetchmailconf') +options=('!makeflags') +source=("https://sourceforge.net/projects/fetchmail/files/branch_6.3/${pkgname}-${pkgver}.tar.xz" + 'disable-sslv3.patch' 'fetchmail.tmpfiles' 'fetchmail.sysusers' 'fetchmail.service') +sha1sums=('de8dbe62a8edfa232ee4278257a1fe67aa1c797a' + 'dab3bf46b033e8ee7cadc020c1fb4ce325f46693' + '199ba749c829f22286c34aabcf8b7dd5bbd7c0e6' + 'b113cb61a866eff53cd8f113d084a99f01bf5d77' + '0fc1870a33d1e0efb70169ddf1b6adc9d253e076') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i ../disable-sslv3.patch +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + sed -i 's|/usr/bin/env python|/usr/bin/env python2|' fetchmailconf.py + PYTHON=python2 ./configure --prefix=/usr --with-ssl=/usr + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + install -d -o 90 -g nobody "${pkgdir}/var/lib/fetchmail" + install -D -m644 ${srcdir}/fetchmail.tmpfiles ${pkgdir}/usr/lib/tmpfiles.d/fetchmail.conf + install -D -m644 ${srcdir}/fetchmail.sysusers ${pkgdir}/usr/lib/sysusers.d/fetchmail.conf + install -D -m644 ${srcdir}/fetchmail.service ${pkgdir}/usr/lib/systemd/system/fetchmail.service +} |