From: Stefan Schantl Date: Sat, 17 Dec 2011 21:15:49 +0000 (+0100) Subject: systemd: Add patch for branding. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfabb32337634b1785f809ea823618f1c258e1b3;p=ipfire-3.x.git systemd: Add patch for branding. Also specify that our distribution has plymouth. --- diff --git a/systemd/patches/systemd-ipfire.patch b/systemd/patches/systemd-ipfire.patch new file mode 100644 index 000000000..4cf071aea --- /dev/null +++ b/systemd/patches/systemd-ipfire.patch @@ -0,0 +1,42 @@ +diff -Nur systemd-37_orig/configure.ac systemd-37/configure.ac +--- systemd-37_orig/configure.ac 2011-10-11 20:46:56.000000000 +0200 ++++ systemd-37/configure.ac 2011-12-17 21:57:31.748682566 +0100 +@@ -355,7 +355,7 @@ + + AC_PATH_PROG([M4], [m4]) + +-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])) ++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])) + if test "z$with_distro" = "z"; then + if test "$cross_compiling" = yes; then + 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)]) +@@ -374,6 +374,7 @@ + if test "x`lsb_release -is 2>/dev/null`" = "xUbuntu"; then + with_distro="ubuntu" + fi ++ test -f "/etc/ipfire-release" && with_distro="ipfire" + fi + if test "z$with_distro" = "z"; then + with_distro=`uname -s` +@@ -458,6 +459,13 @@ + AC_DEFINE(TARGET_ANGSTROM, [], [Target is Ångström]) + M4_DEFINES=-DTARGET_ANGSTROM=1 + ;; ++ ipfire) ++ SYSTEM_SYSVINIT_PATH= ++ SYSTEM_SYSVRCND_PATH= ++ AC_DEFINE(TARGET_IPFIRE, [], [Target is IPFire]) ++ M4_DEFINES=-DTARGET_IPFIRE=1 ++ have_plymouth=yes ++ ;; + other) + ;; + *) +@@ -515,6 +523,7 @@ + AM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" = xmandriva) + AM_CONDITIONAL(TARGET_MEEGO, test x"$with_distro" = xmeego) + AM_CONDITIONAL(TARGET_ANGSTROM, test x"$with_distro" = xangstrom) ++AM_CONDITIONAL(TARGET_IPFIRE, test x"$with_distro" = xipfire) + + AM_CONDITIONAL(HAVE_PLYMOUTH, test "$have_plymouth" = "yes") + AM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes") diff --git a/systemd/systemd.nm b/systemd/systemd.nm index d8032c298..54fcef4d3 100644 --- a/systemd/systemd.nm +++ b/systemd/systemd.nm @@ -5,7 +5,7 @@ name = systemd version = 36 -release = 5 +release = 6 maintainer = Stefan Schantl groups = System/Base @@ -30,6 +30,7 @@ build docbook-utils docbook-xsl gperf + gettext-devel intltool libacl-devel libcap-devel @@ -44,9 +45,7 @@ build --sysconfdir=/etc \ --libexecdir=/usr/lib \ --with-rootdir= \ - --with-distro=other \ - --with-sysvinit-path= \ - --with-sysvrcd-path= \ + --with-distro=ipfire \ --with-udevrulesdir=/lib/udev/rules.d/ \ --with-pamlibdir=/lib/security