pkgname=autofs pkgver=5.1.4 pkgrel=1 pkgdesc='A kernel-based automounter for Linux' arch=('x86_64') url='https://www.kernel.org/pub/linux/daemons/autofs' license=('GPL2') depends=('libxml2') makedepends=('libldap' 'krb5' 'kmod') optdepends=('krb5: for LDAP support' 'sssd: for SSSD integration') backup=('etc/autofs/auto.master' 'etc/autofs/auto.misc' 'etc/autofs/auto.net' 'etc/autofs/auto.smb' 'etc/autofs/autofs.conf' 'etc/autofs/autofs_ldap_auth.conf' 'etc/default/autofs') source=("${url}/v5/${pkgname}-${pkgver}.tar."{xz,sign}) sha256sums=('8fce30ee51ffd528fe1a4e8374ef57f43367e1f123030e175fb1b1cf15bc1722' 'SKIP') sha512sums=('1ef48800a1e44d6bf7048923109f3b8299ef266ff0fbaf5f979c32f42c6c5e28620c1876f64b9d913fddb69244ff83226c01c666401ff6271dd6b53d31860589' 'SKIP') validpgpkeys=('CD0A6E3CBB6768800B0736A8E7677380F54FD8A9') # Ian Kent prepare() { cd "${srcdir}/${pkgname}-${pkgver}" sed -i -e 's|/etc/auto.misc|/etc/autofs/auto.misc|' \ -e 's|/etc/auto.master.d|/etc/autofs/auto.master.d|' \ samples/auto.master } build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr \ --sysconfdir=/etc/autofs \ --sbindir=/usr/bin \ --with-mapdir=/etc/autofs \ --with-confdir=/etc/default \ --without-hesiod \ --enable-ignore-busy \ --with-libtirpc \ --with-systemd make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make INSTALLROOT="${pkgdir}" install rm -vr "${pkgdir}/run" install -dm755 "${pkgdir}/etc/autofs/auto.master.d" }