<?xml version="1.0"?>
<package name="autofs">
	<description>A kernel-based automounter for Linux </description>
	<releases>
		<release version="5.0.3" revision="3" branch="stable">
			<build>
				<script>
					<archive name="autofs-$VERSION">
						<!-- upstream patches -->
						<patch name="autofs-$VERSION-ldap-page-control-configure-fix"/>
						<patch name="autofs-$VERSION-xfn-not-supported"/>
						<patch name="autofs-$VERSION-basedn-with-spaces-fix-3"/>
						<patch name="autofs-$VERSION-nfs4-tcp-only"/>
						<patch name="autofs-$VERSION-correct-ldap-lib"/>
						<patch name="autofs-$VERSION-dont-fail-on-empty-master-fix-2"/>
						<patch name="autofs-$VERSION-expire-works-too-hard"/>
						<patch name="autofs-$VERSION-unlink-mount-return-fix"/>
						<patch name="autofs-$VERSION-update-linux-auto_fs4-h"/>
						<patch name="autofs-$VERSION-expire-works-too-hard-update"/>
						<patch name="autofs-$VERSION-expire-works-too-hard-update-2"/>
						<patch name="autofs-$VERSION-handle-zero-length-nis-key"/>
						<patch name="autofs-$VERSION-init-cb-on-load"/>
						<patch name="autofs-$VERSION-map-type-in-map-name"/>
						<patch name="autofs-$VERSION-mount-thread-create-cond-handling"/>
						
						<cmd>sed -i -e 's/ samples//' Makefile.rules</cmd>
						<cmd>./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --without-openldap --without-sasl</cmd>
						<!-- parallel build broken -->
						<cmd>make</cmd>
						<cmd>make install</cmd>
						<install name="init-autofs-20080502" dest="/etc/init.d/autofs" mode="0755"/>
					</archive>
				</script>
			</build>
			<postinst>
				<cmd check="no">[ -e /etc/auto.master ] || cat &gt; /etc/auto.master &lt;&lt; "EOF"
# auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
EOF</cmd>
			</postinst>
		</release>
	</releases>
</package>
