diff options
author | Erich Eckner <git@eckner.net> | 2021-03-29 11:03:48 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-03-29 11:03:48 +0200 |
commit | 805624ca3977b1f393825e3f507bb560254ef8b7 (patch) | |
tree | 9919b6473c8eec06379205738a48973b98918d92 /fetchmail | |
parent | cd6f2222d2a2186fa31808bb5180daf1333a647c (diff) | |
download | archlinuxewe-805624ca3977b1f393825e3f507bb560254ef8b7.tar.xz |
fetchmail: cleanup
Diffstat (limited to 'fetchmail')
-rw-r--r-- | fetchmail/PKGBUILD | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fetchmail/PKGBUILD b/fetchmail/PKGBUILD index 310220632..846664595 100644 --- a/fetchmail/PKGBUILD +++ b/fetchmail/PKGBUILD @@ -12,7 +12,7 @@ _pinned_dependencies=( 'openssl=1.1.1.k' ) depends=("${_pinned_dependencies[@]}") -makedepends=('python2') +makedepends=('python') optdepends=('tk: for using fetchmailconf' 'python2: for using fetchmailconf') options=('!makeflags') @@ -25,22 +25,22 @@ sha512sums=('b42c23c184af68ac41e222cdb19536bf03de3da6a4357e065d203444e32c1c46a7f '49c2843ddb06f587611f838bc9dab3fe04af991d70c27f8ffdd6351d8d6401683a356a03401e232a53e44ee43f6d85aa520f233f256974d07972913145fdf0f5') prepare() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd ${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 + cd ${pkgname}-${pkgver} + ./configure --prefix=/usr --with-ssl=/usr make } package() { - cd "${srcdir}/${pkgname}-${pkgver}" + install -D -m644 fetchmail.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/fetchmail.conf + install -D -m644 fetchmail.sysusers "${pkgdir}"/usr/lib/sysusers.d/fetchmail.conf + install -D -m644 fetchmail.service "${pkgdir}"/usr/lib/systemd/system/fetchmail.service + + cd ${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 } |