updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / autofs-eyemzpatched / PKGBUILD
blob89c232641c71de7b1fa6c307314ea5591619d615
1 # $Id: PKGBUILD 52252 2009-09-17 04:41:53Z allan $
2 # Maintainer: eYemZ <sdumont@masteri2l.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 # Contributor: Dale Blount <dale@archlinux.org>
5 # Contributor: Manolis Tzanidakis
7 pkgname=autofs-eyemzpatched
8 pkgver=5.0.5
9 pkgrel=2
10 pkgdesc="A kernel-based automounter for Linux."
11 arch=('x86_64')
12 url="http://wiki.autofs.net/FrontPage"
13 license=('GPL2')
14 depends=('libldap>=2.4.18' 'libxml2' 'heimdal')
15 conflicts=('autofs')
16 backup=(etc/autofs/auto.master etc/autofs/auto.misc etc/conf.d/autofs)
17 install=autofs.install
18 source=("http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-${pkgver}.tar.bz2"
19   'autofs'
20   'autofs.conf.d'
21   'auto.master'
22   'auto.misc'
23   'heimdal.patch'
24   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.4-add-mount-wait-parameter.patch'
25   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-check-for-path-mount-location-in-generic-module.patch'
26   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-dont-connect-at-ldap-lookup-module-init.patch'
27   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-dont-fail-mount-on-access-fail.patch'
28   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-dont-use-master_lex_destroy-to-clear-parse-buffer.patch'
29   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-fix-backwards-ifndef-INET6.patch'
30   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-fix-disable-timeout.patch'
31   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-fix-ext4-fsck-at-mount.patch'
32   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-fix-included-map-read-fail-handling.patch'
33   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-fix-libxml2-workaround-configure.patch'
34   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-fix-memory-leak-on-reload.patch'
35   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-fix-pidof-init-script-usage.patch'
36   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-fix-random-selection-option.patch'
37   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-fix-reconnect-get-base-dn.patch'
38   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-fix-rpc-large-export-list.patch'
39   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-fix-stale-init-for-file-map-instance.patch'
40   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-fix-strdup-return-value-check.patch'
41   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-fix-timeout-in-connect_nb.patch'
42   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-make-documentation-for-set-log-priority-clearer.patch'
43   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-more-code-analysis-corrections.patch'
44   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-refactor-ldap-sasl-bind.patch'
45   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-special-case-cifs-escapes.patch'
46   'http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.5-update-kernel-patches-2.6.18-and-2.6.19.patch'
47   'autofs-5.0.5-remove-deprecated-calls.patch'
48   'autofs-5.0.5-fix-krb5-linking.patch')
50 md5sums=('a1d262cb6ebef0c2dd0fe22232fb3d5a'
51          'e307bf6d2638e46eeb916cf42fe029b2'
52          '47f597c870410055e0fdb66103daf928'
53          'a6cefb591e77b31b79dbb7243646c96b'
54          'd8a15ec9186c5c0b36e5cea1e2739e8a'
55          '1ee4825e26ad72bfe86acec3d3da5d2a'
56          '3fb0e9e76b9d308b397780bbb6ea927b'
57          'fb9c3e6b02dd4256bdf2dc4c49db29cc'
58          '7fcaa971b6c3c66a68d19405b110275c'
59          'bac166c8296b31e9b3e9780f5c6c942b'
60          '78a51eee2cbf79027c5450270f9fe9e5'
61          'b28a8687f354c1599409704cca0b7459'
62          '2346c763efc5af60cf58df79a1025167'
63          '5a8f21514713a0726f8cf286e2cfb8a8'
64          '61d81b7a9df22c3642e11715cddf6717'
65          '65dc2a1442f603a5873e419b508f559a'
66          'e97a694d25e1fbb7c0e4d8af71303de8'
67          'b88623f98269794262f3f534558dda5c'
68          '8a3c44ff3a3f33805aac26e6faacac29'
69          '666fe025901a7213329c2daf244f61ca'
70          'fc4d0886ada224a6c783e21000da0be9'
71          'bf6969111e859b745451f261808b47df'
72          '3976dfa9943446b4b176d349c1081f4d'
73          'a7ae40387d8b98872241b16b9947d3f2'
74          'd05afa74eded9a7af79276c9204c0122'
75          'f797f0fa09538b14b3cf89a10537d54e'
76          '0e5e43183a34505523bfcf63a0f930d7'
77          '3b347d0d1abcbc49d5fb7852dabc72e9'
78          '8d6a2d6165a776ede2e3c4f236527988'
79          '0ee3e3e803407255403655bfba87fa6c'
80          '695df6660a72cc0f5388540f33e532cb')
82 build() {
83   export MAKEFLAGS="-j1"
84   cd ${srcdir}/autofs-${pkgver}
86   sed -i "s:SUBDIRS = lib daemon modules man samples:SUBDIRS = lib daemon modules man:" Makefile.rules
87   patch -Np1 -i ${srcdir}/autofs-5.0.5-fix-included-map-read-fail-handling.patch || return 1
88   patch -Np1 -i ${srcdir}/autofs-5.0.5-refactor-ldap-sasl-bind.patch || return 1
89   patch -Np1 -i ${srcdir}/autofs-5.0.4-add-mount-wait-parameter.patch || return 1
90   patch -Np1 -i ${srcdir}/autofs-5.0.5-special-case-cifs-escapes.patch || return 1
91   patch -Np1 -i ${srcdir}/autofs-5.0.5-fix-libxml2-workaround-configure.patch || return 1
92   patch -Np1 -i ${srcdir}/autofs-5.0.5-more-code-analysis-corrections.patch || return 1
93   patch -Np1 -i ${srcdir}/autofs-5.0.5-fix-backwards-ifndef-INET6.patch || return 1
94   patch -Np1 -i ${srcdir}/autofs-5.0.5-fix-stale-init-for-file-map-instance.patch || return 1
95   patch -Np1 -i ${srcdir}/autofs-5.0.5-fix-ext4-fsck-at-mount.patch || return 1
96   patch -Np1 -i ${srcdir}/autofs-5.0.5-dont-use-master_lex_destroy-to-clear-parse-buffer.patch || return 1
97   patch -Np1 -i ${srcdir}/autofs-5.0.5-make-documentation-for-set-log-priority-clearer.patch || return 1
98   patch -Np1 -i ${srcdir}/autofs-5.0.5-fix-timeout-in-connect_nb.patch || return 1
99   patch -Np1 -i ${srcdir}/autofs-5.0.5-fix-pidof-init-script-usage.patch || return 1
100   patch -Np1 -i ${srcdir}/autofs-5.0.5-check-for-path-mount-location-in-generic-module.patch || return 1
101   patch -Np1 -i ${srcdir}/autofs-5.0.5-dont-fail-mount-on-access-fail.patch || return 1
102   patch -Np1 -i ${srcdir}/autofs-5.0.5-fix-rpc-large-export-list.patch || return 1
103   patch -Np1 -i ${srcdir}/autofs-5.0.5-fix-memory-leak-on-reload.patch || return 1
104   patch -Np1 -i ${srcdir}/autofs-5.0.5-update-kernel-patches-2.6.18-and-2.6.19.patch || return 1
105   patch -Np1 -i ${srcdir}/autofs-5.0.5-dont-connect-at-ldap-lookup-module-init.patch || return 1
106   patch -Np1 -i ${srcdir}/autofs-5.0.5-fix-random-selection-option.patch || return 1
107   patch -Np1 -i ${srcdir}/autofs-5.0.5-fix-disable-timeout.patch || return 1
108   patch -Np1 -i ${srcdir}/autofs-5.0.5-fix-strdup-return-value-check.patch || return 1
109   patch -Np1 -i ${srcdir}/autofs-5.0.5-fix-reconnect-get-base-dn.patch || return 1
110   patch -Np1 -i ${srcdir}/heimdal.patch || return 1
111   patch ${srcdir}/autofs-5.0.5/modules/cyrus-sasl.c ${srcdir}/autofs-5.0.5-remove-deprecated-calls.patch || return 1
114   ./configure --prefix=/usr \
115     --sysconfdir=/etc/autofs \
116     --with-mapdir=/etc/autofs \
117     --without-hesiod || return 1
119   patch ${srcdir}/autofs-5.0.5/modules/Makefile ${srcdir}/autofs-5.0.5-fix-krb5-linking.patch || return 1
121   make || return 1
122   make INSTALLROOT=${pkgdir} install
124   local conf_file
125   for conf_file in auto.{master,misc}; do
126     install -D -m 644 ${srcdir}/$conf_file ${pkgdir}/etc/autofs/$conf_file
127   done
129   sed -i "s:/etc:/etc/autofs:g" ${pkgdir}/usr/share/man/man5/auto.master.5
130   install -D -m 755 ${srcdir}/autofs ${pkgdir}/etc/rc.d/autofs
131   install -D -m 644 ${srcdir}/autofs.conf.d ${pkgdir}/etc/conf.d/autofs
133 # vim: ts=2 sw=2 et ft=sh