Gentoo Archives: gentoo-commits

From: Benedikt Boehm <hollow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/betagarden:master commit in: net-analyzer/splunk/, net-analyzer/splunk/files/
Date: Tue, 29 Mar 2011 16:38:13
Message-Id: 5106b3d2a9a02c8a4ef9d9b5ecb8fccacb7d15bc.hollow@gentoo
1 commit: 5106b3d2a9a02c8a4ef9d9b5ecb8fccacb7d15bc
2 Author: Benedikt Böhm <bb <AT> xnull <DOT> de>
3 AuthorDate: Tue Mar 29 16:37:22 2011 +0000
4 Commit: Benedikt Boehm <hollow <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 29 16:37:22 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=5106b3d2
7
8 remove broken net-analyzer/splunk ebuild
9
10 ---
11 net-analyzer/splunk/files/splunk.initd | 21 --------
12 net-analyzer/splunk/splunk-4.1.5.85165.ebuild | 57 ----------------------
13 net-analyzer/splunk/splunk-4.2.ebuild | 63 -------------------------
14 3 files changed, 0 insertions(+), 141 deletions(-)
15
16 diff --git a/net-analyzer/splunk/files/splunk.initd b/net-analyzer/splunk/files/splunk.initd
17 deleted file mode 100644
18 index d654c0b..0000000
19 --- a/net-analyzer/splunk/files/splunk.initd
20 +++ /dev/null
21 @@ -1,21 +0,0 @@
22 -#!/sbin/runscript
23 -# Copyright 1999-2010 Gentoo Foundation
24 -# Distributed under the terms of the GNU General Public License v2
25 -# $Header: $
26 -
27 -depend() {
28 - after logger
29 - use net
30 -}
31 -
32 -start() {
33 - ebegin "Starting splunk"
34 - /opt/splunk/bin/splunk start
35 - eend $?
36 -}
37 -
38 -stop() {
39 - ebegin "Stopping splunk"
40 - /opt/splunk/bin/splunk stop
41 - eend $?
42 -}
43
44 diff --git a/net-analyzer/splunk/splunk-4.1.5.85165.ebuild b/net-analyzer/splunk/splunk-4.1.5.85165.ebuild
45 deleted file mode 100644
46 index 71ad5cf..0000000
47 --- a/net-analyzer/splunk/splunk-4.1.5.85165.ebuild
48 +++ /dev/null
49 @@ -1,57 +0,0 @@
50 -# Copyright 1999-2010 Gentoo Foundation
51 -# Distributed under the terms of the GNU General Public License v2
52 -# $Header: $
53 -
54 -EAPI=3
55 -
56 -inherit versionator
57 -
58 -MY_RELEASE=$(get_version_component_range 1-3)
59 -MY_FILE=${PN}-${MY_RELEASE}-$(get_version_component_range 4)-Linux
60 -
61 -DESCRIPTION="The search engine for IT data"
62 -HOMEPAGE="http://www.splunk.com"
63 -REL_URI="http://download.splunk.com/releases/${MY_RELEASE}/"
64 -SRC_URI="x86? ( ${REL_URI}/linux/${MY_FILE}-i686.tgz )
65 - amd64? ( ${REL_URI}/linux/${MY_FILE}-x86_64.tgz )"
66 -
67 -LICENSE="splunk-eula"
68 -SLOT="0"
69 -KEYWORDS="~amd64 ~x86"
70 -IUSE=""
71 -
72 -src_prepare() {
73 - chown root:root -R "${S}"
74 -}
75 -
76 -src_install() {
77 - insinto /opt/${PN}
78 - doins -r ${PN}/.
79 -
80 - find "${D}/opt/${PN}/bin" -print0 | xargs -0 chmod 755
81 - dosym /opt/${PN}/bin/splunk /opt/bin/splunk
82 -
83 - keepdir /var/lib/splunk
84 - echo "SPLUNK_DB=/var/lib/splunk" >> "${D}/opt/${PN}/etc/splunk-launch.conf"
85 -
86 - newinitd "${FILESDIR}"/splunk.initd splunk
87 -}
88 -
89 -pkg_postinst() {
90 - elog "To create a default configuration run the following command:"
91 - elog ""
92 - elog " emerge --config =${CATEGORY}/${P}"
93 - elog ""
94 - elog "For more information about Splunk, please visit"
95 - elog "${HOMEPAGE}/doc/latest"
96 - elog ""
97 - elog "To add splunk to your startup scripts"
98 - elog "run 'rc-update add splunk default'"
99 -}
100 -
101 -pkg_config() {
102 - einfo "Creating default configuration to monitor /var/log ..."
103 - # Need to start splunk to accept the license and build database
104 - /opt/${PN}/bin/splunk start --accept-license
105 - /opt/${PN}/bin/splunk stop
106 -}
107
108 diff --git a/net-analyzer/splunk/splunk-4.2.ebuild b/net-analyzer/splunk/splunk-4.2.ebuild
109 deleted file mode 100644
110 index 2190f08..0000000
111 --- a/net-analyzer/splunk/splunk-4.2.ebuild
112 +++ /dev/null
113 @@ -1,63 +0,0 @@
114 -# Copyright 1999-2010 Gentoo Foundation
115 -# Distributed under the terms of the GNU General Public License v2
116 -# $Header: $
117 -
118 -EAPI=3
119 -
120 -RESTRICT="strip mirror"
121 -QA_PREBUILT=/
122 -
123 -inherit versionator
124 -
125 -MY_REVISION=96430
126 -MY_FILE=${P}-${MY_REVISION}
127 -
128 -DESCRIPTION="The search engine for IT data"
129 -HOMEPAGE="http://www.splunk.com"
130 -
131 -LICENSE="splunk-eula"
132 -SLOT="0"
133 -KEYWORDS="~amd64 ~x86"
134 -IUSE=""
135 -
136 -splunk_url() {
137 - echo "http://www.splunk.com/index.php/download_track?file=${PV}/${PN}/linux/${1}&ac=&wget=true&name=wget&typed=releases -> ${1}"
138 -}
139 -
140 -SRC_URI="
141 - x86? ( $(splunk_url ${MY_FILE}-Linux-i686.tgz) )
142 - amd64? ( $(splunk_url ${MY_FILE}-Linux-x86_64.tgz) )
143 -"
144 -
145 -S="${WORKDIR}"/${PN}
146 -
147 -src_install() {
148 - mkdir "${D}"/opt
149 - mv "${S}" "${D}"/opt/${PN}
150 -
151 - dosym /opt/${PN}/bin/splunk /opt/bin/splunk
152 -
153 - keepdir /var/lib/splunk
154 - echo "SPLUNK_DB=/var/lib/splunk" >> "${D}/opt/${PN}/etc/splunk-launch.conf"
155 -
156 - newinitd "${FILESDIR}"/splunk.initd splunk
157 -}
158 -
159 -pkg_postinst() {
160 - elog "To create a default configuration run the following command:"
161 - elog ""
162 - elog " emerge --config =${CATEGORY}/${P}"
163 - elog ""
164 - elog "For more information about Splunk, please visit"
165 - elog "${HOMEPAGE}/doc/latest"
166 - elog ""
167 - elog "To add splunk to your startup scripts"
168 - elog "run 'rc-update add splunk default'"
169 -}
170 -
171 -pkg_config() {
172 - einfo "Creating default configuration to monitor /var/log ..."
173 - # Need to start splunk to accept the license and build database
174 - /opt/${PN}/bin/splunk start --accept-license
175 - /opt/${PN}/bin/splunk stop
176 -}