Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 105245 Details for
Bug 155859
New ebuild: dev-java/mule-bin-1.3.2
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
mule-bin-1.3.2.ebuild
mule-bin-1.3.2.ebuild (text/plain), 3.98 KB, created by
Matthew Schultz
on 2007-01-02 14:37:29 UTC
(
hide
)
Description:
mule-bin-1.3.2.ebuild
Filename:
MIME Type:
Creator:
Matthew Schultz
Created:
2007-01-02 14:37:29 UTC
Size:
3.98 KB
patch
obsolete
># Copyright 1999-2007 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ ># Nonofficial ebuild by Matthew Schultz > >inherit java-utils-2 eutils > >MY_PN="mule" > >DESCRIPTION="Mule is an Enterprise Service Bus (ESB) for Java programs" >HOMEPAGE="http://mule.mulesource.org" >SRC_URI="http://dist.codehaus.org/${MY_PN}/distributions/${MY_PN}-${PV}.tar.gz" >RESTRICT="nomirror" >LICENSE="MULE" >SLOT="0" >KEYWORDS="~amd64 ~ppc64 ~x86 ~x86-fbsd" >IUSE="doc examples logrotate source" >RDEPEND=">=virtual/jdk-1.5.0 > >=dev-java/java-config-1.2 > examples? ( >=dev-java/maven-bin-2.0.2 )" >S="${WORKDIR}/${MY_PN}-${PV}" > >pkg_setup() { > enewgroup ${MY_PN} || die "Adding group ${MY_PN} failed" > enewuser ${MY_PN} -1 /bin/bash /var/"${MY_PN}" ${MY_PN} || die "Adding user ${MY_PN} failed" >} > >src_unpack(){ > unpack "${A}" && cd "${S}"/bin > # Change a few environmental variables and run as mule user > epatch ${FILESDIR}/${P}-script.patch > cd "${S}"/conf > epatch ${FILESDIR}/${P}-wrapper.patch >} > >src_install() { > #Variables to copy files based on arch and kernel > local MY_ARCH=`uname -m | sed -e s/i[3-6]86/x86-32/ -e s/x86_64/x86-64/ -e s/ppc64/ppc-64/` > local MY_KERNEL=`uname -s | sed -e s/Linux/linux/ -e s/FreeBSD/freebsd/` > #Change into source directory > cd "${S}" > > #.so file > dodir /usr/lib > insinto /usr/lib > insopts -m0755 > doins lib/boot/libwrapper-${MY_KERNEL}-${MY_ARCH}.so > > #Libraries > dodir /usr/lib/"${MY_PN}" > cp -Rp lib/"${MY_PN}" lib/opt lib/user "${D}"/usr/lib/"${MY_PN}" > > #Mule is going to want to be able to download jar files to this directory > fowners ${MY_PN}:${MY_PN} /usr/lib/"${MY_PN}"/user > dosym /usr/lib/"${MY_PN}" /usr/lib/"${MY_PN}"/lib > > #Boot Jar file > insinto /usr/lib/"${MY_PN}" > doins lib/boot/mule-module-boot.jar > > #Shell Script which points to binary > dodir /usr/bin > insinto /usr/bin > insopts -m0755 > doins bin/"${MY_PN}" > > #Binary > dodir /usr/sbin > insinto /usr/sbin > insopts -m0755 > doins sbin/wrapper-${MY_KERNEL}-${MY_ARCH} > > #Startup Script > dodir /etc/init.d > insinto /etc/init.d > insopts -m0755 > doins bin/"${MY_PN}" > > #Config Directory > dodir /etc/"${MY_PN}" > insinto /etc/"${MY_PN}" > insopts -m0644 > doins -r conf/* > > #Log Directory > dodir /var/log/"${MY_PN}" > fowners ${MY_PN}:${MY_PN} /var/log/"${MY_PN}" > keepdir /var/log/"${MY_PN}" > > #PID > dodir /var/run/"${MY_PN}" > fowners ${MY_PN}:${MY_PN} /var/run/"${MY_PN}" > keepdir /var/run/"${MY_PN}" > > #Lock File > dodir /var/lock/"${MY_PN}" > fowners ${MY_PN}:${MY_PN} /var/lock/"${MY_PN}" > keepdir /var/lock/"${MY_PN}" > > #Environmental variable required for mule to run > dodir /etc/env.d > cat > ${D}/etc/env.d/21${MY_PN} <<EOF >MULE_HOME="/usr/lib/${MY_PN}" >EOF > #Examples > if use examples; then > dodir /usr/share/doc/${MY_PN}/examples > cp -Rp examples ${D}/usr/share/doc/${MY_PN}/examples > fi > > #Documentation > dodoc USAGE.txt LICENSE.txt > use doc && java-pkg_dohtml -r docs/api/* > > #Log rotation > if use logrotate; then > dodir /etc/logrotate.d > cat > ${D}/etc/logrotate.d/${MY_PN} <<EOF >/var/log/"${MY_PN}"/*log { > missingok > notifempty > sharedscripts > daily > rotate 14 >} >EOF > fi > > #Mule Source Files > if use source; then > dodir /usr/src/"${MY_PN}" > cp -Rp src "${D}"/usr/src/"${MY_PN}" > fi >} > >pkg_postinst() { > echo > einfo "Note: Mule will attempt to acquire a few required jar files the " > einfo "first time it is run. Make sure it has access to the internet so " > einfo "it can download these files." > echo > ewarn "You should source /etc/profile in your open shells." > echo > epause >} > >pkg_postrm(){ > if [ ! -e "/usr/bin/${MY_PN}" ]; then > echo > einfo "A few files and the ${MY_PN} user are left behind after unmerging." > einfo "If you are permanently unmerging ${MY_PN} and this is not a " > einfo "rebuild or upgrade, you can remove them with this command:" > einfo > einfo "rm -r /etc/init.d/${MY_PN} /etc/${MY_PN} /etc/logrotate.d/${MY_PN} /var/log/${MY_PN} /var/${MY_PN} /usr/lib/${MY_PN} && userdel mule" > echo > fi >}
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 155859
:
103449
|
103450
| 105245 |
105246
|
105247