commit:     13298715b5a0ca4d095eab189049ba71c6a8fd0b
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 29 17:42:02 2017 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Tue Aug 29 17:42:26 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13298715

app-admin/tenshi: new version 0.16 to fix a vulnerable PID file.

Gentoo-Bug: 626654

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 app-admin/tenshi/Manifest           |  1 +
 app-admin/tenshi/tenshi-0.16.ebuild | 48 +++++++++++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/app-admin/tenshi/Manifest b/app-admin/tenshi/Manifest
index a0cfc3d9e6b..676609617f3 100644
--- a/app-admin/tenshi/Manifest
+++ b/app-admin/tenshi/Manifest
@@ -1,3 +1,4 @@
 DIST tenshi-0.12.tar.gz 28467 SHA256 
953bbad01cb03674ab6135b70f707467ccd55dd1b8cb7257f1f49473d7767920 SHA512 
657998e3a8df49ad0aae9c948cdd78dab944153fdacf79ebfc31b3e57fb62d738514b94c61834342669c407a3b09e81ceab38c054153a9fae6337a377fc167db
 WHIRLPOOL 
a9c5b49238b5e7a86aa8df41f2b6cd6881f25ffacceb1ae850d37b2f227950536900af707884db5f16604903cf73c0586baecdb0a8cf0d906930dd2a5058d67c
 DIST tenshi-0.14.tar.gz 29764 SHA256 
73ff5dfb078e0744709d0ead26276a1c88af8a9f0515e786a60c84bd9cd9cfc7 SHA512 
9922e9b7f9f39bc38f2e8844399146a9303d8a622b167b748fd76970820b04dc15df55e4ff87c05662ba9d120876cac9fa6ffa3bf07f2ad7c4f6f58d1ca667d2
 WHIRLPOOL 
780ced7b2cc1902d90c5c51edd77a28cf49dcc45f0e764b47d05c1fcbadf9b5f94fdf86c9c7a746c79fe61c164dc7c1bf8e9d1ac593e804767cc420ccb7f7c7d
 DIST tenshi-0.15.tar.gz 28405 SHA256 
4f875db168ca53249c521ac0b5a1e2b7498613bc3ac2a23de85638e44d0006a7 SHA512 
7d241d192986d2073d8509cda8b6bd21bc678f05d6e3b830885485d259454c5e5c004b477e63dbef5eb3e5bea8c4af56d6d8ed32c6809de43ed1e144c6b3d04c
 WHIRLPOOL 
a35afa1c80cedbf57193b39119de428d53d70e222fcf8a597a187d67a66b2bea82934bf991f8cffa6aa0fc1a86b9f7e9e17d7d2c73e1bbb055d9f01acab8ff17
+DIST tenshi-0.16.tar.gz 24460 SHA256 
a76ad83eaa8e2017ae14824abaab6b919742569c6a0885d4c471c006c4bc1ef0 SHA512 
b23adc764ba0bbdde99a273a233cdb5117cd160da56aa19db05f196a4d4934e3a631c9d9effe4a80388c176c3b19b46328edca02af85265d08d6e77b724b044e
 WHIRLPOOL 
e965099d170c6f691989d6f897265e399331991e7a81c1a4e98144e72018240a5e88dd085715bc638d18c65d1e946738183b806fb68d59864f421c6ce1344279

diff --git a/app-admin/tenshi/tenshi-0.16.ebuild 
b/app-admin/tenshi/tenshi-0.16.ebuild
new file mode 100644
index 00000000000..5ea26981d82
--- /dev/null
+++ b/app-admin/tenshi/tenshi-0.16.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit user
+
+DESCRIPTION="Log parsing and notification program"
+HOMEPAGE="http://dev.inversepath.com/trac/tenshi";
+SRC_URI="https://github.com/inversepath/${PN}/archive/${PV}.tar.gz
+       -> ${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="dev-lang/perl
+       dev-perl/IO-BufferedSelect
+       sys-apps/coreutils"
+
+pkg_setup() {
+       enewgroup tenshi
+       enewuser tenshi -1 -1 /var/lib/tenshi tenshi
+}
+
+src_prepare() {
+       default
+       # Fix for bug #241254
+       sed -i 's:^docdir =.*:docdir = /usr/share/doc/${PF}:' \
+               Makefile || die "docdir substitution failed"
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+       fowners tenshi:root /etc/tenshi/tenshi.conf
+       doman tenshi.8
+       newinitd tenshi.openrc-init tenshi
+
+       # We don't need to install LICENSE files.
+       rm "${D}/usr/share/doc/${PF}/LICENSE" || die 'failed to remove LICENSE'
+}
+
+pkg_postinst() {
+       ewarn "The sample config installed to ${ROOT}etc/tenshi/tenshi.conf"
+       ewarn "monitors /var/log/messages which, by default, can not be read"
+       ewarn "by the tenshi user.  Make sure that the tenshi user has read"
+       ewarn "permission on all the files that you want tenshi to monitor."
+}

Reply via email to