summaryrefslogtreecommitdiffstats
path: root/systemd/NuTyX.patch
blob: 4a4d8342833c29a09dc11f663121788e814f9857 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
diff -u -r systemd-187.old/configure.ac systemd-187/configure.ac
--- systemd-187.old/configure.ac	2012-08-04 12:40:15.415217549 +0200
+++ systemd-187/configure.ac	2012-08-04 12:43:10.653014512 +0200
@@ -504,7 +504,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, 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, slackware, altlinux, mandriva, mageia, angstrom, nutyx 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)])
@@ -587,6 +587,12 @@
                 AC_DEFINE(TARGET_MAGEIA, [], [Target is Mageia])
                 M4_DEFINES=-DTARGET_MAGEIA=1
                 ;;
+        nutyx)
+                SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
+                SYSTEM_SYSVRCND_PATH=/etc/rc.d
+                AC_DEFINE(TARGET_NUTYX, [], [Target is NuTyX])
+                M4_DEFINES=-DTARGET_NUTYX=1
+                ;;
         other)
                 ;;
         *)
@@ -639,6 +645,7 @@
 AM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" = xmandriva)
 AM_CONDITIONAL(TARGET_ANGSTROM, test x"$with_distro" = xangstrom)
 AM_CONDITIONAL(TARGET_MAGEIA, test x"$with_distro" = xmageia)
+AM_CONDITIONAL(TARGET_NUTYX, test x"$with_distro" = xnutyx)
 
 AM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
 
diff -u -r systemd-187.old/Makefile.am systemd-187/Makefile.am
--- systemd-187.old/Makefile.am	2012-08-04 12:40:15.345218430 +0200
+++ systemd-187/Makefile.am	2012-08-04 12:44:24.922080822 +0200
@@ -189,6 +189,12 @@
 	-DKBD_SETFONT=\"/bin/setfont\" \
 	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
 else
+if TARGET_NUTYX
+AM_CPPFLAGS += \
+	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
+	-DKBD_SETFONT=\"/bin/setfont\" \
+	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
+else
 AM_CPPFLAGS += \
 	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
 	-DKBD_SETFONT=\"/bin/setfont\" \
@@ -199,6 +205,7 @@
 endif
 endif
 endif
+endif
 
 # ------------------------------------------------------------------------------
 rootbin_PROGRAMS = \
@@ -423,6 +430,11 @@
 	systemd-rc-local-generator
 endif
 
+if TARGET_NUTYX
+dist_systemunit_DATA += \
+	units/frugalware/display-manager.service
+endif
+
 dist_doc_DATA = \
 	README \
 	NEWS \
diff -u -r systemd-187.old/src/journal/journalctl.c systemd-187/src/journal/journalctl.c
--- systemd-187.old/src/journal/journalctl.c	2012-08-04 12:40:15.355218304 +0200
+++ systemd-187/src/journal/journalctl.c	2012-08-04 12:44:52.461734604 +0200
@@ -327,8 +327,8 @@
         }
 
 #ifdef HAVE_ACL
-        if (!arg_quiet && geteuid() != 0 && in_group("adm") <= 0)
-                log_warning("Showing user generated messages only. Users in the group 'adm' can see all messages. Pass -q to turn this message off.");
+        if (!arg_quiet && geteuid() != 0 && in_group("admin") <= 0)
+                log_warning("Showing user generated messages only. Users in the group 'admin' can see all messages. Pass -q to turn this message off.");
 #endif
 
         if (arg_directory)
diff -u -r systemd-187.old/src/journal/journald.c systemd-187/src/journal/journald.c
--- systemd-187.old/src/journal/journald.c	2012-08-04 12:40:15.355218304 +0200
+++ systemd-187/src/journal/journald.c	2012-08-04 12:45:22.681354690 +0200
@@ -205,7 +205,7 @@
 }
 
 static void server_read_file_gid(Server *s) {
-        const char *adm = "adm";
+        const char *adm = "admin";
         int r;
 
         assert(s);
@@ -215,7 +215,7 @@
 
         r = get_group_creds(&adm, &s->file_gid);
         if (r < 0)
-                log_warning("Failed to resolve 'adm' group: %s", strerror(-r));
+                log_warning("Failed to resolve 'admin' group: %s", strerror(-r));
 
         /* if we couldn't read the gid, then it will be 0, but that's
          * fine and we shouldn't try to resolve the group again, so