Package Details: fetchmail 6.4.1-1

Git Clone URL: https://aur.archlinux.org/fetchmail.git (read-only)
Package Base: fetchmail
Description: A remote-mail retrieval utility
Upstream URL: http://www.fetchmail.info
Licenses: GPL
Submitter: arojas
Maintainer: victor3d
Last Packager: victor3d
Votes: 6
Popularity: 0.52
First Submitted: 2019-04-03 06:19
Last Updated: 2019-10-13 17:38

Latest Comments

haawda commented on 2019-10-13 16:47

pkgname=fetchmail
pkgver=6.4.1
_majver=6.4
pkgrel=1
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_${_majver}/${pkgname}-${pkgver}.tar.xz"
         'fetchmail.tmpfiles' 'fetchmail.sysusers' 'fetchmail.service')
sha1sums=('1aadf078ed8fb1b6c93e9126cc0375b1f740301a'
          '199ba749c829f22286c34aabcf8b7dd5bbd7c0e6'
          'b113cb61a866eff53cd8f113d084a99f01bf5d77'
          '0fc1870a33d1e0efb70169ddf1b6adc9d253e076')

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"
  cd -
  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
}

amish commented on 2019-05-14 04:48

--syslog is not required. As anything printed on stderr will automatically go to journald logs. Or if you still want it then you add "set syslog" in /etc/fetchmailrc

Agree to removing "-d 900".

Also in fetchmail.sysusers file - please remove hardcoded number 90 as UID. As Arch is slowly avoiding to have fixed UID assigned to user.

Use z option of tmpfiles.d to change ownership and mode of /var/lib/fetchmail and /etc/fetchmailrc... But I am not sure if it should be done or not.

eimis commented on 2019-05-13 18:29

hey why not add --syslog fetchmail arg to the .service ExecStart, so that journald logs it?

Also, how about omit the -d 900 arg, and instead have set daemon 900 in /etc/fetchmailrc, so that people can change the polling interval without overriding the .service file?

Lastly, could chown fetchmail.fetchmail /var/lib/fetchmail /etc/fetchmailrc; chmod 600 /etc/fetchmailrc be done on install? Otherwise fetchmail refuses to start saying the executing user must own the config file and the .pid file can't be created

And thanks for maintaining this!!