Gentoo Archives: gentoo-commits

From: "Stefaan De Roeck (stefaan)" <stefaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/autofs: ChangeLog autofs-4.1.3-r9.ebuild
Date: Tue, 05 Feb 2008 12:37:20
Message-Id: E1JMN37-0005at-Hm@stork.gentoo.org
1 stefaan 08/02/05 12:37:17
2
3 Modified: ChangeLog
4 Added: autofs-4.1.3-r9.ebuild
5 Log:
6 Fix bug #91104
7 (Portage version: 2.1.4.1)
8
9 Revision Changes Path
10 1.68 net-fs/autofs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/autofs/ChangeLog?rev=1.68&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/autofs/ChangeLog?rev=1.68&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/autofs/ChangeLog?r1=1.67&r2=1.68
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v
19 retrieving revision 1.67
20 retrieving revision 1.68
21 diff -u -r1.67 -r1.68
22 --- ChangeLog 5 Feb 2008 12:32:19 -0000 1.67
23 +++ ChangeLog 5 Feb 2008 12:37:17 -0000 1.68
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-fs/autofs
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v 1.67 2008/02/05 12:32:19 stefaan Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v 1.68 2008/02/05 12:37:17 stefaan Exp $
29 +
30 +*autofs-4.1.3-r9 (05 Feb 2008)
31 +
32 + 05 Feb 2008; Stefaan De Roeck <stefaan@g.o> +files/autofs.rc14,
33 + +autofs-4.1.3-r9.ebuild:
34 + Fix bug #91104
35
36 05 Feb 2008; Stefaan De Roeck <stefaan@g.o> +files/autofs5.rc1,
37 -files/autofs.rc14, metadata.xml, autofs-5.0.3.ebuild,
38
39
40
41 1.1 net-fs/autofs/autofs-4.1.3-r9.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/autofs/autofs-4.1.3-r9.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/autofs/autofs-4.1.3-r9.ebuild?rev=1.1&content-type=text/plain
45
46 Index: autofs-4.1.3-r9.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-4.1.3-r9.ebuild,v 1.1 2008/02/05 12:37:17 stefaan Exp $
51
52 inherit eutils multilib
53
54 IUSE="ldap"
55 DESCRIPTION="Kernel based automounter"
56 HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html"
57 SRC_URI_BASE="mirror://kernel/linux/daemons/${PN}/v4"
58 SRC_URI="${SRC_URI_BASE}/${P}.tar.bz2
59 ${SRC_URI_BASE}/${P}-strict.patch
60 ${SRC_URI_BASE}/${P}-mtab_lock.patch
61 ${SRC_URI_BASE}/${P}-bad_chdir.patch
62 ${SRC_URI_BASE}/${P}-non_block_ping.patch
63 ${SRC_URI_BASE}/${P}-sock-leak-fix.patch
64 ${SRC_URI_BASE}/${P}-replicated_server_select.patch
65 mirror://gentoo/${P}-miscfixes.patch.gz"
66 DEPEND="virtual/libc
67 ldap? ( >=net-nds/openldap-2.0 )"
68 SLOT="0"
69 LICENSE="GPL-2"
70 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
71
72 src_unpack() {
73 unpack ${P}.tar.bz2
74 PATCH_LIST="${P}-strict.patch ${P}-mtab_lock.patch ${P}-bad_chdir.patch ${P}-non_block_ping.patch ${P}-sock-leak-fix.patch ${P}-replicated_server_select.patch ${P}-miscfixes.patch.gz"
75 for i in ${PATCH_LIST}; do
76 EPATCH_OPTS="-p1 -d ${S}" epatch ${DISTDIR}/${i}
77 done
78
79 # Upstream version of this patch is incorrect
80 epatch "${FILESDIR}"/${P}-signal-race-fix.patch
81
82 cd "${S}"
83 autoconf || die "Autoconf failed"
84
85 cd "${S}"/daemon
86 sed -i 's/LIBS \= \-ldl/LIBS \= \-ldl \-lnsl \$\{LIBLDAP\}/' Makefile \
87 || die "LIBLDAP change failed"
88
89 cd "${S}"/lib
90 sed -i '/^listmount.o:/s,$, mount.h,g' Makefile \
91 || die "Failed to fix dependancies"
92 }
93
94 src_compile() {
95 local myconf
96 use ldap || myconf="--without-openldap"
97
98 econf ${myconf} || die
99 sed -i -e '/^\(CFLAGS\|CXXFLAGS\|LDFLAGS\)[[:space:]]*=/d' Makefile.rules || die "Failed to remove (C|CXX|LD)FLAGS"
100 # fixes segfaults on startup on amd64
101 use amd64 && CFLAGS="${CFLAGS} -DLDAP_DEPRECATED"
102 emake || die "make failed"
103 }
104
105 src_install() {
106 into /usr
107 dosbin daemon/automount
108 exeinto /usr/$(get_libdir)/autofs
109 doexe modules/*.so
110
111 dodoc COPYRIGHT NEWS README* TODO CHANGELOG CREDITS
112 cd "${S}"/samples
113 docinto samples ; dodoc auto.misc auto.master
114 cd "${S}"/man
115 sed -i 's:\/etc\/:\/etc\/autofs\/:g' *.8 *.5 *.in || die "Failed to update path in manpages"
116 doman auto.master.5 autofs.5 autofs.8 automount.8
117
118 insinto /etc/autofs ; doins "${FILESDIR}"/auto.master
119 insinto /etc/autofs ; doins "${FILESDIR}"/auto.misc
120 exeinto /etc/autofs ; doexe "${FILESDIR}"/auto.net # chmod 755 is important!
121
122 newinitd "${FILESDIR}"/autofs.rc14 autofs
123 newconfd "${FILESDIR}"/autofs.confd9 autofs
124 if use ldap; then
125 cd "${S}"/samples
126 docinto samples ; dodoc ldap* auto.master.ldap
127 insinto /etc/openldap/schema ; doins autofs.schema
128 exeinto /usr/$(get_libdir)/autofs ; doexe autofs-ldap-auto-master
129 fi
130 }
131
132 pkg_postinst() {
133 elog "Note: If you plan on using autofs for automounting"
134 elog "remote NFS mounts without having the NFS daemon running"
135 elog "please add portmap to your default run-level."
136 elog
137 elog "Also the normal autofs status has been renamed stats"
138 elog "as there is already a predefined Gentoo status"
139 }
140
141
142
143 --
144 gentoo-commits@l.g.o mailing list