From 06c6ae697404e55c467a5e7839b86c9b31aebcb1 Mon Sep 17 00:00:00 2001 From: Ian Kent Date: Fri, 13 Mar 2009 03:07:24 +0000 Subject: [PATCH] - add LSB init script parameter block. --- ...-add-lsb-init-script-parameter-block.patch | 69 +++++++++++++++++++ autofs.spec | 7 +- 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 autofs-5.0.4-add-lsb-init-script-parameter-block.patch diff --git a/autofs-5.0.4-add-lsb-init-script-parameter-block.patch b/autofs-5.0.4-add-lsb-init-script-parameter-block.patch new file mode 100644 index 0000000..7b7aa0e --- /dev/null +++ b/autofs-5.0.4-add-lsb-init-script-parameter-block.patch @@ -0,0 +1,69 @@ +autofs-5.0.4 - add lsb init script parameter block + +From: Ian Kent + + +--- + + CHANGELOG | 1 + + redhat/autofs.init.in | 11 ++++++++++- + samples/rc.autofs.in | 11 ++++++++++- + 3 files changed, 21 insertions(+), 2 deletions(-) + + +diff --git a/CHANGELOG b/CHANGELOG +index 4df6a60..aab3209 100644 +--- a/CHANGELOG ++++ b/CHANGELOG +@@ -30,6 +30,7 @@ + - fix return start status on fail. + - fix double free in expire_proc(). + - another easy alloca replacements fix. ++- add LSB init script parameter block. + + 4/11/2008 autofs-5.0.4 + ----------------------- +diff --git a/redhat/autofs.init.in b/redhat/autofs.init.in +index 471667e..0fd1777 100644 +--- a/redhat/autofs.init.in ++++ b/redhat/autofs.init.in +@@ -6,7 +6,16 @@ + # processname: /usr/sbin/automount + # config: /etc/auto.master + # description: Automounts filesystems on demand +- ++# ++### BEGIN INIT INFO ++# Provides: $autofs ++# Should-Start: $network $ypbind ++# Should-Stop: $network $ypbind ++# Default-Start: 3 4 5 ++# Default-Stop: 0 1 2 6 ++# Short-Description: Automounts filesystems on demand ++# Description: Automounts filesystems on demand ++### END INIT INFO + # + # Location of the automount daemon and the init directory + # +diff --git a/samples/rc.autofs.in b/samples/rc.autofs.in +index 2877fe2..63a0c5d 100644 +--- a/samples/rc.autofs.in ++++ b/samples/rc.autofs.in +@@ -5,7 +5,16 @@ + # On most distributions, this file should be called: + # /etc/rc.d/init.d/autofs or /etc/init.d/autofs or /etc/rc.d/rc.autofs + # +- ++# ++### BEGIN INIT INFO ++# Provides: $autofs ++# Should-Start: $network $ypbind ++# Should-Stop: $network $ypbind ++# Default-Start: 3 4 5 ++# Default-Stop: 0 1 2 6 ++# Short-Description: Automounts filesystems on demand ++# Description: Automounts filesystems on demand ++### END INIT INFO + # + # Location of the automount daemon and the init directory + # diff --git a/autofs.spec b/autofs.spec index c5c232b..8332473 100644 --- a/autofs.spec +++ b/autofs.spec @@ -4,7 +4,7 @@ Summary: A tool for automatically mounting and unmounting filesystems Name: autofs Version: 5.0.4 -Release: 19 +Release: 20 Epoch: 1 License: GPLv2+ Group: System Environment/Daemons @@ -40,6 +40,7 @@ Patch27: autofs-5.0.4-fix-bad-token-declare.patch Patch28: autofs-5.0.4-fix-return-start-status-on-fail.patch Patch29: autofs-5.0.4-fix-double-free-in-expire_proc.patch Patch30: autofs-5.0.4-another-easy-alloca-replacements-fix.patch +Patch31: autofs-5.0.4-add-lsb-init-script-parameter-block.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: autoconf, hesiod-devel, openldap-devel, bison, flex, libxml2-devel, cyrus-sasl-devel, openssl-devel module-init-tools util-linux nfs-utils e2fsprogs libtirpc-devel Requires: kernel >= 2.6.17 @@ -111,6 +112,7 @@ echo %{version}-%{release} > .version %patch28 -p1 %patch29 -p1 %patch30 -p1 +%patch31 -p1 %build #CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=%{_libdir} @@ -163,6 +165,9 @@ fi %{_libdir}/autofs/ %changelog +* Fri Mar 13 2009 Ian Kent - 1:5.0.4-20 +- add LSB init script parameter block. + * Fri Mar 13 2009 Ian Kent - 1:5.0.4-19 - another easy alloca replacements fix.