pkgname=autofs pkgver=5.1.9 pkgrel=1 pkgdesc='A kernel-based automounter for Linux.' arch=('x86_64') url='https://git.kernel.org/pub/scm/linux/storage/autofs/autofs.git' license=('GPL2') depends=('libldap' 'libxml2' 'krb5') makedepends=('kmod' 'rpcsvc-proto') # 'clang') backup=('etc/autofs/auto.master' 'etc/autofs/auto.misc' 'etc/autofs/auto.net' 'etc/autofs/auto.smb' 'etc/autofs/autofs_ldap_auth.conf' 'etc/default/autofs') options=('!makeflags') source=("https://www.kernel.org/pub/linux/daemons/autofs/v5/${pkgname}-${pkgver}.tar.xz") sha256sums=('87e6af6a03794b9462ea519781e50e7d23b5f7c92cd59e1142c85d2493b3c24b') build() { cd ${pkgname}-${pkgver} #export CC="clang" #export CXX="clang++" 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 sed -i -e "/^SUBDIRS/s/$/ samples/g" Makefile.rules ./configure --prefix=/usr \ --sysconfdir=/etc/autofs \ --with-mapdir=/etc/autofs \ --without-hesiod \ --disable-ext-env \ --enable-ignore-busy \ --with-systemd \ --with-libtirpc make } package() { cd ${pkgname}-${pkgver} make INSTALLROOT=${pkgdir} install install -dm755 ${pkgdir}/etc/autofs/auto.master.d }