Opened 7 months ago

Closed 7 months ago

#438 closed defect (fixed)

RPM spec file has problems

Reported by: rainer Owned by: rainer
Priority: major Milestone: 4.3.3
Component: main Version:
Keywords: Cc:

Description

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".

Change History (1)

comment:1 Changed 7 months ago by rainer

  • Resolution set to fixed
  • Status changed from new to closed

Believed to be fixed by changeset [547].

Note: See TracTickets for help on using tickets.