diff options
author | 2011-03-15 11:25:37 +0100 | |
---|---|---|
committer | 2011-03-15 11:25:37 +0100 | |
commit | bbf50668aefa2c72bf39de4b8d4d711ac4bf21a8 (patch) | |
tree | 549ec76f2c9bb24a8c51edcab9cab34dffb8f67f /net-analyzer | |
parent | net-nds/gq: Copy from sunrise, work around --without-kerberos-prefix, quick-b... (diff) | |
download | betagarden-bbf50668aefa2c72bf39de4b8d4d711ac4bf21a8.tar.gz betagarden-bbf50668aefa2c72bf39de4b8d4d711ac4bf21a8.tar.bz2 betagarden-bbf50668aefa2c72bf39de4b8d4d711ac4bf21a8.zip |
bump net-analyzer/splunk to 4.2
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/splunk/Manifest | 3 | ||||
-rw-r--r-- | net-analyzer/splunk/splunk-4.2.ebuild | 63 |
2 files changed, 66 insertions, 0 deletions
diff --git a/net-analyzer/splunk/Manifest b/net-analyzer/splunk/Manifest index 916833c..054579a 100644 --- a/net-analyzer/splunk/Manifest +++ b/net-analyzer/splunk/Manifest @@ -1,4 +1,7 @@ AUX splunk.initd 329 RMD160 fe5434c78f647e71ed1fe491aa6b77c102c9ab0d SHA1 22ace774652cf9f04381d14e3f30ae7fcae98a97 SHA256 f5921c49e2a5d31a2c015ca267c11c1a99a3395a725b075cc588be09bab29d41 DIST splunk-4.1.5-85165-Linux-i686.tgz 42463826 RMD160 5a42fddd5c9fd0ffb74740ed3c6b183cd5e2f155 SHA1 acf50bbba87905f146ddea6b3fd2f31819c32785 SHA256 54757b185f1cea3a7f637c3e830bda1bbc9fdd55a8b138f62b7c0d8da475cb4d DIST splunk-4.1.5-85165-Linux-x86_64.tgz 45066448 RMD160 4d3925282764821d1175948f054c58ff22fb06cd SHA1 788bb7e20cb91cda2316a7a692ffbefb4d45b713 SHA256 9c57fdb7228574acb3e5a262620b6b956047b0c9709609879eebb70d06767f4f +DIST splunk-4.2-96430-Linux-i686.tgz 24345134 RMD160 c3a87988e854f4526fad28b3ee0355c861a331be SHA1 3522e5cb3f8c12a2a0eb554d2039501bc6f9ae5b SHA256 bd04ca1832f3bd0d6c8651d925500b75d860d00b50b8f64f55e1863d1a323151 +DIST splunk-4.2-96430-Linux-x86_64.tgz 25606407 RMD160 0015a5f3bb57d1d84958e80c0367486782368566 SHA1 b0a6c22ce58b32f6415bd71ac759dc37e9b48c28 SHA256 c204f98b5c6d1b0619f62f878b81fb0f25d9d479d657b7f61d74dacd3816313a EBUILD splunk-4.1.5.85165.ebuild 1485 RMD160 b8ada2365e0ccb5d4158beb0f47728ad6fa575ad SHA1 c7f8ebc5721acdf63ae72f109fce40ab3bf71fd2 SHA256 50370a446e8504734f402f35d2e6cfe1fdcf76664a2470a310b151edd9db687f +EBUILD splunk-4.2.ebuild 1584 RMD160 21c7b7ee2f4722e933e6a1ddf7c4c9818bbb8f52 SHA1 7938c11b373134c39b1604fbd9920aae9bf8f329 SHA256 5d65050c82d2ed361347b6e476ff074a43c1bc08c9d67cc57be967313a0c9a48 diff --git a/net-analyzer/splunk/splunk-4.2.ebuild b/net-analyzer/splunk/splunk-4.2.ebuild new file mode 100644 index 0000000..2190f08 --- /dev/null +++ b/net-analyzer/splunk/splunk-4.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 + +RESTRICT="strip mirror" +QA_PREBUILT=/ + +inherit versionator + +MY_REVISION=96430 +MY_FILE=${P}-${MY_REVISION} + +DESCRIPTION="The search engine for IT data" +HOMEPAGE="http://www.splunk.com" + +LICENSE="splunk-eula" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +splunk_url() { + echo "http://www.splunk.com/index.php/download_track?file=${PV}/${PN}/linux/${1}&ac=&wget=true&name=wget&typed=releases -> ${1}" +} + +SRC_URI=" + x86? ( $(splunk_url ${MY_FILE}-Linux-i686.tgz) ) + amd64? ( $(splunk_url ${MY_FILE}-Linux-x86_64.tgz) ) +" + +S="${WORKDIR}"/${PN} + +src_install() { + mkdir "${D}"/opt + mv "${S}" "${D}"/opt/${PN} + + dosym /opt/${PN}/bin/splunk /opt/bin/splunk + + keepdir /var/lib/splunk + echo "SPLUNK_DB=/var/lib/splunk" >> "${D}/opt/${PN}/etc/splunk-launch.conf" + + newinitd "${FILESDIR}"/splunk.initd splunk +} + +pkg_postinst() { + elog "To create a default configuration run the following command:" + elog "" + elog " emerge --config =${CATEGORY}/${P}" + elog "" + elog "For more information about Splunk, please visit" + elog "${HOMEPAGE}/doc/latest" + elog "" + elog "To add splunk to your startup scripts" + elog "run 'rc-update add splunk default'" +} + +pkg_config() { + einfo "Creating default configuration to monitor /var/log ..." + # Need to start splunk to accept the license and build database + /opt/${PN}/bin/splunk start --accept-license + /opt/${PN}/bin/splunk stop +} |