Bug 197305 - security/tripwire: POST-INSTALL fails
Summary: security/tripwire: POST-INSTALL fails
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Cy Schubert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-04 02:16 UTC by ohcaml
Modified: 2015-06-19 05:46 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (cy)


Attachments
cd /usr/ports/security/tripwire && make install (65.87 KB, text/plain)
2015-02-04 02:16 UTC, ohcaml
no flags Details
verbose build output (65.07 KB, text/plain)
2015-02-04 02:19 UTC, ohcaml
no flags Details
verbose build output (75.32 KB, text/plain)
2015-02-04 02:24 UTC, ohcaml
no flags Details
Proposed patch (4.11 KB, patch)
2015-02-04 05:27 UTC, Cy Schubert
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ohcaml 2015-02-04 02:16:59 UTC
Created attachment 152534 [details]
cd /usr/ports/security/tripwire && make install

OS: 10.1-RELEASE-p5 / amd64

Portsnap version: Wed Feb  4 01:14:19 UTC 2015

Options: default


-- Actual

'pkg-static: POST-INSTALL script failed'


Only /usr/local/etc/tripwire/twpol-FreeBSD.txt is created


-- Expected

- Create twpol.txt and twcfg.txt in /usr/local/etc/tripwire
- Create the tripwire directories
- `tripwire --init` runs and asks for a passphrase and site passphrase
- Create /usr/local/etc/tripwire/tw.{cfg,pol}


-- Attachments

- `make install` output
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-02-04 02:16:59 UTC
Auto-assigned to maintainer cy@FreeBSD.org
Comment 2 ohcaml 2015-02-04 02:19:06 UTC
Created attachment 152535 [details]
verbose build output

verbose build output (`set -x` added to Makefile-generated post-install script)

cd /usr/ports/security/tripwire && make install
Comment 3 ohcaml 2015-02-04 02:24:30 UTC
Created attachment 152536 [details]
verbose build output
Comment 4 Cy Schubert freebsd_committer freebsd_triage 2015-02-04 05:27:27 UTC
Created attachment 152541 [details]
Proposed patch

Try this patch.
Comment 5 Peter Thoenen 2015-06-19 03:38:43 UTC
Same deal, please modify importance to something other than "affects only me" [not sure the options there]
Comment 6 Peter Thoenen 2015-06-19 03:44:19 UTC
BTW patch attachment 152541 [details] fails:

account@sys:/usr/ports/security/tripwire # patch < patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|ndex: Makefile
|===================================================================
|--- Makefile   (revision 378389)
|+++ Makefile   (working copy)
--------------------------
Patching file Makefile using Plan A...
Hunk #1 succeeded at 3.
Hunk #2 succeeded at 91.
Hunk #3 succeeded at 128.
Hmm...  Ignoring the trailing garbage.
done

# make install clean
{cut a bunch of stuff }
===>  Installing for tripwire-2.4.2.2_2
===>  Checking if tripwire already installed
===>   Registering installation for tripwire-2.4.2.2_2
Installing tripwire-2.4.2.2_2...

Installer program for:
Tripwire(R) 2.4 Open Source

Copyright (C) 1998-2000 Tripwire (R) Security Systems, Inc.  Tripwire (R)
is a registered trademark of the Purdue Research Foundation and is
licensed exclusively to Tripwire (R) Security Systems, Inc.

Using configuration file ./install/install.cfg

Checking for programs specified in install configuration file....

/usr/sbin/sendmail -oi -t exists.  Continuing installation.

/usr/bin/vi exists.  Continuing installation.


----------------------------------------------
Verifying existence of binaries...

/usr/local/sbin/siggen found
/usr/local/sbin/tripwire found
/usr/local/sbin/twprint found
/usr/local/sbin/twadmin found

This program will copy Tripwire files to the following directories:

        TWBIN: /usr/local/sbin
        TWMAN: /usr/local/man
     TWPOLICY: /usr/local/etc/tripwire
     TWREPORT: /var/db/tripwire/report
         TWDB: /var/db/tripwire
 TWSITEKEYDIR: /usr/local/etc/tripwire
TWLOCALKEYDIR: /usr/local/etc/tripwire

CLOBBER is false.

----------------------------------------------
Creating directories...

pkg-static: POST-INSTALL script failed
===>  Cleaning for tripwire-2.4.2.2_2
Comment 7 Cy Schubert freebsd_committer freebsd_triage 2015-06-19 05:46:06 UTC
A patch has been committed. It works here at my site.