summaryrefslogtreecommitdiff
path: root/debian/patches/0001-Force-set-INITDIR-in-configure.ac-instead-of-relying.patch
blob: 20d1e987041f4533dc21c6196826611de39aec9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
From: Didier Raboud <odyx@debian.org>
Date: Sat, 13 Jun 2020 16:39:07 +0200
Subject: Force-set INITDIR in configure.ac instead of relying on 'test -d
 /etc/init.d', which fails on s390x

---
 configure.ac | 35 ++---------------------------------
 1 file changed, 2 insertions(+), 33 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3b879b8..c586bc8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -422,39 +422,8 @@ RCSTART="$rcstart"
 RCSTOP="$rcstop"
 
 if test x$rcdir = x; then
-	case "`uname`" in
-		FreeBSD* | OpenBSD* | MirBSD* | ekkoBSD*)
-			# FreeBSD and OpenBSD
-			;;
-
-		Linux | GNU | GNU/k*BSD*)
-			# Linux/HURD seems to choose an init.d directory at random...
-			if test -d /sbin/init.d; then
-				# SuSE
-				INITDIR="/sbin/init.d"
-			else
-				if test -d /etc/init.d; then
-					# Others
-					INITDIR="/etc"
-				else
-					# RedHat
-					INITDIR="/etc/rc.d"
-				fi
-			fi
-			RCSTART="82"
-			RCSTOP="35"
-			;;
-
-		NetBSD*)
-			# NetBSD
-			INITDDIR="/etc/rc.d"
-			;;
-
-		*)
-			INITDIR="/etc"
-			;;
-
-	esac
+	# Debian
+	INITDIR=/etc
 elif test "x$rcdir" != xno; then
 	if test "x$rclevels" = x; then
 		INITDDIR="$rcdir"