diff -Naur systemd-185/configure.ac systemd-185-magellan/configure.ac --- systemd-185/configure.ac 2012-06-04 20:06:13.704620269 +0200 +++ systemd-185-magellan/configure.ac 2012-06-26 16:03:20.226982674 +0200 @@ -494,7 +494,7 @@ AC_PATH_PROG([XSLTPROC], [xsltproc]) AM_CONDITIONAL(HAVE_XSLTPROC, test x"$XSLTPROC" != x) -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, mandriva, meego, mageia, angstrom 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, magellan, slackware, altlinux, mandriva, meego, mageia, angstrom 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)]) @@ -550,6 +550,13 @@ AC_DEFINE(TARGET_GENTOO, [], [Target is Gentoo]) M4_DEFINES=-DTARGET_GENTOO=1 ;; + magellan) + SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d + SYSTEM_SYSVRCND_PATH=/etc/rc.d + AC_DEFINE(TARGET_MAGELLAN, [], [Target is Magellan]) + M4_DEFINES=-DTARGET_MAGELLAN=1 + have_plymouth=yes + ;; slackware) SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d AC_DEFINE(TARGET_SLACKWARE, [], [Target is Slackware]) @@ -641,6 +648,7 @@ AM_CONDITIONAL(TARGET_DEBIAN_OR_UBUNTU, test x"$with_distro" = xdebian -o x"$with_distro" = xubuntu) AM_CONDITIONAL(TARGET_ARCH, test x"$with_distro" = xarch) AM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo) +AM_CONDITIONAL(TARGET_MAGELLAN, test x"$with_distro" = xmagellan) AM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware) AM_CONDITIONAL(TARGET_FRUGALWARE, test x"$with_distro" = xfrugalware) AM_CONDITIONAL(TARGET_ALTLINUX, test x"$with_distro" = xaltlinux) diff -Naur systemd-185/Makefile.am systemd-185-magellan/Makefile.am --- systemd-185/Makefile.am 2012-06-04 20:14:57.703501056 +0200 +++ systemd-185-magellan/Makefile.am 2012-06-26 16:04:38.444982768 +0200 @@ -153,6 +153,12 @@ -DKBD_SETFONT=\"/usr/bin/setfont\" \ -DDEFAULT_FONT=\"LatArCyrHeb-16\" else +if TARGET_MAGELLAN +AM_CPPFLAGS += \ + -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \ + -DKBD_SETFONT=\"/usr/bin/setfont\" \ + -DDEFAULT_FONT=\"LatArCyrHeb-16\" +else if TARGET_ARCH AM_CPPFLAGS += \ -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \ @@ -196,6 +202,7 @@ endif endif endif +endif endif endif endif diff -Naur systemd-185/src/core/hostname-setup.c systemd-185-magellan/src/core/hostname-setup.c --- systemd-185/src/core/hostname-setup.c 2012-05-21 19:23:02.751293222 +0200 +++ systemd-185-magellan/src/core/hostname-setup.c 2012-06-26 16:08:41.560982822 +0200 @@ -34,6 +34,8 @@ #define FILENAME "/etc/sysconfig/network" #elif defined(TARGET_SUSE) || defined(TARGET_SLACKWARE) #define FILENAME "/etc/HOSTNAME" +#elif defined(TARGET_MAGELLAN) +#define FILENAME "/etc/hostname" #elif defined(TARGET_ARCH) #define FILENAME "/etc/rc.conf" #elif defined(TARGET_GENTOO) @@ -117,7 +119,7 @@ fclose(f); return r; -#elif defined(TARGET_SUSE) || defined(TARGET_SLACKWARE) +#elif defined(TARGET_SUSE) || defined(TARGET_SLACKWARE) || defined(TARGET_MAGELLAN) return read_and_strip_hostname(FILENAME, hn); #else return -ENOENT; diff -Naur systemd-185/src/core/locale-setup.c systemd-185-magellan/src/core/locale-setup.c --- systemd-185/src/core/locale-setup.c 2012-04-12 01:04:30.612222912 +0200 +++ systemd-185-magellan/src/core/locale-setup.c 2012-06-26 16:11:06.075983329 +0200 @@ -173,7 +173,7 @@ log_warning("Failed to read /etc/rc.conf: %s", strerror(-r)); } -#elif defined(TARGET_GENTOO) +#elif defined(TARGET_GENTOO) || defined(TARGET_MAGELLAN) /* Gentoo's openrc expects locale variables in /etc/env.d/ * These files are later compiled by env-update into shell * export commands at /etc/profile.env, with variables being diff -Naur systemd-185/src/fsck/fsck.c systemd-185-magellan/src/fsck/fsck.c --- systemd-185/src/fsck/fsck.c 2012-04-12 17:54:42.016667199 +0200 +++ systemd-185-magellan/src/fsck/fsck.c 2012-06-26 16:06:03.926982686 +0200 @@ -127,7 +127,7 @@ arg_skip = true; else if (startswith(w, "fsck.mode")) log_warning("Invalid fsck.mode= parameter. Ignoring."); -#if defined(TARGET_FEDORA) || defined(TARGET_MANDRIVA) || defined(TARGET_MAGEIA) +#if defined(TARGET_FEDORA) || defined(TARGET_MANDRIVA) || defined(TARGET_MAGEIA) || defined(TARGET_MAGELLAN) else if (strneq(w, "fastboot", l)) arg_skip = true; else if (strneq(w, "forcefsck", l)) diff -Naur systemd-185/src/quotacheck/quotacheck.c systemd-185-magellan/src/quotacheck/quotacheck.c --- systemd-185/src/quotacheck/quotacheck.c 2012-04-12 17:54:42.017667199 +0200 +++ systemd-185-magellan/src/quotacheck/quotacheck.c 2012-06-26 16:13:20.141982550 +0200 @@ -54,7 +54,7 @@ arg_skip = true; else if (startswith(w, "quotacheck.mode")) log_warning("Invalid quotacheck.mode= parameter. Ignoring."); -#if defined(TARGET_FEDORA) || defined(TARGET_MANDRIVA) || defined(TARGET_MAGEIA) +#if defined(TARGET_FEDORA) || defined(TARGET_MANDRIVA) || defined(TARGET_MAGEIA) || defined(TARGET_MAGELLAN) else if (strneq(w, "forcequotacheck", l)) arg_force = true; #endif @@ -65,8 +65,8 @@ } static void test_files(void) { -#if defined(TARGET_FEDORA) || defined(TARGET_MANDRIVA) || defined(TARGET_MAGEIA) - /* This exists only on Fedora, Mandriva or Mageia */ +#if defined(TARGET_FEDORA) || defined(TARGET_MANDRIVA) || defined(TARGET_MAGEIA) || defined(TARGET_MAGELLAN) + /* This exists only on Fedora, Mandriva, Mageia or Magellan */ if (access("/forcequotacheck", F_OK) >= 0) arg_force = true; #endif diff -Naur systemd-185/src/vconsole/vconsole-setup.c systemd-185-magellan/src/vconsole/vconsole-setup.c --- systemd-185/src/vconsole/vconsole-setup.c 2012-05-03 22:03:17.886325106 +0200 +++ systemd-185-magellan/src/vconsole/vconsole-setup.c 2012-06-26 16:16:08.339982793 +0200 @@ -163,6 +163,20 @@ #ifdef TARGET_GENTOO char *vc_unicode = NULL; #endif +#ifdef TARGET_MAGELLAN + if ((r = parse_env_file("/etc/conf.d/keymap", NEWLINE, + "KEYMAP", &vc_keymap, + NULL)) < 0) { + if (r != -ENOENT) + log_warning("Failed to read /etc/conf.d/keymap: %s", strerror(-r)); + } + if ((r = parse_env_file("/etc/conf.d/consolefont", NEWLINE, + "CONSOLEFONT", &vc_font, + NULL)) < 0) { + if (r != -ENOENT) + log_warning("Failed to read /etc/conf.d/consolefont: %s", strerror(-r)); + } +#endif #if defined(TARGET_MANDRIVA) || defined(TARGET_MAGEIA) char *vc_keytable = NULL; #endif