diff options
author | Matthew Kennedy <mkennedy@gentoo.org> | 2003-05-28 08:15:41 +0000 |
---|---|---|
committer | Matthew Kennedy <mkennedy@gentoo.org> | 2003-05-28 08:15:41 +0000 |
commit | ee859fed8e846031fe132a03230953aa5868f35c (patch) | |
tree | 5d0b2b5ae6fcc2d1b77e67500c2a666c963c5392 /net-www | |
parent | Fix squidguard + db4 (diff) | |
download | gentoo-2-ee859fed8e846031fe132a03230953aa5868f35c.tar.gz gentoo-2-ee859fed8e846031fe132a03230953aa5868f35c.tar.bz2 gentoo-2-ee859fed8e846031fe132a03230953aa5868f35c.zip |
added pkg_preinst
Diffstat (limited to 'net-www')
-rw-r--r-- | net-www/jboss/Manifest | 16 | ||||
-rw-r--r-- | net-www/jboss/jboss-3.2.1.ebuild | 43 |
2 files changed, 49 insertions, 10 deletions
diff --git a/net-www/jboss/Manifest b/net-www/jboss/Manifest new file mode 100644 index 000000000000..1831dee0a7b4 --- /dev/null +++ b/net-www/jboss/Manifest @@ -0,0 +1,16 @@ +MD5 da444d5e7c2c3c4654df217be08682b1 ChangeLog 1377 +MD5 385353f6bbc7ac519c75d1c14501a33c jboss-3.0.1_rc1.ebuild 2589 +MD5 48e1267c9670d6bfd78655833bd9b3aa jboss-3.0.6.ebuild 2665 +MD5 27b33d467d65cfd8cc36be7459e47ed5 jboss-3.2.1.ebuild 3086 +MD5 83b6857488b5fca7fbe0b9f5cc841237 files/README.gentoo 1319 +MD5 9ed2cbd53ccd4ad24130fa8a0bd44fab files/digest-jboss-3.0.1_rc1 69 +MD5 b6da382577bcc6d139c83cb0e11bc466 files/log4j.xml 5632 +MD5 ee6dd298b26237545eb64c6fa1f576b5 files/digest-jboss-3.0.6 66 +MD5 e7f2e7b69b77430017fe58448ca68772 files/jboss-3.0.6-connector.patch 549 +MD5 18692f3609e3c62b4505a3f41d7d1fca files/digest-jboss-3.2.1 66 +MD5 e282e72230397784cfd6a0d6c4e794ed files/conf.d/jboss 988 +MD5 a466b250acce9ac6953fc85577ca6bf6 files/init.d/jboss 478 +MD5 4662db6a030cb02f46ed3bfe486b90c6 files/3.2.1/log4j.xml 5632 +MD5 dbc2494a3ba0381ba2630867e099a338 files/3.2.1/conf.d/jboss 980 +MD5 a466b250acce9ac6953fc85577ca6bf6 files/3.2.1/init.d/jboss 478 +MD5 8be6a5609fb1d490b808a3124052e0ba files/3.2.1/env.d/50jboss 27 diff --git a/net-www/jboss/jboss-3.2.1.ebuild b/net-www/jboss/jboss-3.2.1.ebuild index 4ba54cb211c9..3d31a2e575cb 100644 --- a/net-www/jboss/jboss-3.2.1.ebuild +++ b/net-www/jboss/jboss-3.2.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-www/jboss/jboss-3.2.1.ebuild,v 1.1 2003/05/08 15:47:48 mkennedy Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-www/jboss/jboss-3.2.1.ebuild,v 1.2 2003/05/28 08:15:36 mkennedy Exp $ MY_P="${P}-src" @@ -46,7 +46,7 @@ src_install() { sed -i "s#@JBOSSPREFIX@#${INSTALL_DIR}#" ${D}/etc/env.d/50jboss einfo ">>> Setting up configuration files and library packages..." - local dirs="build/output/${PN}-${PV}/server build/output/${PN}-${PV}/lib" + local dirs="build/output/${PN}-${PV}/server build/output/${PN}-${PV}/lib build/output/${PN}-${PV}/client" for i in $dirs ; do cp -a $i ${D}/${INSTALL_DIR}/ done @@ -54,11 +54,14 @@ src_install() { cp ${FILESDIR}/${PV}/log4j.xml ${D}/${INSTALL_DIR}/server/default/conf cp ${FILESDIR}/${PV}/log4j.xml ${D}/${INSTALL_DIR}/server/minimal/conf - einfo ">>> Installing client libraries..." - local dirs="build/output/${PN}-${PV}/client/*" - for i in $dirs ; do - dojar $i - done + # We probably should not do this, because a wide variety of tools + # assume everything under a common JBoss file system. + +# einfo ">>> Installing client libraries..." +# local dirs="build/output/${PN}-${PV}/client/*" +# for i in $dirs ; do +# dojar $i +# done einfo ">>> Setting up documentation..." dodoc server/src/docs/LICENSE.txt ${FILESDIR}/README.gentoo @@ -72,12 +75,32 @@ src_install() { } pkg_postinst() { - einfo ">>> Assigning access rights..." chown -R jboss ${INSTALL_DIR}/server chgrp -R jboss ${INSTALL_DIR}/server chown jboss /var/log/jboss chgrp jboss /var/log/jboss + chmod -R g+w ${INSTALL_DIR}/server + + einfo "" + einfo "Access summary" + einfo "--------------" + einfo " * User jboss and group jboss ownership for" + einfo " ${INSTALL_DIR}/server and higher and " + einfo " /var/log/jboss" + einfo " * User and group read/write permissions for" + einfo " ${INSTALL_DIR}/server and higher" + einfo "" + einfo "Gentoo specific documentation for JBoss is available at" + einfo "/usr/share/doc/${P}/README.gentoo" + einfo "" +} - einfo ">>> Gentoo specific documentation for JBoss is available at" - einfo ">>> /usr/share/doc/${P}/README.gentoo" +pkg_preinst() { + einfo ">>> Adding user and group for JBoss" + if ! groupmod jboss ; then + groupadd jboss || die "problem adding jboss group" + fi + if ! id jboss ; then + useradd jboss -g jboss || die "problem adding jboss user" + fi } |