summaryrefslogtreecommitdiff
path: root/app-admin/tenshi
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/tenshi
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/tenshi')
-rw-r--r--app-admin/tenshi/Manifest14
-rw-r--r--app-admin/tenshi/files/tenshi-create-mandir.patch10
-rw-r--r--app-admin/tenshi/files/tenshi-openrc-init-r1.patch11
-rw-r--r--app-admin/tenshi/files/tenshi-openrc-init.patch11
-rw-r--r--app-admin/tenshi/metadata.xml18
-rw-r--r--app-admin/tenshi/tenshi-0.12.ebuild50
-rw-r--r--app-admin/tenshi/tenshi-0.14.ebuild46
-rw-r--r--app-admin/tenshi/tenshi-0.15.ebuild46
-rw-r--r--app-admin/tenshi/tenshi-0.16-r1.ebuild47
9 files changed, 253 insertions, 0 deletions
diff --git a/app-admin/tenshi/Manifest b/app-admin/tenshi/Manifest
new file mode 100644
index 000000000000..e155b8f97a84
--- /dev/null
+++ b/app-admin/tenshi/Manifest
@@ -0,0 +1,14 @@
+AUX tenshi-create-mandir.patch 400 SHA256 8491ddb878481136c755718a42d172d67527df8cffac0723d89b5750e0a33c9e SHA512 62c1a221a4c4c80ad74a1fb7d3204c9e2452f7f70dc690d018a4da9f6d73877ef78c20ae5b934a2251194c7088e7c0f09af045fa4ac1708a7de78004e1208b35 WHIRLPOOL 372a6043d0b375ba4cb4ce9e1238419816592d3bfc94760ae7aab3d826a90a00bf061d5352b3841acde763eda98692938f48e1138d4b19b1f9b674d128a6b917
+AUX tenshi-openrc-init-r1.patch 251 SHA256 6cc1b6dc25960470b4c10d6151d918da693b5a37b2d36a3691e7da31f476ed7a SHA512 8f40208c01ad67914e6e81e5c4ee520a26c7f1347a0d17778c0671f6f2edb66b0320dac0add74b910ee9df8e0400837c338c66f0934040bc44195e701e8ac675 WHIRLPOOL 8f29bafa1a2ad6a13066755641a80494ead2f42406dcb10ab9a152f651cc712016563526a50a11e90c619da19c2d15b41919e5ea6ec939cd2eaf35248408a756
+AUX tenshi-openrc-init.patch 400 SHA256 ccd3596990737cc093acdcd299b8ae063795e2f81c80f859425d86b3bf0eeb2a SHA512 f623ddebbc873bc579484a60357aa4480bdff06d032591512765e8e8d947249899a45285d5abfeb78d77567154218f187c1f1f2d84d5a668473d5c03cfc19027 WHIRLPOOL 7186f52b8ed6fabfc06d7b53ee7837a5deff4920b2323e9b0b2c45b2e7ebdd688693897b89e71390a001ffaa966e22a66e1e515130baa24a2273003a1d019a39
+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
+EBUILD tenshi-0.12.ebuild 1342 SHA256 d27f426fe51e4eb54fea432c547197f93e2bd76080a6f3a5413451a2f3cf505d SHA512 281348e573ec93eba92456d13c85d263fd32954f539ebe4cee0c66cb291b579bc034313c5d40cecef74d89dfb570d8b905bdd13fb24dfa30cd1ca10767d950a5 WHIRLPOOL 340bc530e696f7d32ba4ed9ccf249fa30e5e0b83a05acf7339fb05cb3ef85155f03c5c88670e5318ce5716e5d54e73d9c486679da04f842d71ed5a77b5e168de
+EBUILD tenshi-0.14.ebuild 1185 SHA256 5f851ca15c9a46e3e82fdeb15e0d8860cdca6e849060043de77504321fcb5495 SHA512 53b7df0fc590a83cd12d8ba0c6c5404941f71ab1e81787b8ce924a0baaee2c8162a7abaf3b1d36e6f634bb16520aec29ab3ff7ea1efeace731b676f167335331 WHIRLPOOL d84245f8021f0ef40bacae650900f49ac4d880a93294ab6a3e7cf3465f1179727f7faabe817aab42201b53cfa1f669bbeae2cf37cfd92a9fd6762d454ddbdeac
+EBUILD tenshi-0.15.ebuild 1186 SHA256 53592c2046feaf133cddfc09a6a5abc8d76058cbf42df02629f48eaf739c52a2 SHA512 eaffd6c1308d4c8111f443008eb7a2ec8bae686460b91509834c68801719d277f334660ae1330b6215959e6be8fa7349229e0ad214af593fb8a22d756120e769 WHIRLPOOL 7bb95664b52601b82aa0551898a65b4fd34f0e13cb26fc4e6121da29a58d256236833310d528e50ded5d4ebdde16af3d262cc98af76401018d2588d3fda2ff12
+EBUILD tenshi-0.16-r1.ebuild 1202 SHA256 aed391a945b91d4fcdef5b5f1915ff72aa7e6543d978dc65909f242919ec7e15 SHA512 5867a7541226f28c9d126a3a457a841dcf8fc9cf3f69aa5414eaddae5c461141d6f734ed27a68e0c273b82788d46b7c972ca6213025656eef9887ae30344ab6e WHIRLPOOL cbd0a577840096c324bbf84e83f615ac11b46811a5e09271b953d5f5532f33cb69521526df567f1cb90a1fdd29cb06d5cd77388b1de152ac792719f8e784722a
+MISC ChangeLog 3082 SHA256 183bfd0bffc42bedff4b0e21f5febaedf53a6c9b0dab076eca22105b3d52533d SHA512 7f44da90f2110dd629cdc0355d2df723b427b834cad7de44bf26ff89fd768d7a34982bd9f6528c5b7e75ce3ccb67def1dff098ceca6b4c42240afe608f9bddc3 WHIRLPOOL 8415fd3e1eae3ef2f69b04aa1561e83a4a65849beb2ddb35e4d148e90290140ad8056c634497b82225e58d0b36f50bd00d570ffa774ea3d6d712e5e6c4abfda2
+MISC ChangeLog-2015 9976 SHA256 573040119f052945409cc0f7531e879149db33e9831be911c47a893371031919 SHA512 a20c7c050bce9034f9cc818c6e2abe328c0855f93991c329e84ace3336dbde1b9e3222d194f5913ed5b87a744654684fe991db23e2ee530528bc7585ae3e26bd WHIRLPOOL 0fe1e23090f945fffc008f66e8505fa4afc5d1b3d10698408655333e8bd75e70fe8698d042ca06d8f82f579de535192dd9d1ae7fe3d73e57acddf8054aa81730
+MISC metadata.xml 616 SHA256 e563641e35db1a231554411a86489e2c72dd9fc769b9a9baa5f48014690dbdaf SHA512 aecc34001ab636a20f6431410c9b96b157c581abebbcd38e61f121472d458e1211cd6fc70f90e50ea1b50d3eda3f151d39a2345c1e6510a8c067f90402ab43b7 WHIRLPOOL c8ccf96605510ee6dccfeb12191955804d484a486e10b5b4555508c09afbb454f1313168f6213e1ad494c75ce64e1de9ad857d6d56daa738ccff9cdda0e6cd0a
diff --git a/app-admin/tenshi/files/tenshi-create-mandir.patch b/app-admin/tenshi/files/tenshi-create-mandir.patch
new file mode 100644
index 000000000000..72ca3f28576d
--- /dev/null
+++ b/app-admin/tenshi/files/tenshi-create-mandir.patch
@@ -0,0 +1,10 @@
+--- a/Makefile
++++ b/Makefile
+@@ -38,5 +38,7 @@
+ install -g root -m 0644 -D tenshi.conf ${DESTDIR}${sysconfdir}/tenshi/tenshi.conf
+ install -d ${DESTDIR}${docdir}
+ install -m 0644 ${DOCS} ${DESTDIR}${docdir}/
++ [ -d ${DESTDIR}${mandir}/man8 ] || \
++ install -d ${DESTDIR}${mandir}/man8
+ install -g root -m 0644 tenshi.8 ${DESTDIR}${mandir}/man8/
+ install -g root -m 755 -d ${DESTDIR}${libdir}
diff --git a/app-admin/tenshi/files/tenshi-openrc-init-r1.patch b/app-admin/tenshi/files/tenshi-openrc-init-r1.patch
new file mode 100644
index 000000000000..43d398610e7b
--- /dev/null
+++ b/app-admin/tenshi/files/tenshi-openrc-init-r1.patch
@@ -0,0 +1,11 @@
+--- a/tenshi.gentoo-init
++++ b/tenshi.gentoo-init
+@@ -1,6 +1,7 @@
+ #!/sbin/openrc-run
+
+-opts="depend start stop reload flush checkconfig"
++extra_commands="checkconfig"
++extra_started_commands="reload flush"
+
+ depend() {
+ need clock hostname logger
diff --git a/app-admin/tenshi/files/tenshi-openrc-init.patch b/app-admin/tenshi/files/tenshi-openrc-init.patch
new file mode 100644
index 000000000000..eef9874c553a
--- /dev/null
+++ b/app-admin/tenshi/files/tenshi-openrc-init.patch
@@ -0,0 +1,11 @@
+--- a/tenshi.gentoo-init
++++ b/tenshi.gentoo-init
+@@ -13,7 +13,7 @@
+
+ start() {
+ ebegin "Starting tenshi"
+- start-stop-daemon --start --quiet --exec /usr/sbin/tenshi -- -c /etc/tenshi/tenshi.conf -P /var/lib/tenshi/tenshi.pid
++ start-stop-daemon --start --quiet --pidfile /var/lib/tenshi/tenshi.pid --exec /usr/sbin/tenshi -- -c /etc/tenshi/tenshi.conf -P /var/lib/tenshi/tenshi.pid
+ eend $?
+ }
+
diff --git a/app-admin/tenshi/metadata.xml b/app-admin/tenshi/metadata.xml
new file mode 100644
index 000000000000..332fa6f97201
--- /dev/null
+++ b/app-admin/tenshi/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>bldewolf@cpp.edu</email>
+ <name>Brian De Wolf</name>
+ <description>Primary proxied maintainer; set to assignee in all bugs</description>
+</maintainer>
+<maintainer type="person">
+ <email>atj@pulsewidth.org.uk</email>
+ <name>Adam James</name>
+ <description>Proxied co-maintainer; CC in all bugs</description>
+</maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-admin/tenshi/tenshi-0.12.ebuild b/app-admin/tenshi/tenshi-0.12.ebuild
new file mode 100644
index 000000000000..00fc0e6fd7a1
--- /dev/null
+++ b/app-admin/tenshi/tenshi-0.12.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils user
+
+DESCRIPTION="Log parsing and notification program"
+HOMEPAGE="http://dev.inversepath.com/trac/tenshi"
+SRC_URI="http://dev.inversepath.com/tenshi/${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() {
+ epatch "${FILESDIR}/${PN}-create-mandir.patch"
+ epatch "${FILESDIR}/${PN}-openrc-init.patch" #218042
+ epatch "${FILESDIR}/${PN}-openrc-init-r1.patch" #398987
+
+ # 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
+ dodir /var/lib/tenshi
+ fowners tenshi:root /var/lib/tenshi
+ doman tenshi.8
+ newinitd tenshi.gentoo-init tenshi
+ keepdir /var/lib/tenshi
+}
+
+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."
+}
diff --git a/app-admin/tenshi/tenshi-0.14.ebuild b/app-admin/tenshi/tenshi-0.14.ebuild
new file mode 100644
index 000000000000..462d7eb8175f
--- /dev/null
+++ b/app-admin/tenshi/tenshi-0.14.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils user
+
+DESCRIPTION="Log parsing and notification program"
+HOMEPAGE="http://dev.inversepath.com/trac/tenshi"
+SRC_URI="http://dev.inversepath.com/tenshi/${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() {
+ # 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
+ dodir /var/lib/tenshi
+ fowners tenshi:root /var/lib/tenshi
+ doman tenshi.8
+ newinitd tenshi.gentoo-init tenshi
+ keepdir /var/lib/tenshi
+}
+
+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."
+}
diff --git a/app-admin/tenshi/tenshi-0.15.ebuild b/app-admin/tenshi/tenshi-0.15.ebuild
new file mode 100644
index 000000000000..16c4de5754a3
--- /dev/null
+++ b/app-admin/tenshi/tenshi-0.15.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils user
+
+DESCRIPTION="Log parsing and notification program"
+HOMEPAGE="http://dev.inversepath.com/trac/tenshi"
+SRC_URI="http://dev.inversepath.com/tenshi/${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() {
+ # 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
+ dodir /var/lib/tenshi
+ fowners tenshi:root /var/lib/tenshi
+ doman tenshi.8
+ newinitd tenshi.gentoo-init tenshi
+ keepdir /var/lib/tenshi
+}
+
+cpkg_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."
+}
diff --git a/app-admin/tenshi/tenshi-0.16-r1.ebuild b/app-admin/tenshi/tenshi-0.16-r1.ebuild
new file mode 100644
index 000000000000..45059dc892f4
--- /dev/null
+++ b/app-admin/tenshi/tenshi-0.16-r1.ebuild
@@ -0,0 +1,47 @@
+# 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
+ 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."
+}