diff options
14 files changed, 19 insertions, 371 deletions
diff --git a/meta/lib/oeqa/runtime/cases/parselogs.py b/meta/lib/oeqa/runtime/cases/parselogs.py index 15343d7abb..b7c7b30adf 100644 --- a/meta/lib/oeqa/runtime/cases/parselogs.py +++ b/meta/lib/oeqa/runtime/cases/parselogs.py | |||
@@ -55,7 +55,8 @@ common_errors = [ | |||
55 | "Failed to read /var/lib/nfs/statd/state: Success", | 55 | "Failed to read /var/lib/nfs/statd/state: Success", |
56 | "error retry time-out =", | 56 | "error retry time-out =", |
57 | "logind: cannot setup systemd-logind helper (-61), using legacy fallback", | 57 | "logind: cannot setup systemd-logind helper (-61), using legacy fallback", |
58 | "Error changing net interface name 'eth0' to " | 58 | "Error changing net interface name 'eth0' to ", |
59 | "Cannot find a map file" | ||
59 | ] | 60 | ] |
60 | 61 | ||
61 | video_related = [ | 62 | video_related = [ |
diff --git a/meta/recipes-extended/sysklogd/files/0001-Fix-build-with-musl.patch b/meta/recipes-extended/sysklogd/files/0001-Fix-build-with-musl.patch deleted file mode 100644 index 9567946c0c..0000000000 --- a/meta/recipes-extended/sysklogd/files/0001-Fix-build-with-musl.patch +++ /dev/null | |||
@@ -1,132 +0,0 @@ | |||
1 | From f0af5bcfd753691652eac35efbcb208c933253f1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 31 Aug 2015 05:11:53 +0000 | ||
4 | Subject: [PATCH] Fix build with musl | ||
5 | |||
6 | Explicitly include fcntl.h since with glibc is comes in as indirect | ||
7 | include but not with musl | ||
8 | |||
9 | linux/time.h inclusion is not required on musl so using !__GLIBC__ is | ||
10 | not right for musl here | ||
11 | |||
12 | wait type is glibc specific | ||
13 | |||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | Upstream-Status: Pending | ||
17 | |||
18 | klogd.c | 10 +--------- | ||
19 | ksym_mod.c | 5 +---- | ||
20 | pidfile.c | 1 + | ||
21 | syslog.c | 3 ++- | ||
22 | syslogd.c | 4 +--- | ||
23 | 5 files changed, 6 insertions(+), 17 deletions(-) | ||
24 | |||
25 | diff --git a/klogd.c b/klogd.c | ||
26 | index 6cc80ed..9219671 100644 | ||
27 | --- a/klogd.c | ||
28 | +++ b/klogd.c | ||
29 | @@ -260,11 +260,8 @@ | ||
30 | #include <unistd.h> | ||
31 | #include <signal.h> | ||
32 | #include <errno.h> | ||
33 | -#include <sys/fcntl.h> | ||
34 | +#include <fcntl.h> | ||
35 | #include <sys/stat.h> | ||
36 | -#if !defined(__GLIBC__) | ||
37 | -#include <linux/time.h> | ||
38 | -#endif /* __GLIBC__ */ | ||
39 | #include <stdarg.h> | ||
40 | #include <paths.h> | ||
41 | #include <stdlib.h> | ||
42 | @@ -277,13 +274,8 @@ | ||
43 | |||
44 | #define __LIBRARY__ | ||
45 | #include <linux/unistd.h> | ||
46 | -#if !defined(__GLIBC__) | ||
47 | -# define __NR_ksyslog __NR_syslog | ||
48 | -_syscall3(int,ksyslog,int, type, char *, buf, int, len); | ||
49 | -#else | ||
50 | #include <sys/klog.h> | ||
51 | #define ksyslog klogctl | ||
52 | -#endif | ||
53 | |||
54 | #define LOG_BUFFER_SIZE 4096 | ||
55 | #define LOG_LINE_LENGTH 1000 | ||
56 | diff --git a/ksym_mod.c b/ksym_mod.c | ||
57 | index 68cd6b6..6e26da1 100644 | ||
58 | --- a/ksym_mod.c | ||
59 | +++ b/ksym_mod.c | ||
60 | @@ -113,12 +113,9 @@ | ||
61 | #include <unistd.h> | ||
62 | #include <signal.h> | ||
63 | #include <errno.h> | ||
64 | -#include <sys/fcntl.h> | ||
65 | +#include <fcntl.h> | ||
66 | #include <sys/stat.h> | ||
67 | #include "module.h" | ||
68 | -#if !defined(__GLIBC__) | ||
69 | -#include <linux/time.h> | ||
70 | -#endif /* __GLIBC__ */ | ||
71 | #include <stdarg.h> | ||
72 | #include <paths.h> | ||
73 | #include <linux/version.h> | ||
74 | diff --git a/pidfile.c b/pidfile.c | ||
75 | index e0959a0..6daa2e0 100644 | ||
76 | --- a/pidfile.c | ||
77 | +++ b/pidfile.c | ||
78 | @@ -31,6 +31,7 @@ | ||
79 | #include <string.h> | ||
80 | #include <errno.h> | ||
81 | #include <signal.h> | ||
82 | +#include <fcntl.h> | ||
83 | |||
84 | /* read_pid | ||
85 | * | ||
86 | diff --git a/syslog.c b/syslog.c | ||
87 | index bdb3ff2..ef7b34e 100644 | ||
88 | --- a/syslog.c | ||
89 | +++ b/syslog.c | ||
90 | @@ -55,7 +55,7 @@ static char sccsid[] = "@(#)syslog.c 5.28 (Berkeley) 6/27/90"; | ||
91 | #include <sys/types.h> | ||
92 | #include <sys/socket.h> | ||
93 | #include <sys/file.h> | ||
94 | -#include <sys/signal.h> | ||
95 | +//#include <sys/signal.h> | ||
96 | #include <sys/syslog.h> | ||
97 | #if 0 | ||
98 | #include "syslog.h" | ||
99 | @@ -72,6 +72,7 @@ static char sccsid[] = "@(#)syslog.c 5.28 (Berkeley) 6/27/90"; | ||
100 | #include <stdarg.h> | ||
101 | #include <paths.h> | ||
102 | #include <stdio.h> | ||
103 | +#include <fcntl.h> | ||
104 | |||
105 | #define _PATH_LOGNAME "/dev/log" | ||
106 | |||
107 | diff --git a/syslogd.c b/syslogd.c | ||
108 | index ea73ea5..1ca0595 100644 | ||
109 | --- a/syslogd.c | ||
110 | +++ b/syslogd.c | ||
111 | @@ -818,9 +818,7 @@ void doexit(int sig); | ||
112 | void init(); | ||
113 | void cfline(char *line, register struct filed *f); | ||
114 | int decode(char *name, struct code *codetab); | ||
115 | -#if defined(__GLIBC__) | ||
116 | #define dprintf mydprintf | ||
117 | -#endif /* __GLIBC__ */ | ||
118 | static void dprintf(char *, ...); | ||
119 | static void allocate_log(void); | ||
120 | void sighup_handler(); | ||
121 | @@ -2094,7 +2092,7 @@ void reapchild() | ||
122 | (void) signal(SIGCHLD, reapchild); /* reset signal handler -ASP */ | ||
123 | wait ((int *)0); | ||
124 | #else | ||
125 | - union wait status; | ||
126 | + int status; | ||
127 | |||
128 | while (wait3(&status, WNOHANG, (struct rusage *) NULL) > 0) | ||
129 | ; | ||
130 | -- | ||
131 | 2.5.1 | ||
132 | |||
diff --git a/meta/recipes-extended/sysklogd/files/0001-fix-problems-that-causes-a-segmentation-fault-under-.patch b/meta/recipes-extended/sysklogd/files/0001-fix-problems-that-causes-a-segmentation-fault-under-.patch deleted file mode 100644 index 56431af845..0000000000 --- a/meta/recipes-extended/sysklogd/files/0001-fix-problems-that-causes-a-segmentation-fault-under-.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | From cb72b3e172c238b4b5ae5935dc6be54f5034fcf1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 30 Jun 2017 18:20:06 -0700 | ||
4 | Subject: [PATCH 1/2] fix problems that causes a segmentation fault under some | ||
5 | conditions | ||
6 | |||
7 | Upstream-Status: Inappropriate [ no upstream ] | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | ksym_mod.c | 1 - | ||
12 | 1 file changed, 1 deletion(-) | ||
13 | |||
14 | diff --git a/ksym_mod.c b/ksym_mod.c | ||
15 | index 6e26da1..a3daa7d 100644 | ||
16 | --- a/ksym_mod.c | ||
17 | +++ b/ksym_mod.c | ||
18 | @@ -186,7 +186,6 @@ extern int InitMsyms() | ||
19 | else | ||
20 | Syslog(LOG_ERR, "Error loading kernel symbols " \ | ||
21 | "- %s\n", strerror(errno)); | ||
22 | - fclose(ksyms); | ||
23 | return(0); | ||
24 | } | ||
25 | |||
26 | -- | ||
27 | 2.13.2 | ||
28 | |||
diff --git a/meta/recipes-extended/sysklogd/files/0002-Make-way-for-respecting-flags-from-environment.patch b/meta/recipes-extended/sysklogd/files/0002-Make-way-for-respecting-flags-from-environment.patch deleted file mode 100644 index ebbdef303b..0000000000 --- a/meta/recipes-extended/sysklogd/files/0002-Make-way-for-respecting-flags-from-environment.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From b22f244732cd0f475af2f82fc7eecec49f90623b Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 1 Jul 2017 00:01:50 -0700 | ||
4 | Subject: [PATCH 2/2] Make way for respecting flags from environment | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | Makefile | 4 +--- | ||
11 | 1 file changed, 1 insertion(+), 3 deletions(-) | ||
12 | |||
13 | diff --git a/Makefile b/Makefile | ||
14 | index 5af1689..af699d2 100644 | ||
15 | --- a/Makefile | ||
16 | +++ b/Makefile | ||
17 | @@ -17,14 +17,12 @@ | ||
18 | # along with this program; if not, write to the Free Software | ||
19 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
20 | |||
21 | -CC= gcc | ||
22 | #SKFLAGS= -g -DSYSV -Wall | ||
23 | #LDFLAGS= -g | ||
24 | -SKFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce | ||
25 | +SKFLAGS = $(CFLAGS) $(CPPFLAGS) -DSYSV -Wall -fno-strength-reduce | ||
26 | # -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE | ||
27 | # -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE | ||
28 | # $(shell getconf LFS_SKFLAGS) | ||
29 | -LDFLAGS= -s | ||
30 | |||
31 | # Look where your install program is. | ||
32 | INSTALL = /usr/bin/install | ||
33 | -- | ||
34 | 2.13.2 | ||
35 | |||
diff --git a/meta/recipes-extended/sysklogd/files/klogd.service b/meta/recipes-extended/sysklogd/files/klogd.service deleted file mode 100644 index 0c888c497d..0000000000 --- a/meta/recipes-extended/sysklogd/files/klogd.service +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | [Unit] | ||
2 | Description=Kernel Logging Service | ||
3 | After=syslogd.service | ||
4 | |||
5 | [Service] | ||
6 | Type=forking | ||
7 | ExecStart=/sbin/klogd | ||
8 | PIDFile=/var/run/klogd.pid | ||
9 | StandardOutput=null | ||
10 | Restart=on-failure | ||
11 | |||
12 | [Install] | ||
13 | WantedBy=multi-user.target | ||
diff --git a/meta/recipes-extended/sysklogd/files/no-strip-install.patch b/meta/recipes-extended/sysklogd/files/no-strip-install.patch deleted file mode 100644 index d426c83bf2..0000000000 --- a/meta/recipes-extended/sysklogd/files/no-strip-install.patch +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | Upstream-Status: Inappropriate [configuration] | ||
2 | |||
3 | Index: sysklogd-1.5.1/Makefile | ||
4 | =================================================================== | ||
5 | --- sysklogd-1.5.1.orig/Makefile | ||
6 | +++ sysklogd-1.5.1/Makefile | ||
7 | @@ -127,8 +127,8 @@ clobber: clean | ||
8 | rm -f syslogd klogd ksym syslog_tst oops_test TAGS tsyslogd tklogd | ||
9 | |||
10 | install_exec: syslogd klogd | ||
11 | - ${INSTALL} -m 500 -s syslogd ${BINDIR}/syslogd | ||
12 | - ${INSTALL} -m 500 -s klogd ${BINDIR}/klogd | ||
13 | + ${INSTALL} -m 500 syslogd ${BINDIR}/syslogd | ||
14 | + ${INSTALL} -m 500 klogd ${BINDIR}/klogd | ||
15 | |||
16 | install_man: | ||
17 | ${INSTALL} -o ${MAN_USER} -g ${MAN_GROUP} -m ${MAN_PERMS} sysklogd.8 ${MANDIR}/man8/sysklogd.8 | ||
diff --git a/meta/recipes-extended/sysklogd/files/no-vectorization.patch b/meta/recipes-extended/sysklogd/files/no-vectorization.patch deleted file mode 100644 index c1cc042c9c..0000000000 --- a/meta/recipes-extended/sysklogd/files/no-vectorization.patch +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | Upstream-Status: Inappropriate | ||
2 | |||
3 | The compiler should not be generating vectorized instructions on this target. | ||
4 | This is a work around until I can determine why this is occuring on this | ||
5 | particular recipe | ||
6 | |||
7 | Index: sysklogd-1.5/Makefile | ||
8 | =================================================================== | ||
9 | --- sysklogd-1.5.orig/Makefile | ||
10 | +++ sysklogd-1.5/Makefile | ||
11 | @@ -20,7 +20,8 @@ | ||
12 | CC= gcc | ||
13 | #SKFLAGS= -g -DSYSV -Wall | ||
14 | #LDFLAGS= -g | ||
15 | -SKFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce | ||
16 | +SKFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce \ | ||
17 | + -fno-tree-vectorize | ||
18 | # -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE | ||
19 | # -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE | ||
20 | # $(shell getconf LFS_SKFLAGS) | ||
diff --git a/meta/recipes-extended/sysklogd/files/sysklogd b/meta/recipes-extended/sysklogd/files/sysklogd index 73424840ba..4a4ca8a78e 100755 --- a/meta/recipes-extended/sysklogd/files/sysklogd +++ b/meta/recipes-extended/sysklogd/files/sysklogd | |||
@@ -19,8 +19,8 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin | |||
19 | 19 | ||
20 | pidfile_syslogd=/var/run/syslogd.pid | 20 | pidfile_syslogd=/var/run/syslogd.pid |
21 | pidfile_klogd=/var/run/klogd.pid | 21 | pidfile_klogd=/var/run/klogd.pid |
22 | binpath_syslogd=/sbin/syslogd | 22 | binpath_syslogd=/usr/sbin/syslogd |
23 | binpath_klogd=/sbin/klogd | 23 | binpath_klogd=/usr/sbin/klogd |
24 | 24 | ||
25 | test -x $binpath || exit 0 | 25 | test -x $binpath || exit 0 |
26 | 26 | ||
diff --git a/meta/recipes-extended/sysklogd/files/syslog.conf b/meta/recipes-extended/sysklogd/files/syslog.conf deleted file mode 100644 index 0849de1268..0000000000 --- a/meta/recipes-extended/sysklogd/files/syslog.conf +++ /dev/null | |||
@@ -1,71 +0,0 @@ | |||
1 | # /etc/syslog.conf Configuration file for syslogd. | ||
2 | # | ||
3 | # Ported from debian by Yu Ke <ke.yu@intel.com> | ||
4 | # | ||
5 | |||
6 | # | ||
7 | # First some standard logfiles. Log by facility. | ||
8 | # | ||
9 | |||
10 | auth,authpriv.* /var/log/auth.log | ||
11 | *.*;auth,authpriv.none -/var/log/syslog | ||
12 | #cron.* /var/log/cron.log | ||
13 | daemon.* -/var/log/daemon.log | ||
14 | kern.* -/var/log/kern.log | ||
15 | lpr.* -/var/log/lpr.log | ||
16 | mail.* -/var/log/mail.log | ||
17 | user.* -/var/log/user.log | ||
18 | |||
19 | # | ||
20 | # Logging for the mail system. Split it up so that | ||
21 | # it is easy to write scripts to parse these files. | ||
22 | # | ||
23 | mail.info -/var/log/mail.info | ||
24 | mail.warn -/var/log/mail.warn | ||
25 | mail.err /var/log/mail.err | ||
26 | |||
27 | # Logging for INN news system | ||
28 | # | ||
29 | news.crit /var/log/news.crit | ||
30 | news.err /var/log/news.err | ||
31 | news.notice -/var/log/news.notice | ||
32 | |||
33 | # | ||
34 | # Some `catch-all' logfiles. | ||
35 | # | ||
36 | *.=debug;\ | ||
37 | auth,authpriv.none;\ | ||
38 | news.none;mail.none -/var/log/debug | ||
39 | |||
40 | *.=info;*.=notice;*.=warn;\ | ||
41 | auth,authpriv.none;\ | ||
42 | cron,daemon.none;\ | ||
43 | mail,news.none -/var/log/messages | ||
44 | |||
45 | # | ||
46 | # Emergencies are sent to everybody logged in. | ||
47 | # | ||
48 | *.emerg * | ||
49 | |||
50 | # | ||
51 | # I like to have messages displayed on the console, but only on a virtual | ||
52 | # console I usually leave idle. | ||
53 | # | ||
54 | #daemon,mail.*;\ | ||
55 | #news.=crit;news.=err;news.=notice;\ | ||
56 | #*.=debug;*.=info;\ | ||
57 | #*.=notice;*.=warn /dev/tty8 | ||
58 | |||
59 | # The named pipe /dev/xconsole is for the `xconsole' utility. To use it, | ||
60 | # you must invoke `xconsole' with the `-file' option: | ||
61 | # | ||
62 | # $ xconsole -file /dev/xconsole [...] | ||
63 | # | ||
64 | # NOTE: adjust the list below, or you'll go crazy if you have a reasonably | ||
65 | # busy site.. | ||
66 | # | ||
67 | daemon.*;mail.*;\ | ||
68 | news.err;\ | ||
69 | *.=debug;*.=info;\ | ||
70 | *.=notice;*.=warn |/dev/xconsole | ||
71 | |||
diff --git a/meta/recipes-extended/sysklogd/files/syslogd.service b/meta/recipes-extended/sysklogd/files/syslogd.service deleted file mode 100644 index eeaff3d38d..0000000000 --- a/meta/recipes-extended/sysklogd/files/syslogd.service +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | [Unit] | ||
2 | Description=System Logging Service | ||
3 | Requires=syslog.socket | ||
4 | |||
5 | [Service] | ||
6 | Type=forking | ||
7 | ExecStart=/sbin/syslogd | ||
8 | PIDFile=/var/run/syslogd.pid | ||
9 | StandardOutput=null | ||
10 | Restart=on-failure | ||
11 | |||
12 | [Install] | ||
13 | WantedBy=multi-user.target | ||
14 | Alias=syslog.service | ||
diff --git a/meta/recipes-extended/sysklogd/files/tmpfiles.sysklogd.conf b/meta/recipes-extended/sysklogd/files/tmpfiles.sysklogd.conf deleted file mode 100644 index f4aecd385b..0000000000 --- a/meta/recipes-extended/sysklogd/files/tmpfiles.sysklogd.conf +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | p /dev/xconsole 0640 root adm | ||
diff --git a/meta/recipes-extended/sysklogd/sysklogd.inc b/meta/recipes-extended/sysklogd/sysklogd.inc index 749026f853..b90911af2b 100644 --- a/meta/recipes-extended/sysklogd/sysklogd.inc +++ b/meta/recipes-extended/sysklogd/sysklogd.inc | |||
@@ -6,27 +6,26 @@ SECTION = "base" | |||
6 | LICENSE = "GPLv2+ & BSD" | 6 | LICENSE = "GPLv2+ & BSD" |
7 | LICENSE_syslogd = "BSD" | 7 | LICENSE_syslogd = "BSD" |
8 | LICENSE_klogd = "GPLv2+" | 8 | LICENSE_klogd = "GPLv2+" |
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \ | 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
10 | file://syslogd.c;beginline=2;endline=15;md5=77ffb2fec48c46d7ca0abb2d5813e7fd \ | 10 | file://src/syslogd.c;beginline=2;endline=15;md5=a880fecbc04503f071c494a9c0dd4f97 \ |
11 | file://klogd.c;beginline=2;endline=19;md5=7e87ed0ae6142de079bce738c10c899d \ | 11 | file://src/klogd.c;beginline=2;endline=19;md5=4f5591d04cccbeb0352758ed4a9d7213 \ |
12 | " | 12 | " |
13 | 13 | ||
14 | inherit update-rc.d update-alternatives systemd | 14 | inherit update-rc.d update-alternatives systemd autotools |
15 | 15 | ||
16 | SRC_URI = "git://github.com/troglobit/sysklogd.git;nobranch=1 \ | 16 | SRC_URI = "git://github.com/troglobit/sysklogd.git;nobranch=1 \ |
17 | file://no-strip-install.patch \ | ||
18 | file://0001-Fix-build-with-musl.patch \ | ||
19 | file://0001-fix-problems-that-causes-a-segmentation-fault-under-.patch \ | ||
20 | file://0002-Make-way-for-respecting-flags-from-environment.patch \ | ||
21 | file://sysklogd \ | 17 | file://sysklogd \ |
22 | file://syslog.conf \ | ||
23 | file://syslogd.service \ | ||
24 | file://klogd.service \ | ||
25 | file://tmpfiles.sysklogd.conf \ | ||
26 | " | 18 | " |
27 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
28 | 20 | ||
29 | SRC_URI_append_e500v2 = " file://no-vectorization.patch" | 21 | EXTRA_OECONF = "--with-systemd=${systemd_system_unitdir} --with-klogd --without-logger" |
22 | |||
23 | do_install_append () { | ||
24 | install -d ${D}${sysconfdir} | ||
25 | install -m 644 ${S}/syslog.conf ${D}${sysconfdir}/syslog.conf | ||
26 | install -d ${D}${sysconfdir}/init.d | ||
27 | install -m 755 ${WORKDIR}/sysklogd ${D}${sysconfdir}/init.d/syslog | ||
28 | } | ||
30 | 29 | ||
31 | SYSTEMD_PACKAGES = "${PN}" | 30 | SYSTEMD_PACKAGES = "${PN}" |
32 | SYSTEMD_SERVICE_${PN} = "syslogd.service klogd.service" | 31 | SYSTEMD_SERVICE_${PN} = "syslogd.service klogd.service" |
@@ -36,27 +35,6 @@ INITSCRIPT_NAME = "syslog" | |||
36 | CONFFILES_${PN} = "${sysconfdir}/syslog.conf" | 35 | CONFFILES_${PN} = "${sysconfdir}/syslog.conf" |
37 | RCONFLICTS_${PN} = "rsyslog busybox-syslog syslog-ng" | 36 | RCONFLICTS_${PN} = "rsyslog busybox-syslog syslog-ng" |
38 | 37 | ||
39 | CFLAGS += "-DSYSV -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" | ||
40 | |||
41 | do_install () { | ||
42 | install -d ${D}${mandir}/man8 \ | ||
43 | ${D}${mandir}/man5 \ | ||
44 | ${D}${base_sbindir} | ||
45 | oe_runmake 'BINDIR=${D}${base_sbindir}' \ | ||
46 | 'MANDIR=${D}${mandir}' install | ||
47 | install -d ${D}${sysconfdir} | ||
48 | install -m 644 ${WORKDIR}/syslog.conf ${D}${sysconfdir}/syslog.conf | ||
49 | install -d ${D}${sysconfdir}/init.d | ||
50 | install -m 755 ${WORKDIR}/sysklogd ${D}${sysconfdir}/init.d/syslog | ||
51 | install -d ${D}${systemd_unitdir}/system | ||
52 | install -m 644 ${WORKDIR}/syslogd.service ${D}${systemd_unitdir}/system | ||
53 | install -m 644 ${WORKDIR}/klogd.service ${D}${systemd_unitdir}/system | ||
54 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true', 'false', d)}; then | ||
55 | install -d ${D}${exec_prefix}/lib/tmpfiles.d | ||
56 | install -m 644 ${WORKDIR}/tmpfiles.sysklogd.conf ${D}${exec_prefix}/lib/tmpfiles.d/sysklogd.conf | ||
57 | fi | ||
58 | } | ||
59 | |||
60 | FILES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/sysklogd.conf', '', d)}" | 38 | FILES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES','systemd','${exec_prefix}/lib/tmpfiles.d/sysklogd.conf', '', d)}" |
61 | 39 | ||
62 | ALTERNATIVE_PRIORITY = "100" | 40 | ALTERNATIVE_PRIORITY = "100" |
diff --git a/meta/recipes-extended/sysklogd/sysklogd_1.5.1.bb b/meta/recipes-extended/sysklogd/sysklogd_1.5.1.bb deleted file mode 100644 index 88bcfd9e4a..0000000000 --- a/meta/recipes-extended/sysklogd/sysklogd_1.5.1.bb +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | require sysklogd.inc | ||
2 | |||
3 | SRCREV = "930a2b1c0d15b14309a49f14e3f30e905456af4d" | ||
diff --git a/meta/recipes-extended/sysklogd/sysklogd_2.0.3.bb b/meta/recipes-extended/sysklogd/sysklogd_2.0.3.bb new file mode 100644 index 0000000000..21f750fa60 --- /dev/null +++ b/meta/recipes-extended/sysklogd/sysklogd_2.0.3.bb | |||
@@ -0,0 +1,3 @@ | |||
1 | require sysklogd.inc | ||
2 | |||
3 | SRCREV = "ad686ca86d977f9eac4cd0a0d0e9a5964a4621d3" | ||