diff options
author | Dylan Carlson <absinthe@gentoo.org> | 2003-03-22 04:07:30 +0000 |
---|---|---|
committer | Dylan Carlson <absinthe@gentoo.org> | 2003-03-22 04:07:30 +0000 |
commit | 89adf73654a626b2bfe22512579ce50d4a827630 (patch) | |
tree | 23c2dea4de57b8306152c147964ddd4bc8e66960 /net-www | |
parent | version bump (diff) | |
download | historical-89adf73654a626b2bfe22512579ce50d4a827630.tar.gz historical-89adf73654a626b2bfe22512579ce50d4a827630.tar.bz2 historical-89adf73654a626b2bfe22512579ce50d4a827630.zip |
minor fixes.
Diffstat (limited to 'net-www')
-rw-r--r-- | net-www/orion/files/2.0/orion.init | 3 | ||||
-rw-r--r-- | net-www/orion/orion-2.0.ebuild | 21 |
2 files changed, 13 insertions, 11 deletions
diff --git a/net-www/orion/files/2.0/orion.init b/net-www/orion/files/2.0/orion.init index 01d561631f14..7cfa7889dccc 100644 --- a/net-www/orion/files/2.0/orion.init +++ b/net-www/orion/files/2.0/orion.init @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/net-www/orion/files/2.0/orion.init,v 1.1 2003/03/22 03:28:35 absinthe Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-www/orion/files/2.0/orion.init,v 1.2 2003/03/22 04:07:30 absinthe Exp $ depend() { need net @@ -9,6 +9,7 @@ depend() { start() { ebegin "Starting orion" + cd ${ORION_DIR} su - orion -c /opt/orion/sbin/start_orion.sh eend $? } diff --git a/net-www/orion/orion-2.0.ebuild b/net-www/orion/orion-2.0.ebuild index f5c1530c30c6..cbb5ea89d0c4 100644 --- a/net-www/orion/orion-2.0.ebuild +++ b/net-www/orion/orion-2.0.ebuild @@ -1,8 +1,7 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-www/orion/orion-2.0.ebuild,v 1.1 2003/03/22 03:28:35 absinthe Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-www/orion/orion-2.0.ebuild,v 1.2 2003/03/22 04:07:30 absinthe Exp $ -inherit eutils S=${WORKDIR}/${PN} @@ -34,10 +33,12 @@ src_unpack() { pkg_setup() { - enewgroup orion 260 - enewuser orion 260 /bin/bash /opt/orion orion - echo -ne "\a" ; sleep 1 ; echo -ne "\a" ; sleep 1 ; echo -ne "\a" ; sleep 1 - sleep 10 + if ! groupmod orion ; then + groupadd -g 260 orion || die "problem adding group orion" + fi + if ! id orion; then + useradd -g orion -s /bin/bash -d /opt/orion -c "orion" orion || die "problem adding user orion" + fi } @@ -71,13 +72,12 @@ src_install() { doins ${S}/orion # CREATE DUMMY LOG & PERSISTENCE DIR - touch ${S}/stdout.log - touch ${S}/dummy + touch ${S}/.keep insinto /var/log/${PN} insopts -o orion -g orion - doins ${S}/stdout.log + doins ${S}/.keep insinto /opt/${PN}/persistence - doins ${S}/dummy + doins ${S}/.keep # INSTALL EXTRA FILES local dirs="applications database default-web-app demo lib persistence autoupdate.properties" @@ -108,6 +108,7 @@ src_install() { pkg_postinst() { einfo " " einfo " NOTICE!" + einfo " User and group 'orion' have been added." einfo " Please set a password for the user account 'orion'" einfo " if you have not done so already." einfo " " |