From hselasky@c2i.net  Fri May 13 12:54:45 2005
Return-Path: <hselasky@c2i.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 55A5916A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 13 May 2005 12:54:45 +0000 (GMT)
Received: from swip.net (mailfe05.swip.net [212.247.154.129])
	by mx1.FreeBSD.org (Postfix) with ESMTP id AF7FF43D55
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 13 May 2005 12:54:44 +0000 (GMT)
	(envelope-from hselasky@c2i.net)
Received: from mp-216-39-169.daxnet.no ([193.216.39.169] verified)
  by mailfe05.swip.net (CommuniGate Pro SMTP 4.3c5)
  with ESMTP id 168264790 for FreeBSD-gnats-submit@freebsd.org; Fri, 13 May 2005 14:54:43 +0200
Message-Id: <200505131455.23888.hselasky@c2i.net>
Date: Fri, 13 May 2005 14:55:23 +0200
From: Hans Petter Selasky <hselasky@c2i.net>
Reply-To: hselasky@c2i.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: problem in Tripwire Makefile

>Number:         80978
>Category:       ports
>Synopsis:       problem in Tripwire Makefile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    cy
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 13 13:00:13 GMT 2005
>Closed-Date:    Fri May 13 23:53:10 GMT 2005
>Last-Modified:  Fri May 13 23:53:10 GMT 2005
>Originator:     HPS
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD 6.0-CURRENT FreeBSD 6.0-CURRENT #45: Mon Mar 21 15:40:17 CET 
2005 root@:/usr/obj/usr/src/sys/custom i386

>Description:

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.

>How-To-Repeat:

>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
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->cy 
Responsible-Changed-By: thierry 
Responsible-Changed-When: Fri May 13 19:18:31 GMT 2005 
Responsible-Changed-Why:  

Assign to maintainer. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=80978 
State-Changed-From-To: open->analyzed 
State-Changed-By: cy 
State-Changed-When: Fri May 13 23:41:35 GMT 2005 
State-Changed-Why:  
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. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80978 
State-Changed-From-To: analyzed->closed 
State-Changed-By: cy 
State-Changed-When: Fri May 13 23:50:10 GMT 2005 
State-Changed-Why:  
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. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80978 
>Unformatted:
