]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - systemd/patches/systemd-ipfire.patch
4cf071aea2b88cdd7c365e1ee9d3073c77bcd719
[people/pmueller/ipfire-3.x.git] / systemd / patches / systemd-ipfire.patch
1 diff -Nur systemd-37_orig/configure.ac systemd-37/configure.ac
2 --- systemd-37_orig/configure.ac 2011-10-11 20:46:56.000000000 +0200
3 +++ systemd-37/configure.ac 2011-12-17 21:57:31.748682566 +0100
4 @@ -355,7 +355,7 @@
5
6 AC_PATH_PROG([M4], [m4])
7
8 -AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of fedora, suse, debian, ubuntu, arch, gentoo, slackware, altlinux or other]))
9 +AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of fedora, suse, debian, ubuntu, arch, gentoo, slackware, altlinux, ipfire or other]))
10 if test "z$with_distro" = "z"; then
11 if test "$cross_compiling" = yes; then
12 AC_MSG_WARN([Target distribution cannot be reliably detected when cross-compiling. You should specify it with --with-distro (see $0 --help for recognized distros)])
13 @@ -374,6 +374,7 @@
14 if test "x`lsb_release -is 2>/dev/null`" = "xUbuntu"; then
15 with_distro="ubuntu"
16 fi
17 + test -f "/etc/ipfire-release" && with_distro="ipfire"
18 fi
19 if test "z$with_distro" = "z"; then
20 with_distro=`uname -s`
21 @@ -458,6 +459,13 @@
22 AC_DEFINE(TARGET_ANGSTROM, [], [Target is Ångström])
23 M4_DEFINES=-DTARGET_ANGSTROM=1
24 ;;
25 + ipfire)
26 + SYSTEM_SYSVINIT_PATH=
27 + SYSTEM_SYSVRCND_PATH=
28 + AC_DEFINE(TARGET_IPFIRE, [], [Target is IPFire])
29 + M4_DEFINES=-DTARGET_IPFIRE=1
30 + have_plymouth=yes
31 + ;;
32 other)
33 ;;
34 *)
35 @@ -515,6 +523,7 @@
36 AM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" = xmandriva)
37 AM_CONDITIONAL(TARGET_MEEGO, test x"$with_distro" = xmeego)
38 AM_CONDITIONAL(TARGET_ANGSTROM, test x"$with_distro" = xangstrom)
39 +AM_CONDITIONAL(TARGET_IPFIRE, test x"$with_distro" = xipfire)
40
41 AM_CONDITIONAL(HAVE_PLYMOUTH, test "$have_plymouth" = "yes")
42 AM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")