diff options
Diffstat (limited to 'abs/extra-testing/autofs/PKGBUILD')
-rw-r--r-- | abs/extra-testing/autofs/PKGBUILD | 67 |
1 files changed, 34 insertions, 33 deletions
diff --git a/abs/extra-testing/autofs/PKGBUILD b/abs/extra-testing/autofs/PKGBUILD index 1bc5435..ca6abea 100644 --- a/abs/extra-testing/autofs/PKGBUILD +++ b/abs/extra-testing/autofs/PKGBUILD @@ -1,48 +1,49 @@ -# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ -# Maintainer: Dale Blount <dale@archlinux.org> +# $Id: PKGBUILD 36638 2009-04-26 19:00:46Z andrea $ +# Maintainer: Andrea Scarpino <andrea@archlinux.org> +# Contributor: Dale Blount <dale@archlinux.org> # Contributor: Manolis Tzanidakis pkgname=autofs -pkgver=4.1.4 +pkgver=5.0.4 pkgrel=4 pkgdesc="A kernel-based automounter for Linux." -arch=(i686 x86_64) -url="ftp://ftp.kernel.org/pub/linux/daemons/autofs" -depends=('libldap') -backup=(etc/autofs/auto.master etc/conf.d/autofs) -source=($url/v4/${pkgname}-${pkgver}.tar.bz2 - ${pkgname} - ${pkgname}.conf.d - auto.master - auto.misc - auto.net) -md5sums=('7e3949114c00665b4636f0c318179657' '80b77182aa957646a2074433d3890518'\ - 'ddd69346754419faee15fc4c7edeb8b8' '0543a0d172eaec300e8d08708440dd4b'\ - '0be409ef0cdf0255ce701ed4ba9e46b5' 'e4d945d63abc0488a47a5e2a750e8c3b') +arch=('i686' 'x86_64') +url="http://wiki.autofs.net/FrontPage" +license=('GPL2') +depends=('libldap' 'libxml2' 'heimdal') +backup=(etc/autofs/auto.master etc/autofs/auto.misc etc/conf.d/autofs) +install=autofs.install +source=("http://www.kernel.org/pub/linux/daemons/${pkgname}/v5/${pkgname}-${pkgver}.tar.bz2" + 'autofs' 'autofs.conf.d' 'auto.master' 'auto.misc' + 'heimdal.patch') +md5sums=('2646dde61edd08dd952255558c733c08' + 'b4984b3161f50cba3d189b0ec594d014' + '47f597c870410055e0fdb66103daf928' + 'a6cefb591e77b31b79dbb7243646c96b' + 'd8a15ec9186c5c0b36e5cea1e2739e8a' + '1ee4825e26ad72bfe86acec3d3da5d2a') build() { export MAKEFLAGS="-j1" - cd ${startdir}/src/${pkgname}-${pkgver} - /bin/sed -i "s:-O3 -fomit-frame-pointer -Wall:${CFLAGS}:" \ - Makefile.rules - /bin/sed -i "s:SUBDIRS = lib daemon modules man samples:SUBDIRS = lib daemon modules man:" \ - Makefile.rules - ./configure --prefix=/usr --sysconfdir=/etc/autofs - /usr/bin/make || return 1 - /usr/bin/make INSTALLROOT=${startdir}/pkg install + cd ${srcdir}/${pkgname}-${pkgver} + + sed -i "s:SUBDIRS = lib daemon modules man samples:SUBDIRS = lib daemon modules man:" Makefile.rules + patch -Np1 -i ${srcdir}/heimdal.patch + + ./configure --prefix=/usr \ + --sysconfdir=/etc/autofs \ + --with-mapdir=/etc/autofs \ + --without-hesiod + make || return 1 + make INSTALLROOT=${pkgdir} install local conf_file for conf_file in auto.{master,misc}; do - /bin/install -D -m 644 ${startdir}/$conf_file \ - ${startdir}/pkg/etc/autofs/$conf_file + install -D -m 644 ${srcdir}/$conf_file ${pkgdir}/etc/autofs/$conf_file done - /bin/install -m 755 ${startdir}/auto.net \ - ${startdir}/pkg/etc/autofs/auto.net - /bin/sed -i "s:/etc:/etc/autofs:g" \ - ${startdir}/pkg/usr/man/man5/auto.master.5 - /bin/install -D -m 755 ${startdir}/autofs ${startdir}/pkg/etc/rc.d/autofs - /bin/install -D -m 644 ${startdir}/autofs.conf.d \ - ${startdir}/pkg/etc/conf.d/autofs + sed -i "s:/etc:/etc/autofs:g" ${pkgdir}/usr/share/man/man5/auto.master.5 + install -D -m 755 ${srcdir}/autofs ${pkgdir}/etc/rc.d/autofs + install -D -m 644 ${srcdir}/autofs.conf.d ${pkgdir}/etc/conf.d/autofs } # vim: ts=2 sw=2 et ft=sh |