diff -Naur systemd-195/configure.ac systemd-195-magellan/configure.ac --- systemd-195/configure.ac 2012-10-23 00:12:33.125008955 +0200 +++ systemd-195-magellan/configure.ac 2012-11-19 18:45:47.354762080 +0100 @@ -646,7 +646,7 @@ # ------------------------------------------------------------------------------ -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, 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, 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)]) @@ -699,6 +699,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 + AC_DEFINE_UNQUOTED(TTY_GID, [4], [Using GID '4' for the 'tty' group]) + ;; slackware) SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d AC_DEFINE(TARGET_SLACKWARE, [], [Target is Slackware]) @@ -775,6 +782,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-195/Makefile.am systemd-195-magellan/Makefile.am --- systemd-195/Makefile.am 2012-10-23 00:12:33.119008942 +0200 +++ systemd-195-magellan/Makefile.am 2012-11-19 18:43:35.339762978 +0100 @@ -164,6 +164,12 @@ -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \ -DKBD_SETFONT=\"/usr/bin/setfont\" 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\" \ @@ -195,6 +201,7 @@ endif endif endif +endif endif endif endif diff -Naur systemd-195/src/core/hostname-setup.c systemd-195-magellan/src/core/hostname-setup.c --- systemd-195/src/core/hostname-setup.c 2012-09-13 22:20:11.849827740 +0200 +++ systemd-195-magellan/src/core/hostname-setup.c 2012-11-19 18:43:35.339762978 +0100 @@ -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) @@ -116,7 +118,7 @@ finish: 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-195/src/core/locale-setup.c systemd-195-magellan/src/core/locale-setup.c --- systemd-195/src/core/locale-setup.c 2012-07-09 16:37:46.586038729 +0200 +++ systemd-195-magellan/src/core/locale-setup.c 2012-11-19 18:43:35.340762977 +0100 @@ -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-195/src/fsck/fsck.c systemd-195-magellan/src/fsck/fsck.c --- systemd-195/src/fsck/fsck.c 2012-07-26 12:45:14.484061294 +0200 +++ systemd-195-magellan/src/fsck/fsck.c 2012-11-19 18:43:35.340762977 +0100 @@ -128,7 +128,7 @@ arg_skip = true; else if (startswith(w, "fsck")) log_warning("Invalid fsck 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-195/src/quotacheck/quotacheck.c systemd-195-magellan/src/quotacheck/quotacheck.c --- systemd-195/src/quotacheck/quotacheck.c 2012-06-22 09:37:42.823398626 +0200 +++ systemd-195-magellan/src/quotacheck/quotacheck.c 2012-11-19 18:43:35.340762977 +0100 @@ -54,7 +54,7 @@ arg_skip = true; else if (startswith(w, "quotacheck")) log_warning("Invalid quotacheck 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-195/src/vconsole/vconsole-setup.c systemd-195-magellan/src/vconsole/vconsole-setup.c --- systemd-195/src/vconsole/vconsole-setup.c 2012-10-03 17:55:37.905259616 +0200 +++ systemd-195-magellan/src/vconsole/vconsole-setup.c 2012-11-19 18:43:35.341762976 +0100 @@ -370,6 +370,20 @@ if (r < 0 && r != -ENOENT) log_warning("Failed to read /etc/conf.d/keymaps: %s", strerror(-r)); +#elif defined(TARGET_MAGELLAN) + if ((r = parse_env_file("/etc/conf.d/keymap", NEWLINE, + "KEYMAP", &vc_keymap, + NULL)) < 0) { + if (r < 0 && 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 < 0 && r != -ENOENT) + log_warning("Failed to read /etc/conf.d/consolefont: %s", strerror(-r)); + } + #elif defined(TARGET_MANDRIVA) || defined (TARGET_MAGEIA) r = parse_env_file("/etc/sysconfig/i18n", NEWLINE,