Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 229567 Details for
Bug 317311
dev-db/cassandra - an open source distributed database management system designed to handle large amounts of data
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Fixes wrong home dir for cassandra user
cassandra-0.6.1.ebuild (text/plain), 2.46 KB, created by
Mina Naguib
on 2010-04-28 20:13:00 UTC
(
hide
)
Description:
Fixes wrong home dir for cassandra user
Filename:
MIME Type:
Creator:
Mina Naguib
Created:
2010-04-28 20:13:00 UTC
Size:
2.46 KB
patch
obsolete
># Copyright 1999-2010 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >JAVA_PKG_IUSE="doc" >EAPI=2 > >DESCRIPTION="A highly scalable second-generation distributed database" >HOMEPAGE="http://cassandra.apache.org/" >SRC_URI="mirror://apache/cassandra/${PV}/apache-${P}-src.tar.gz" >S="${WORKDIR}/apache-${P}-src" > >LICENSE="Apache-2.0" >SLOT="0" >KEYWORDS="amd64" >IUSE="doc" > >DEPEND=">=virtual/jdk-1.6" >RDEPEND=">=virtual/jre-1.6 > !dev-db/cassandra-bin >" > >inherit eutils java-pkg-2 java-ant-2 > >pkg_setup() { > enewgroup cassandra > enewuser cassandra -1 -1 -1 cassandra >} > >java_prepare() { > rm "${S}/bin/"*.bat "${S}/bin/stop-server" || die "rm failed" >} > >src_compile() { > addwrite /root/.ivy2/ > java-pkg-2_src_compile >} > >src_install() { > > # Binary scripts > dobin bin/* || die "dobin failed" > rm "${D}/usr/bin/cassandra.in.sh" || die "rm failed" > > insinto /usr/share/${PN} > newins "${FILESDIR}/cassandra.in.sh" cassandra.in.sh || die "newins failed" > > # JAR libs > java-pkg_dojar lib/*.jar || die "dojar failed" > java-pkg_newjar build/apache-${P}.jar ${PN}.jar || die "newjar failed" > > # Configs > insinto /etc/cassandra > doins conf/*.{properties,xml} || die "doins failed" > newconfd "${FILESDIR}/conf_d_cassandra" cassandra || die "newconfd failed" > > newinitd "${FILESDIR}/init_d_cassandra" cassandra || die "newinitd failed" > > # Runtime dirs needed > keepdir /var/log/cassandra/ /var/lib/cassandra/commitlog /var/lib/cassandra/data || die "keepdir failed" > > chown -R cassandra:cassandra "${D}/var/lib/cassandra" "${D}/var/log/cassandra" || die "chown failed" > > # Docs > dodoc CHANGES.txt DISCLAIMER.txt LICENSE.txt NEWS.txt NOTICE.txt README.txt interface/cassandra.thrift || die "dodoc failed" > docinto licenses > dodoc lib/licenses/* || die "dodoc failed" > use doc && (java-pkg_dojavadoc javadocs/ || die "dojavadoc failed") > >} > >pkg_postinst() { > > elog "Cassandra's configuration is at /etc/cassandra" > elog "Cassandra works best when the commitlog directory and the data directory are on different disks" > elog "The default configuration sets them to /var/lib/cassandra/commitlog and /var/lib/cassandra/data respectively" > elog "You may wish to change those to different mount points" > > ewarn "You should start/stop cassandra via /etc/init.d/cassandra, as this will properly switch to the cassandra:cassandra user group" > ewarn "Starting cassandra via its default 'cassandra' shell command, as root, may cause permission problems later on when started as the cassandra user" > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 317311
:
229251
|
229253
|
229567
|
229761
|
229763
|
249359
|
249364
|
270215
|
270217
|
270235