Bug 80978 - problem in Tripwire Makefile
Summary: problem in Tripwire Makefile
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Cy Schubert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-13 14:00 UTC by Hans Petter Selasky
Modified: 2005-05-14 00:53 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans Petter Selasky 2005-05-13 14:00:13 UTC
I looked at the Tripwire-131 port in 6-current, 
(/usr/ports/security/tripwire-131/), and noticed that the Makefile has 
support for creating a floppy. I looked at the commands used and the 
following does not make sense to me:

${GZIP_CMD} < ${PREFIX}/bin/tripwire > /mnt/tripwire
${GZIP_CMD} < /usr/bin/gunzip > /mnt/gunzip

The twcheck script put into /mnt/ is then supposed to execute ./tripwire 
and ./gunzip, but that is not possible ? I get:

gzip < /usr/bin/gunzip > gunzip
chmod 555 gunzip

./gunzip: Exec format error. Binary file not executable.

Am I missing something here ?

The database should be compressed though.

Fix: 

change:

${GZIP_CMD} < ${PREFIX}/bin/tripwire > /mnt/tripwire
${GZIP_CMD} < /usr/bin/gunzip > /mnt/gunzip

into:

cat ${PREFIX}/bin/tripwire > /mnt/tripwire
cat /usr/bin/gunzip > /mnt/gunzip
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2005-05-13 20:18:31 UTC
Responsible Changed
From-To: freebsd-ports-bugs->cy


Assign to maintainer.
Comment 2 Cy Schubert freebsd_committer freebsd_triage 2005-05-14 00:41:35 UTC
State Changed
From-To: open->analyzed

FreeBSD 2.X and 3.X supported compressed binaries. 4.X, 5.X, and 6.X do not. 
As a floppy cannot contain a database and the binaries the floppy creation 
code will be removed from the Makefile.
Comment 3 Cy Schubert freebsd_committer freebsd_triage 2005-05-14 00:50:10 UTC
State Changed
From-To: analyzed->closed

Tripwire no longer creates a floppy disk. Since FreeBSD no longer supports 
compressed binaries and since systems are larger these days, it is reasonable 
to expect the user to user Tripwire 2 or create a CDROM or DVD with the 
Tripwire binaries and database, along with some kind of tool (e.g. gpg) to 
verify the integrity of the binaries and database stored on the CDROM or 
DVD.