RedHat: Change the defined initdir path to /etc/rc.d/init.d
authorJonathan Billings <jsbillin@umich.edu>
Fri, 7 Jan 2011 15:44:27 +0000 (10:44 -0500)
committerDerrick Brashear <shadow@dementia.org>
Mon, 14 Feb 2011 05:29:32 +0000 (21:29 -0800)
On Red Hat systems, /etc/init.d is a symlink to /etc/rc.d/init.d.  We
should use the actual path for packaging the init scripts, to avoid
any issues with package verification.

Change-Id: I476193b3fd534c8aa70c67970bf2765a30f4c4d5
Reviewed-on: http://gerrit.openafs.org/3625
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>

src/packaging/RedHat/openafs.spec.in

index f48cced..6c13ed3 100644 (file)
 %define bootkernelsupport %{?_with_bootkernel:1}%{!?_with_bootkernel:0}
 
 # Define the location of your init.d directory
-%define initdir /etc/init.d
+%define initdir /etc/rc.d/init.d
 
 #determine if the kernel provides an arch-specific Provides
 %define kprovidesarch %(%{kversis} provideskernelarch %{ksrcdir} %{_target_cpu})