On 2001.02.27 06:42:12 +0400 David Walluck wrote:
> On Mon, 26 Feb 2001, Guillaume Rousse wrote:
> 
> > Subject: [Cooker] i like being insulted by rpmlint :-)
> > 
> > Here is current rpmlint wrath on my shiny new tomcat rpm :
> > W: tomcat non-conffile-in-etc /etc/tomcat/tomcat.properties
> > W: tomcat non-conffile-in-etc /etc/tomcat/obj.conf
> > [..] and so on for every file... in /etc/tomcat
> > W: tomcat spurious-bracket-in-%post
> 
> mark /etc/tomcat as %conf
> the second warning looks like your post script may have a syntax error. I
> don't have the new rpmlint, but I am sure about the first error. Marking
> conf files makes sure RPM won't overwrite them.

Ok, first problem solved. But i would raise an issue : while a file in
/etc/logrotate.d could be considered a configuration file, a file in
/etc/rc.d/init.d is really not a configuration file, but a launch script.

Second one is still unresolved. Here is the part of the script making
rpmlint complaints (commenting it turns this off), just in case a shell
guru could help me... 
# look for Java location
if [ -n $JAVA_HOME ] ; then
        JAVALOC=$JAVA_HOME
else
        if [ -n $JAVA_PATH] ; then
                JAVALOC=$JAVA_PATH
        else
                if [ -n $JDK_HOME] ; then
                        JAVALOC=$JDK_HOME
                else
                        if [ -n $JDK_PATH] ; then
                                JAVALOC=$JDK_PATH
                        fi
                fi
        fi
fi

-- 
The administration will veiw the study hall as the teacher's preparation
time. 
        -- Murphy's Laws of Teaching n°14

Reply via email to