summaryrefslogtreecommitdiffstats
path: root/package/sysklogd
Commit message (Collapse)AuthorAgeFilesLines
* sysklogd: rewrite init scriptCarlos Santos2018-12-104-27/+131
| | | | | | | | | | | | | | | | | | | | - Split it into S01syslogd and S02klogd to make every init script be called the same as the executable it starts. - Implement start, stop, restart and reload as functions, like in other init scripts, using start-stop-daemon. - Indent with tabs, not spaces. - Detect and report start/stop errors (previous version ignored them and always reported OK). - Support /etc/default/$DAEMON configuration files. - Do not kill syslogd in "reload". Send a SIGHUP signal, instructing it to perform a re-initialization. - Do not kill klogd in "reload". Send a signal (default 0, which does nothing). Users can configure this signal in /etc/default/klogd to either SIGUSR1 or SIGUSR2. Signed-off-by: Carlos Santos <casantos@datacom.com.br> Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* package/busybox: invert dependency with sysklogdYann E. MORIN2018-07-081-5/+0
| | | | | Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* package/sysklogd: add systemd servicesPetr Kulhavy2017-09-243-0/+36
| | | | | | | | Sysklogd had only SYSV init scripts. Add systemd service files to start klogd and syslogd. Signed-off-by: Petr Kulhavy <brain@jikos.cz> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* boot, linux, package: use SPDX short identifier for GPLv2/GPLv2+Rahul Bedarkar2017-04-011-1/+1
| | | | | | | | | | | We want to use SPDX identifier for license strings as much as possible. SPDX short identifier for GPLv2/GPLv2+ is GPL-2.0/GPL-2.0+. This change is done by using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/\<GPLv2\>/GPL-2.0/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* sysklogd: fix build on muslThomas Petazzoni2016-12-067-25/+279
| | | | | | | | | | | | | | | | This commit add a stack of small patches that make sysklogd build fine with the musl C library. Build with uClibc and glibc has been tested with those patches applied as well. The first patch is slightly rework (better description and capital letter to the title) in preparation for upstream submission. Fixes: http://autobuild.buildroot.net/results/8fa2bf73f983330884bce2e5ac31e01dee112ba9/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sysklogd: add patch to fix build with glibc 2.24Ryan Coe2016-10-091-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | Building sysklogd with glibc 2.24 fails with the following error: syslogd.c: In function ‘reapchild’: syslogd.c:2097:13: error: storage size of ‘status’ isn’t known union wait status; ^ Makefile:99: recipe for target 'syslogd.o' failed make[2]: *** [syslogd.o] Error 1 make[2]: *** Waiting for unfinished jobs.... package/pkg-generic.mk:201: recipe for target './buildroot/output/build/sysklogd-1.5.1/.stamp_built' failed make[1]: *** [./buildroot/output/build/sysklogd-1.5.1/.stamp_built] Error 2 Makefile:41: recipe for target '_all' failed make: *** [_all] Error 2 union wait was marked deprecated in glibc 2.23 and removed in glibc 2.24. The fix is to declare it as an int. See https://sourceware.org/ml/libc-alpha/2016-02/msg00342.html Sent upstream via their mailing list Signed-off-by: Ryan Coe <bluemrp9@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: move busybox show others dependency to per-packageThomas Petazzoni2016-07-041-0/+1
| | | | | | | | | | | Having the BR2_PACKAGE_BUSYBOX_SHOW_OTHERS dependencies in package/Config.in is not very practical: it makes this file not very readable, and puts the dependency away from the package itself, which can sometimes be confusing. Therefore, this commit moves the dependency in each package Config.in file. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sysklogd: override SKFLAGS with TARGET_CFLAGSRomain Naour2016-02-201-9/+3
| | | | | | | | | | | | | | | | | TARGET_CFLAGS is not taken into account since SKFLAGS is used as CFLAGS. We need to override SKFLAGS with TARGET_CFLAGS but keep -DSYSV which was present in SKFLAGS. Improve the previous fix introduced by 8e3a5c13546451c0c6ceb8bc64e4397ceed14aca. Fixes: http://autobuild.buildroot.net/results/2fb/2fb94ecfdc32761a09da35e6fcbdd512847ec911 Signed-off-by: Romain Naour <romain.naour@gmail.com> Reported-by: Peter Korsgaard <peter@korsgaard.com> Cc: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/syslogd: workaround a compiler bug with CS powerpc 2012.03Romain Naour2016-02-141-0/+8
| | | | | | | | | | | The O3 optimization triggers a compiler bug with this toolchain, change it with 02. Fixes: http://autobuild.buildroot.net/results/2fb/2fb94ecfdc32761a09da35e6fcbdd512847ec911 Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: Replace 'echo -n' by 'printf'Maxime Hadjinlian2015-10-041-2/+2
| | | | | | | | | | | | 'echo -n' is not a POSIX construct (no flag support), we shoud use 'printf', especially in init script. This patch was generated by the following command line: git grep -l 'echo -n' -- `git ls-files | grep -v 'patch'` | xargs sed -i 's/echo -n/printf/' Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* packages: remove (non-)lfs dependencies and tweaksGustavo Zacarias2015-04-011-5/+0
| | | | | | | | Now that largefile is mandatory removes package dependencies and conditionals. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* sysklogd: fix redundant newline escapeBaruch Siach2014-12-021-1/+1
| | | | | | | | | | Broken since 428f1e7e70c6b (sysklogd: install configuration file unconditionally). Fixes: package/sysklogd/sysklogd.mk:21: *** missing 'endef', unterminated 'define'. Stop. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sysklogd: install configuration file unconditionallyThomas Petazzoni2014-12-021-4/+2
| | | | | | | | | | | As discussed, users should use a rootfs overlay or a post-build script instead of a custom skeleton to override files installed by Buildroot, so there is no point in having conditions when installing init scripts or configuration files. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sysklogd: add initscriptGustavo Zacarias2014-10-122-0/+30
| | | | | | | | Since we don't handle it in sysvinit inittab any longer let's add an initscript to get things back into plug-and-play shape. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sysklogd: security bump to version 1.5.1Gustavo Zacarias2014-10-083-13/+5
| | | | | | | | | | | | | Fixes CVE-2014-3634 - invalid priority values between 192 and 1023 (directly or arrived at via overflow wraparound) can propagate through code causing out-of-bounds access to the f_pmask array within the 'filed' structure by up to 104 bytes past its end. Switch to vanilla since Debian hasn't handled this yet and add hash file. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sysklogd: add license informationGustavo Zacarias2014-07-021-3/+5
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* replace references to Busybox with BusyBoxSimon Dawson2014-06-011-1/+1
| | | | | | | | | The correct capitalised form appears to be "BusyBox" rather than "Busybox"; fix all references to the latter form. (Most such references occur in the manual and in commentary in package makefiles.) Signed-off-by: Simon Dawson <spdawson@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sysklogd: needs MMUBaruch Siach2014-05-291-0/+2
| | | | | | | | Fixes: http://autobuild.buildroot.net/results/bf1/bf1a6e1d4798c5abea4ff5114279329d6d90548f/ Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* packages: remove package clean commandsThomas De Schampheleire2013-12-081-4/+0
| | | | | Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* sysklogd: install to /sbinGustavo Zacarias2013-12-031-16/+2
| | | | | | | | | Install syslogd/klogd to /sbin instead of /usr/sbin to really win over busybox and avoid the ugly noise when booting without busybox installed. Also drop uninstall hook and manpage installation. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Config.in files: unify comments of toolchain option dependenciesThomas De Schampheleire2013-10-141-1/+1
| | | | | | | | This patch lines up the comments in Config.in files that clarify which toolchain options the package depends on. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Normalize separator size to 80Alexandre Belloni2013-06-061-2/+2
| | | | | Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Fix package headers to comply with coding styleAlexandre Belloni2013-06-061-0/+1
| | | | | Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* all packages: rename XXXTARGETS to xxx-packageArnout Vandecappelle (Essensium/Mind)2012-07-171-1/+1
| | | | | | | | | | | | | Also remove the redundant $(call ...). This is a purely mechanical change, performed with find package linux toolchain boot -name \*.mk | \ xargs sed -i -e 's/$(eval $(call GENTARGETS))/$(eval $(generic-package))/' \ -e 's/$(eval $(call AUTOTARGETS))/$(eval $(autotools-package))/' \ -e 's/$(eval $(call CMAKETARGETS))/$(eval $(cmake-package))/' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: remove useless arguments from GENTARGETSThomas Petazzoni2011-09-291-1/+1
| | | | | | | | | | Thanks to the pkgparentdir and pkgname functions, we can rewrite the GENTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* support: move patch-kernel.sh and rename itThomas Petazzoni2011-09-171-1/+1
| | | | | | | | The name "patch-kernel.sh" is a bit stupid, since this script is used to patch everything in Buildroot, not only kernel trees. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* sysklogd: convert to gentargets and bump to 1.5Martin Banky2010-12-144-209/+44
| | | | | | | | | | | | Also, changed the site to Debian, to get the latest patches [ Thomas: Minor fixes. Removed S25sysklogd since our default /etc/inittab already starts klogd and sysklogd. ] [Peter: only install syslog.conf if not available in skeleton] Signed-off-by: Martin Banky <Martin.Banky@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* sysklogd: needs largefile supportPeter Korsgaard2009-11-231-0/+4
| | | | | | | | | It tries to call lseek64(): ksym_mod.o: In function `InitMsyms': ksym_mod.c:(.text+0x438): undefined reference to `lseek64' Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* package: Remove unnecessary dependencies on uclibc.Will Newton2009-09-031-1/+1
| | | | | | | | A C library will have been built by the toolchain makefiles, so there is no need for packages to explicitly depend on uclibc. Signed-off-by: Will Newton <will.newton@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* sysklogd: only install init script / config file if not present in skeletonPeter Korsgaard2009-03-091-2/+6
| | | | | Allow platforms to provide a custom initscript / syslog.conf in their target_skeleton.
* sysklogd: fix buildPeter Korsgaard2009-03-053-3/+22
|
* package/: convert to DOWNLOAD helperPeter Korsgaard2009-01-161-1/+1
|
* package/: get rid of unneeded $(strip ..)Peter Korsgaard2008-12-081-1/+1
|
* Kconfig: remove 'default n'Peter Korsgaard2008-07-171-1/+0
| | | | 'default n' is the default, so there's no need to say it explicitly.
* Don't use long options to start-stop-daemon as they may be disabled in the ↵Hamish Moffatt2008-03-181-4/+4
| | | | busybox configuration
* - just use the strip binary to avoid confusing libtool (quotes)Bernhard Reutner-Fischer2007-10-011-2/+2
| | | | - use $(STRIPCMD) in packages to avoid clashes with $(STRIP)
* Use <package>_VERSION in all <package>.mk instead of <package>_VERUlf Samuelsson2007-07-111-3/+3
|
* Rename all INIT scripts to have the numerical prefixes to easily see the ↵"Steven J. Hill"2007-05-092-1/+1
| | | | start-up order.
* - use $(ZCAT) as configured by the user instead of hardcoded 'zcat' that may ↵Bernhard Reutner-Fischer2006-10-011-1/+1
| | | | | | not exist; Closes #971 Silly, unchecked sed -i -e "/[^b]zcat/s/zcat/\$\(ZCAT\)/g" $(svngrep "[^b]zcat" * -rl | grep -v Config.in)
* added fix to correct for building with kernels > 2.5 per case 0000557David Anders2006-01-241-9/+84
|
* Add support for the full blown versions of sysklogd and klogdEric Andersen2005-09-135-0/+136
OpenPOWER on IntegriCloud