diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-admin/syslogread | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-admin/syslogread')
-rw-r--r-- | app-admin/syslogread/Manifest | 1 | ||||
-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 | 11 | ||||
-rw-r--r-- | app-admin/syslogread/syslogread-0.92-r1.ebuild | 91 |
7 files changed, 131 insertions, 0 deletions
diff --git a/app-admin/syslogread/Manifest b/app-admin/syslogread/Manifest new file mode 100644 index 000000000000..f42a78398e73 --- /dev/null +++ b/app-admin/syslogread/Manifest @@ -0,0 +1 @@ +DIST syslogread-0.92.tar.gz 21807 SHA256 eae464db3d9cc9826f65c8bd7ccbfe95795c39fda2876d4db2a4ee8d578bcd03 SHA512 8e00d169955e2c659233df1746f0e50f33f50cf9eb7d4b6d2926eadd6e6a7183b7beec485b7422befc399cc48da83462a709304715083d2c5ec8359b6f3728c0 WHIRLPOOL d94f949bd193ded38df687e12438412e117afd6ab5a29c2edd86d213a0c1691ae19f5c942aa711336b99c65ca94d17189f50b40514137afb1bf856419794d4f9 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..bbae4d96569c --- /dev/null +++ b/app-admin/syslogread/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <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..6c40e596a571 --- /dev/null +++ b/app-admin/syslogread/syslogread-0.92-r1.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 +} |