﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
438	RPM spec file has problems	rainer	rainer	"As pointed out by Franky Van L., there are two problems:
{{{
When setting the PASSWORD environment variable, this fails with 
another error:

error: syntax error in expression
error: .../SPECS/samhain.spec:75: bad %if condition

It seems changing samhain.spec.in line 75 from
   %if 0%{?password}
to
   %if ""%{?password}"" != """"
fixes it (reason being that it is always defined at the top in the 
spec file, we just need to check if it is empty or not).

Another small thing going wrong in the samhain.spec.in is that when 
compiling with
./configure --enable-xml-log --enable-network=server \
  --with-config-file=REQ_FROM_SERVER/etc/samhainrc \
  --with-data-file=REQ_FROM_SERVER/var/lib/samhain/samhain_file \
  --with-database=mysql --prefix=USR

the resulting rpm (yule), claims the ownership of /run (which of 
course is wrong and should not happen). Currently I work around 
that by editing samhain.spec.in and commenting out the line ""%dir 
@mylockdir@"" , but the correct thing would be to check for its 
value and skip it only in case of ""/run"" or ""/var/run"".
}}}"	defect	closed	major	4.3.3	main		fixed		
