diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-admin/syslogread | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-admin/syslogread')
-rw-r--r-- | app-admin/syslogread/Manifest | 7 | ||||
-rw-r--r-- | app-admin/syslogread/files/0.92/klogd.run | 4 | ||||
-rw-r--r-- | app-admin/syslogread/files/0.92/syslogread-log.run | 3 | ||||
-rw-r--r-- | app-admin/syslogread/files/0.92/syslogread.run | 2 | ||||
-rw-r--r-- | app-admin/syslogread/files/syslogread-0.92-fix-parallel-build.patch | 19 | ||||
-rw-r--r-- | app-admin/syslogread/metadata.xml | 9 | ||||
-rw-r--r-- | app-admin/syslogread/syslogread-0.92-r1.ebuild | 90 |
7 files changed, 134 insertions, 0 deletions
diff --git a/app-admin/syslogread/Manifest b/app-admin/syslogread/Manifest new file mode 100644 index 000000000000..492633d2b246 --- /dev/null +++ b/app-admin/syslogread/Manifest @@ -0,0 +1,7 @@ +AUX 0.92/klogd.run 84 BLAKE2B 55ab3af85c0d2c4d2a64a13a06121dda81aa1d8e46b9dcbe35e0cca7547e083c9e01932ca46744f18e756ce9112855605586822cef1f27a1ea6de021f758fd37 SHA512 6451fc04a4005e5bf0e8c7852da8fa46c6e87ae32cff18554996acdb06a9d4c1323f54439de6c7c9274fbd09aed38c9c3af982700aa3ca1f122434ba9b75fc6e +AUX 0.92/syslogread-log.run 129 BLAKE2B f19209cf028c423169843fe9c522b26778a87a9d23bf48763b206f2cf9f19de16cfab78390f24aabb043a66d5878eda305ef300ef78179035c3cafcd29cd9b99 SHA512 3ef1cd5a49a8a360c1417ff646ecb1c42ec15a2ebe1fdf83e949e7fb7a80265c3e76229316a1f98107b9739a4edf5ea62c446aa4af3cb254ea2c180c36ed0aab +AUX 0.92/syslogread.run 56 BLAKE2B 80da0e8fee9548fb94adfbc11d273b6ab14b27797921e37e08b08196c3ec06145cf4ffdc3784b48296bf712e264823d3ef6b9bd5f9fcc0ce33ba33c36aee4ae6 SHA512 f1ba637765145a51279c29e1c9c345a5426e606c7f483129d6675b1998c8a578c591f16aaf9887907ecf3053c75ada1190c52ab09a49e938f566068c191096ac +AUX syslogread-0.92-fix-parallel-build.patch 516 BLAKE2B 14371b7491b60133fff8544916529eb7c797ecb31d5dcf41d238d5cb802a1af77e2bba20780d39d29ff423304878353abb14ff0ffe523385cd0f2a316788e271 SHA512 da661b502f21c82284acbc057e53531dd5ae596c8a7fcc85e6f112687ddc7756bb4c908c7d5f30e935023576fccbb625c5d5cebcbc17c09164cf34353d501635 +DIST syslogread-0.92.tar.gz 21807 BLAKE2B 02ca376af331f7ea8ba75c00b1a805aa3ab2405d1a19492cfd210bba15b7f6fac695c84d37eb4685306567a19e1d5c6f111ad57a650b0f32f9576e652425ece8 SHA512 8e00d169955e2c659233df1746f0e50f33f50cf9eb7d4b6d2926eadd6e6a7183b7beec485b7422befc399cc48da83462a709304715083d2c5ec8359b6f3728c0 +EBUILD syslogread-0.92-r1.ebuild 2174 BLAKE2B fb9801241bdb0822c1f7078e1052cd8cee150a4ac4a94dc2714ac43d4f9eaba75349f5ad88d4777b56ea43e7740ba1c559878ed44c57e1aa7e419f91f289983a SHA512 5e9ffff6904fe1b2a67081256e1c483db3b65355acc4c9e76d8cd578ea29384ec858ac314f740c5db20e1fd17afc7949af82d3b1aecaf44c36c3119594ffeb51 +MISC metadata.xml 320 BLAKE2B 48648831757dd6f6654988baab3bf2ed4b1e2f007099db5626f52a73b0dcf9346762bd6cc2df7e5050354805124bd36cee46ad9dde8351c6085d848542222954 SHA512 ed2785769c5264f45b4712ec699ce6b01ae6dafc0ebd3de566b0c7d1189fca026f249e8e9f60b24dc69ca24cc8c86f45dca94161c80fdca8242494132305b408 diff --git a/app-admin/syslogread/files/0.92/klogd.run b/app-admin/syslogread/files/0.92/klogd.run new file mode 100644 index 000000000000..b6d0fb27795e --- /dev/null +++ b/app-admin/syslogread/files/0.92/klogd.run @@ -0,0 +1,4 @@ +#!/bin/sh +exec 2>&1 +exec < /proc/kmsg +exec /usr/bin/multilog t n64 /var/log/klogd diff --git a/app-admin/syslogread/files/0.92/syslogread-log.run b/app-admin/syslogread/files/0.92/syslogread-log.run new file mode 100644 index 000000000000..f53cd0199571 --- /dev/null +++ b/app-admin/syslogread/files/0.92/syslogread-log.run @@ -0,0 +1,3 @@ +#!/bin/sh +#exec setuidgid syslog syslogxlate '*.*' | multilog t /var/log/syslog +exec setuidgid syslog multilog t /var/log/syslog diff --git a/app-admin/syslogread/files/0.92/syslogread.run b/app-admin/syslogread/files/0.92/syslogread.run new file mode 100644 index 000000000000..fdcb018c3066 --- /dev/null +++ b/app-admin/syslogread/files/0.92/syslogread.run @@ -0,0 +1,2 @@ +#!/bin/sh +exec envuidgid syslog sysloglread -U /dev/log diff --git a/app-admin/syslogread/files/syslogread-0.92-fix-parallel-build.patch b/app-admin/syslogread/files/syslogread-0.92-fix-parallel-build.patch new file mode 100644 index 000000000000..98e810fc70a9 --- /dev/null +++ b/app-admin/syslogread/files/syslogread-0.92-fix-parallel-build.patch @@ -0,0 +1,19 @@ +--- Makefile.orig 2010-01-14 13:47:59.000000000 +0100 ++++ Makefile 2010-01-14 13:49:00.000000000 +0100 +@@ -45,14 +45,14 @@ + ./load insthier -lbg-installer + mv insthier installer + +-instcheck: load insthier.o ++instcheck: load insthier.o installer instshow + ./load insthier -lbg-instcheck + mv insthier instcheck + + insthier.o: compile insthier.c conf_bin.c conf_man.c + ./compile insthier.c + +-instshow: load insthier.o ++instshow: load insthier.o installer + ./load insthier -lbg-instshow + mv insthier instshow + diff --git a/app-admin/syslogread/metadata.xml b/app-admin/syslogread/metadata.xml new file mode 100644 index 000000000000..2fbe00ebaa8e --- /dev/null +++ b/app-admin/syslogread/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription lang="en"> + This package is a set of tools that are useful in receiving, analyzing, + or producing syslog messages. + </longdescription> +</pkgmetadata> diff --git a/app-admin/syslogread/syslogread-0.92-r1.ebuild b/app-admin/syslogread/syslogread-0.92-r1.ebuild new file mode 100644 index 000000000000..f92cca746857 --- /dev/null +++ b/app-admin/syslogread/syslogread-0.92-r1.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs multilib user + +DESCRIPTION="Syslog message handling tools" +HOMEPAGE="http://untroubled.org/syslogread/" +SRC_URI="http://untroubled.org/syslogread/archive/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +DEPEND=">=dev-libs/bglibs-1.106" +RDEPEND="virtual/daemontools" + +pkg_setup() { + enewgroup syslog + enewuser syslog -1 -1 /nonexistent syslog +} + +src_prepare() { + epatch "${FILESDIR}"/syslogread-0.92-fix-parallel-build.patch +} + +src_configure() { + echo "/usr/include/bglibs/" > conf-bgincs + echo "/usr/$(get_libdir)/bglibs/" > conf-bglibs + echo "${D}/usr/bin" > conf-bin + echo "${D}/usr/share/man" > conf-man + echo "$(tc-getCC) ${CFLAGS}" > conf-cc + echo "$(tc-getCC) ${LDFLAGS}" > conf-ld +} + +src_install() { + dodir /usr/bin + dodir /usr/share/man + ./installer || die + + dodoc ANNOUNCEMENT ChangeLog README + + insinto /var/lib/supervise/klogd + newins "${FILESDIR}/${PV}/klogd.run" klogd.run + + insinto /var/lib/supervise/syslogd + newins "${FILESDIR}/${PV}/syslogread.run" syslogread.run + + insinto /var/lib/supervise/syslogd/log + newins "${FILESDIR}/${PV}/syslogread-log.run" syslogread-log.run + + # See ChangeLog for why these are commented out: + + #newinitd "${FILESDIR}/${PV}/syslogread.init" syslogread + + #keepdir /var/log/klogd + #keepdir /var/log/syslog + + #fowners syslog:syslog /var/log/syslog + #fperms o-rwx /var/log/syslog +} + +pkg_postinst() { + echo + elog "Run " + elog "emerge --config =${PF}" + elog "to create or update your run files (backups are created) in" + elog " /var/lib/supervise/klogd (kernel logger)" + elog " /var/lib/supervise/syslog (system logger)" + echo +} + +pkg_config() { + cd "${ROOT}"var/lib/supervise/klogd + [ -e run ] && cp run klogd.run.`date +%Y%m%d%H%M%S` + cp klogd.run run + chmod u+x run + + cd "${ROOT}"var/lib/supervise/syslogd + [ -e run ] && cp run syslogread.run.`date +%Y%m%d%H%M%S` + cp syslogread.run run + chmod u+x run + + cd "${ROOT}"var/lib/supervise/syslogd/log + [ -e run ] && cp run syslogread-log.run.`date +%Y%m%d%H%M%S` + cp syslogread-log.run run + chmod u+x run +} |