Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 15503 invoked from network); 22 Sep 2006 13:32:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Sep 2006 13:32:17 -0000 Received: (qmail 55844 invoked by uid 500); 22 Sep 2006 13:32:07 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 55816 invoked by uid 500); 22 Sep 2006 13:32:07 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 55798 invoked by uid 99); 22 Sep 2006 13:32:07 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Sep 2006 06:32:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:36279] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 22/0B-06791-8B5E3154 for ; Fri, 22 Sep 2006 06:31:40 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0F8894190CD for ; Fri, 22 Sep 2006 13:27:31 +0000 (GMT) Message-ID: <199450.1158931651061.JavaMail.jira@brutus> Date: Fri, 22 Sep 2006 06:27:31 -0700 (PDT) From: "Bastiaan Bakker (JIRA)" To: dev@directory.apache.org Subject: [jira] Updated: (DIRSERVER-749) fix issues with apacheds RPM to get it working out of the box In-Reply-To: <17149563.1158930862492.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DIRSERVER-749?page=all ] Bastiaan Bakker updated DIRSERVER-749: -------------------------------------- Attachment: apacheds-daemon-trunk-rpmfix.patch apacheds-branch-1.0-server-installers-rpmfix.patch The attached patchs are diffs against directory/trunks/daemon/ and directory/branches/apacheds/1.0 respectively. The provide the following fixes: * added /etc/sysconfig/apacheds containing JAVA_HOME and APACHEDS_USER * fix init scripts to set APACHEDS_USER to 'root' if not defined in /etc/sysconfig/apacheds * marked all config files as such * build RPM as regular user using 'rpmbuild --define "_topdir "' * removed no longer needed option * split sources and docs in subpackages * add tag to to specify were apacheds should be installed * set to '/opt/apacheds' so the location doesn't contain a version number anymore * add tag to have apacheds run as a non-root user for security reasons * set to 'apacheds' * let RPM create daemonUser upon first install * let $installBase/var subdirs be owned by daemonUser * register initscript with install_initd * stop daemon before deinstalling RPM * start apacheds in runlevel 3,4,5 > fix issues with apacheds RPM to get it working out of the box > ------------------------------------------------------------- > > Key: DIRSERVER-749 > URL: http://issues.apache.org/jira/browse/DIRSERVER-749 > Project: Directory ApacheDS > Issue Type: Improvement > Components: installer-plugin > Affects Versions: 1.0-RC4 > Environment: linux > Reporter: Bastiaan Bakker > Attachments: apacheds-branch-1.0-server-installers-rpmfix.patch, apacheds-daemon-trunk-rpmfix.patch > > > The apacheds RPM has several issues that prevent it from running out of the box: > * the init script fails to run because APACHEDS_USER is set to $USER, which is not defined at boot time > * the init script fails to run bevause JAVA_HOME is not defined > * the init script it is not registered to the init subsystem with chkconfig or similar > * the config files are not marked as such, causing them to be silently overwritten when one upgrades the RPM > * the RPM filename is not conform conventions: ${name}-${version}-${release}.${arch}.rpm > * the location of the files (/usr/local/apacheds-1.0_RC4) is version dependent, making upgrades cumbsome. The admin has to relocate the partitions and config files on every updgrade. > * the sources and docs are included in the rpm, even though they are not necessary for operation. > The RPM build mechanism for apacheds also has some issues: > * runs rpmbuild as root, which is frowned upon by RPM gurus for security and safety reasons. > * the generated src.rpm is not self contained, ie. one cannot do a 'rpmbuild --rebuild' with it. > * the sudo mechanism is totally unnecessary > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira