mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-11 15:00:34 +00:00
tripwire: Remove recipe
Remove the tripwire recipe since it has been disabled since May 2021, and upstream has shown no activity since 2018. Signed-off-by: Scott Murray <scott.murray@konsulko.com>
This commit is contained in:
committed by
Marta Rybczynska
parent
a126f7dd59
commit
1e08a04e55
@@ -54,4 +54,3 @@ RECIPE_MAINTAINER:pn-samhain = "Scott Murray <scott.murray@konsulko.com>"
|
||||
RECIPE_MAINTAINER:pn-smack = "Scott Murray <scott.murray@konsulko.com>"
|
||||
RECIPE_MAINTAINER:pn-sssd = "Scott Murray <scott.murray@konsulko.com>"
|
||||
RECIPE_MAINTAINER:pn-suricata = "Scott Murray <scott.murray@konsulko.com>"
|
||||
RECIPE_MAINTAINER:pn-tripwire = "Scott Murray <scott.murray@konsulko.com>"
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
# Copyright (C) 2019 Armin Kuster <akuster808@gmail.com>
|
||||
#
|
||||
import re
|
||||
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
|
||||
class TripwireTest(OERuntimeTestCase):
|
||||
|
||||
@OEHasPackage(['tripwire'])
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
def test_tripwire_help(self):
|
||||
status, output = self.target.run('tripwire --help')
|
||||
msg = ('tripwire command does not work as expected. '
|
||||
'Status and output:%s and %s' % (status, output))
|
||||
self.assertEqual(status, 8, msg = msg)
|
||||
|
||||
@OETestDepends(['tripwire.TripwireTest.test_tripwire_help'])
|
||||
def test_tripwire_twinstall(self):
|
||||
status, output = self.target.run('/etc/tripwire/twinstall.sh')
|
||||
match = re.search('The database was successfully generated.', output)
|
||||
if not match:
|
||||
msg = ('/etc/tripwire/twinstall.sh failed. '
|
||||
'Status and output:%s and %s' % (status, output))
|
||||
self.assertEqual(status, 0, msg = msg)
|
||||
|
||||
@OETestDepends(['tripwire.TripwireTest.test_tripwire_twinstall'])
|
||||
def test_tripwire_twadmin(self):
|
||||
status, output = self.target.run('twadmin --create-cfgfile --cfgfile /etc/tripwire/twcfg.enc --site-keyfile /etc/tripwire/site.key -Q tripwire /etc/tripwire/twcfg.txt')
|
||||
status, output = self.target.run('twadmin --create-polfile --cfgfile /etc/tripwire/twcfg.enc --polfile /etc/tripwire/twpol.enc --site-keyfile /etc/tripwire/site.key -Q tripwire /etc/tripwire/twpol.txt')
|
||||
match = re.search('Wrote policy file: /etc/tripwire/twpol.enc', output)
|
||||
if not match:
|
||||
msg = ('twadmin --create-profile ; failed. '
|
||||
'Status and output:%s and %s' % (status, output))
|
||||
self.assertEqual(status, 0, msg = msg)
|
||||
|
||||
@OETestDepends(['tripwire.TripwireTest.test_tripwire_twadmin'])
|
||||
def test_tripwire_init(self):
|
||||
status, hostname = self.target.run('hostname')
|
||||
status, output = self.target.run('tripwire --init --cfgfile /etc/tripwire/twcfg.enc --polfile /etc/tripwire/tw.pol --site-keyfile /etc/tripwire/site.key --local-keyfile /etc/tripwire/%s-local.key -P tripwire' % hostname)
|
||||
match = re.search('The database was successfully generated.', output)
|
||||
if not match:
|
||||
msg = ('tripwire --init; Failed for host: %s. '
|
||||
'Status and output:%s and %s' % (hostname, status, output))
|
||||
self.assertEqual(status, 0, msg = msg)
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
./twtest.pl
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/bin/sh
|
||||
HOST_NAME=`uname -n`
|
||||
if [ ! -e /var/lib/tripwire/${HOST_NAME}.twd ] ; then
|
||||
echo "**** Error: Tripwire database for ${HOST_NAME} not found. ****"
|
||||
echo "**** Run "/etc/tripwire/twinstall.sh" and/or "tripwire --init". ****"
|
||||
else
|
||||
test -f /etc/tripwire/tw.cfg && /usr/sbin/tripwire --check
|
||||
fi
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
HOST_NAME=`uname -n`
|
||||
if [ ! -e /var/lib/tripwire/${HOST_NAME}.twd ] ; then
|
||||
echo "**** WARNING: Tripwire database for ${HOST_NAME} not found. ****"
|
||||
echo "**** Run "/etc/tripwire/twinstall.sh" and/or "tripwire --init". ****"
|
||||
# Note: /etc/tripwire/twinstall.sh creates and initializes tripwire
|
||||
# database (i.e tripwire --init).
|
||||
# Example: . /etc/tripwire/twinstall.sh 2> /dev/null
|
||||
fi
|
||||
@@ -1,69 +0,0 @@
|
||||
Post-Installation Instructions
|
||||
1. Run the configuration script: /etc/tripwire/twinstall.sh to sign these files. This script walks you through the processes of setting passphrases and signing the Tripwire policy and configuration files.
|
||||
Note: Once encoded and signed, the configuration file should not be renamed or moved.
|
||||
2. Initialize the Tripwire database file. (/usr/sbin/tripwire--init)
|
||||
3. Run the first integrity check. (/usr/sbin/tripwire--check)
|
||||
4. Edit the configuration file (twcfg.txt) with a text editor, if desired.
|
||||
5. Edit the policy file (twpol.txt) with a text editor, if desired.
|
||||
|
||||
Note: If you plan to modify the policy file, we recommend you do so before running the configuration script. If you modify the policy file after running the configuration script, you must re-run the configuration file before initializing the database file.
|
||||
|
||||
Modifying the Policy File
|
||||
You can specify how Tripwire software checks your system in the Tripwire policy file (twpol.txt). A default policy file is included in the Tripwire software installation. We recommend you tailor this policy file to fit your particular system. Tailoring the policy file greatly increases Tripwire software's ability to ensure the integrity of your system.
|
||||
|
||||
Locate the default policy file at /etc/tripwire/twpol.txt. An example policy file (located at /usr/doc/tripwire-VER#-REL#/policyguide.txt) is included to help you learn the policy language. Read the sample policy file and the comments in the sample policy file to learn the policy language.
|
||||
|
||||
After you modify the policy file, follow the Post-Installation Instructions (run the configuration script). This script signs the modified policy file and renames it to tw.pol. This is the active policy file that runs as part of the Tripwire software.
|
||||
|
||||
Selecting Passphrases
|
||||
Tripwire files are signed or encrypted using site or local keys. These keys are protected by passphrases. When selecting passphrases, the following recommendations apply:
|
||||
Use at least eight alphanumeric and symbolic characters for each passphrase. The maximum length of a passphrase is 1023 characters. Quotes should not be used as passphrase characters.
|
||||
|
||||
Assign a unique passphrase for the site key. The site key passphrase protects the site key, which is used to sign Tripwire software configuration and policy files. Assign a unique passphrase for the local key. The local key signs Tripwire database files. The local key may sign the Tripwire report files also.
|
||||
|
||||
Store the passphrases in a secure location. There is no way to remove encryption from a signed file if you forget your passphrase. If you forget the passphrases, the files are unusable. In that case you must reinitialize the baseline database.
|
||||
|
||||
Initializing the Database
|
||||
In Database Initialization mode, Tripwire software builds a database of filesystem objects based on the rules in the policy file. This database serves as the baseline for integrity checks. The syntax for Database Initialization mode is:
|
||||
tripwire --init
|
||||
|
||||
Running an Integrity Check
|
||||
The Integrity Check mode compares the current file system objects with their properties recorded in the Tripwire database. Violations are printed to stdout. The report file is saved and can later be accessed by twprint. An email option enables you to send email. The syntax for Integrity Check mode is:
|
||||
tripwire --check
|
||||
|
||||
Printing Reports - twprint Print Report Mode
|
||||
The twprint --print-report mode prints the contents of a Tripwire report. If you do not specify a report with the --twrfile or -r command-line argument, the default report file specified by the configuration file REPORTFILE variable is used.
|
||||
Example: On a machine named LIGHTHOUSE, the command would be:
|
||||
./twprint -m r --twrfile LIGHTHOUSE-19990622-021212.twr
|
||||
|
||||
Updating the Database after an Integrity Check
|
||||
Database Update mode enables you to update the Tripwire database after an integrity check if you determine that the violations discovered are valid. This update process saves time by enabling you to update the database without having to re-initialize it. It also enables selective updating, which cannot be done through re-initialization. The syntax for Database Update mode is:
|
||||
tripwire --update
|
||||
|
||||
Updating the Policy File
|
||||
Change the way that Tripwire software scans the system by changing the rules in the policy file. You can then update the database without a complete re-initialization. This saves a significant amount of time and preserves security by keeping the policy file synchronized with the database it uses. The syntax for Policy Update mode is:
|
||||
tripwire --update-policy
|
||||
|
||||
Testing email functions
|
||||
Test mode tests the software's email notification system, using the settings currently specified in the configuration file. The syntax for Email Test Reporting mode is:
|
||||
tripwire --test
|
||||
|
||||
Tripwire Components
|
||||
The policy file begins as a text file containing comments, rules, directives, and variables. These dictate the way Tripwire software checks your system. Each rule in the policy file specifies a system object to be monitored. Rules also describe which changes to the object to report, and which to ignore.
|
||||
|
||||
System objects are the files and directories you wish to monitor. Each object is identified by an object name. A property refers to a single characteristic of an object that Tripwire software can monitor. Directives control conditional processing of sets of rules in a policy file. During installation, the text policy file is encrypted and renamed, and becomes the active policy file.
|
||||
|
||||
The database file is an important component of Tripwire software. When first installed, Tripwire software uses the policy file rules to create the database file. The database file is a baseline "snapshot" of the system in a known secure state. Tripwire software compares this baseline against the current system to determine what changes have occurred. This is an integrity check.
|
||||
|
||||
When you perform an integrity check, Tripwire software produces report files. Report files summarize any changes that violated the policy file rules during the integrity check. You can view the report file in a variety of formats, at varying levels of detail.
|
||||
|
||||
The Tripwire configuration file stores system-specific information, such as the location of Tripwire data files. Tripwire software generates some of the configuration file information during installation. The system administrator can change parameters in the configuration file at any time. The configuration file variables POLFILE, DBFILE, REPORTFILE, SITEKEYFILE, and LOCALKEYFILE specify where the policy file, database file, report files, and site and local key files reside. These variables must be defined or the configuration file is invalid. If any of these variables are undefined, an error occurs on execution of Tripwire software and the program exits.
|
||||
|
||||
Tripwire Help
|
||||
All Tripwire commands support the help arguments. Example: To get help with Create Configuration File mode, type: ./twadmin --help --create-cfgfile
|
||||
|
||||
-? Display usage and version information
|
||||
--help Display all command modes
|
||||
--help all Display help for all command modes
|
||||
--help [mode] Display help for current command mode
|
||||
--version Display version information
|
||||
@@ -1,15 +0,0 @@
|
||||
ROOT =/usr/sbin
|
||||
POLFILE =/etc/tripwire/tw.pol
|
||||
DBFILE =/var/lib/tripwire/$(HOSTNAME).twd
|
||||
REPORTFILE =/var/lib/tripwire/report/$(HOSTNAME)-$(DATE).twr
|
||||
SITEKEYFILE =/etc/tripwire/site.key
|
||||
LOCALKEYFILE =/etc/tripwire/$(HOSTNAME)-local.key
|
||||
EDITOR =/usr/bin/nano
|
||||
LATEPROMPTING =false
|
||||
LOOSEDIRECTORYCHECKING =false
|
||||
MAILNOVIOLATIONS =true
|
||||
EMAILREPORTLEVEL =3
|
||||
REPORTLEVEL =3
|
||||
MAILMETHOD =SENDMAIL
|
||||
SYSLOGREPORTING =false
|
||||
MAILPROGRAM =/usr/lib/sendmail -t
|
||||
@@ -1,320 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
########################################################################
|
||||
########################################################################
|
||||
##
|
||||
## Tripwire(R) 2.3 for LINUX(R) Post-RPM installation script
|
||||
##
|
||||
## Copyleft information contained in footer
|
||||
##
|
||||
########################################################################
|
||||
########################################################################
|
||||
|
||||
##=======================================================
|
||||
## Setup
|
||||
##=======================================================
|
||||
|
||||
# We can assume all the correct tools are in place because the
|
||||
# RPM installed, didn't it?
|
||||
|
||||
##-------------------------------------------------------
|
||||
## Set HOST_NAME variable
|
||||
##-------------------------------------------------------
|
||||
HOST_NAME='localhost'
|
||||
if uname -n > /dev/null 2> /dev/null ; then
|
||||
HOST_NAME=`uname -n`
|
||||
fi
|
||||
|
||||
##-------------------------------------------------------
|
||||
## Program variables - edited by RPM during initial install
|
||||
##-------------------------------------------------------
|
||||
|
||||
# Site Passphrase variable
|
||||
TW_SITE_PASS="tripwire"
|
||||
|
||||
# Complete path to site key
|
||||
SITE_KEY="/etc/tripwire/site.key"
|
||||
|
||||
# Local Passphrase variable
|
||||
TW_LOCAL_PASS="tripwire"
|
||||
|
||||
# Complete path to local key
|
||||
LOCAL_KEY="/etc/tripwire/${HOST_NAME}-local.key"
|
||||
|
||||
# If clobber==true, overwrite files; if false, do not overwrite files.
|
||||
CLOBBER="false"
|
||||
|
||||
# If prompt==true, ask for confirmation before continuing with install.
|
||||
PROMPT="true"
|
||||
|
||||
# Name of twadmin executeable
|
||||
TWADMIN="twadmin"
|
||||
|
||||
# Path to twadmin executeable
|
||||
TWADMPATH=/usr/sbin
|
||||
|
||||
# Path to configuration directory
|
||||
CONF_PATH="/etc/tripwire"
|
||||
|
||||
# Name of clear text policy file
|
||||
TXT_POL=$CONF_PATH/twpol.txt
|
||||
|
||||
# Name of clear text configuration file
|
||||
TXT_CFG=$CONF_PATH/twcfg.txt
|
||||
|
||||
# Name of encrypted configuration file
|
||||
CONFIG_FILE=$CONF_PATH/tw.cfg
|
||||
|
||||
# Path of the final Tripwire policy file (signed)
|
||||
SIGNED_POL=`grep POLFILE $TXT_CFG | sed -e 's/^.*=\(.*\)/\1/'`
|
||||
|
||||
|
||||
##=======================================================
|
||||
## Create Key Files
|
||||
##=======================================================
|
||||
|
||||
##-------------------------------------------------------
|
||||
## If user has to enter a passphrase, give some
|
||||
## advice about what is appropriate.
|
||||
##-------------------------------------------------------
|
||||
|
||||
if [ -z "$TW_SITE_PASS" ] || [ -z "$TW_LOCAL_PASS" ]; then
|
||||
cat << END_OF_TEXT
|
||||
|
||||
----------------------------------------------
|
||||
The Tripwire site and local passphrases are used to
|
||||
sign a variety of files, such as the configuration,
|
||||
policy, and database files.
|
||||
|
||||
Passphrases should be at least 8 characters in length
|
||||
and contain both letters and numbers.
|
||||
|
||||
See the Tripwire manual for more information.
|
||||
END_OF_TEXT
|
||||
fi
|
||||
|
||||
##=======================================================
|
||||
## Generate keys.
|
||||
##=======================================================
|
||||
|
||||
echo
|
||||
echo "----------------------------------------------"
|
||||
echo "Creating key files..."
|
||||
|
||||
##-------------------------------------------------------
|
||||
## Site key file.
|
||||
##-------------------------------------------------------
|
||||
|
||||
# If clobber is true, and prompting is off (unattended operation)
|
||||
# and the key file already exists, remove it. Otherwise twadmin
|
||||
# will prompt with an "are you sure?" message.
|
||||
|
||||
if [ "$CLOBBER" = "true" ] && [ "$PROMPT" = "false" ] && [ -f "$SITE_KEY" ] ; then
|
||||
rm -f "$SITE_KEY"
|
||||
fi
|
||||
|
||||
if [ -f "$SITE_KEY" ] && [ "$CLOBBER" = "false" ] ; then
|
||||
echo "The site key file \"$SITE_KEY\""
|
||||
echo 'exists and will not be overwritten.'
|
||||
else
|
||||
cmdargs="--generate-keys --site-keyfile \"$SITE_KEY\""
|
||||
if [ -n "$TW_SITE_PASS" ] ; then
|
||||
cmdargs="$cmdargs --site-passphrase \"$TW_SITE_PASS\""
|
||||
fi
|
||||
eval "\"$TWADMPATH/$TWADMIN\" $cmdargs"
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "Error: site key generation failed"
|
||||
exit 1
|
||||
else chmod 640 "$SITE_KEY"
|
||||
fi
|
||||
fi
|
||||
|
||||
##-------------------------------------------------------
|
||||
## Local key file.
|
||||
##-------------------------------------------------------
|
||||
|
||||
# If clobber is true, and prompting is off (unattended operation)
|
||||
# and the key file already exists, remove it. Otherwise twadmin
|
||||
# will prompt with an "are you sure?" message.
|
||||
|
||||
if [ "$CLOBBER" = "true" ] && [ "$PROMPT" = "false" ] && [ -f "$LOCAL_KEY" ] ; then
|
||||
rm -f "$LOCAL_KEY"
|
||||
fi
|
||||
|
||||
if [ -f "$LOCAL_KEY" ] && [ "$CLOBBER" = "false" ] ; then
|
||||
echo "The site key file \"$LOCAL_KEY\""
|
||||
echo 'exists and will not be overwritten.'
|
||||
else
|
||||
cmdargs="--generate-keys --local-keyfile \"$LOCAL_KEY\""
|
||||
if [ -n "$TW_LOCAL_PASS" ] ; then
|
||||
cmdargs="$cmdargs --local-passphrase \"$TW_LOCAL_PASS\""
|
||||
fi
|
||||
eval "\"$TWADMPATH/$TWADMIN\" $cmdargs"
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "Error: local key generation failed"
|
||||
exit 1
|
||||
else chmod 640 "$LOCAL_KEY"
|
||||
fi
|
||||
fi
|
||||
|
||||
##=======================================================
|
||||
## Sign the Configuration File
|
||||
##=======================================================
|
||||
|
||||
echo
|
||||
echo "----------------------------------------------"
|
||||
echo "Signing configuration file..."
|
||||
|
||||
##-------------------------------------------------------
|
||||
## If noclobber, then backup any existing config file.
|
||||
##-------------------------------------------------------
|
||||
|
||||
if [ "$CLOBBER" = "false" ] && [ -s "$CONFIG_FILE" ] ; then
|
||||
backup="${CONFIG_FILE}.$$.bak"
|
||||
echo "Backing up $CONFIG_FILE"
|
||||
echo " to $backup"
|
||||
`mv "$CONFIG_FILE" "$backup"`
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "Error: backup of configuration file failed."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
##-------------------------------------------------------
|
||||
## Build command line.
|
||||
##-------------------------------------------------------
|
||||
|
||||
cmdargs="--create-cfgfile"
|
||||
cmdargs="$cmdargs --cfgfile \"$CONFIG_FILE\""
|
||||
cmdargs="$cmdargs --site-keyfile \"$SITE_KEY\""
|
||||
if [ -n "$TW_SITE_PASS" ] ; then
|
||||
cmdargs="$cmdargs --site-passphrase \"$TW_SITE_PASS\""
|
||||
fi
|
||||
|
||||
##-------------------------------------------------------
|
||||
## Sign the file.
|
||||
##-------------------------------------------------------
|
||||
|
||||
eval "\"$TWADMPATH/$TWADMIN\" $cmdargs \"$TXT_CFG\""
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "Error: signing of configuration file failed."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Set the rights properly
|
||||
chmod 640 "$CONFIG_FILE"
|
||||
|
||||
##-------------------------------------------------------
|
||||
## We keep the cleartext version around.
|
||||
##-------------------------------------------------------
|
||||
|
||||
cat << END_OF_TEXT
|
||||
|
||||
A clear-text version of the Tripwire configuration file
|
||||
$TXT_CFG
|
||||
has been preserved for your inspection. It is recommended
|
||||
that you delete this file manually after you have examined it.
|
||||
|
||||
END_OF_TEXT
|
||||
|
||||
##=======================================================
|
||||
## Sign tripwire policy file.
|
||||
##=======================================================
|
||||
|
||||
echo
|
||||
echo "----------------------------------------------"
|
||||
echo "Signing policy file..."
|
||||
|
||||
##-------------------------------------------------------
|
||||
## If noclobber, then backup any existing policy file.
|
||||
##-------------------------------------------------------
|
||||
|
||||
if [ "$CLOBBER" = "false" ] && [ -s "$POLICY_FILE" ] ; then
|
||||
backup="${POLICY_FILE}.$$.bak"
|
||||
echo "Backing up $POLICY_FILE"
|
||||
echo " to $backup"
|
||||
mv "$POLICY_FILE" "$backup"
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "Error: backup of policy file failed."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
##-------------------------------------------------------
|
||||
## Build command line.
|
||||
##-------------------------------------------------------
|
||||
|
||||
cmdargs="--create-polfile"
|
||||
cmdargs="$cmdargs --cfgfile \"$CONFIG_FILE\""
|
||||
cmdargs="$cmdargs --site-keyfile \"$SITE_KEY\""
|
||||
if [ -n "$TW_SITE_PASS" ] ; then
|
||||
cmdargs="$cmdargs --site-passphrase \"$TW_SITE_PASS\""
|
||||
fi
|
||||
|
||||
##-------------------------------------------------------
|
||||
## Sign the file.
|
||||
##-------------------------------------------------------
|
||||
|
||||
eval "\"$TWADMPATH/$TWADMIN\" $cmdargs \"$TXT_POL\""
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "Error: signing of policy file failed."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Set the proper rights on the newly signed policy file.
|
||||
chmod 0640 "$SIGNED_POL"
|
||||
|
||||
##-------------------------------------------------------
|
||||
## We keep the cleartext version around.
|
||||
##-------------------------------------------------------
|
||||
|
||||
cat << END_OF_TEXT
|
||||
|
||||
A clear-text version of the Tripwire policy file
|
||||
$TXT_POL
|
||||
has been preserved for your inspection. This implements
|
||||
a minimal policy, intended only to test essential
|
||||
Tripwire functionality. You should edit the policy file
|
||||
to describe your system, and then use twadmin to generate
|
||||
a new signed copy of the Tripwire policy.
|
||||
|
||||
END_OF_TEXT
|
||||
|
||||
# Initialize tripwire database
|
||||
/usr/sbin/tripwire --init --cfgfile $CONFIG_FILE --site-keyfile $SITE_KEY \
|
||||
--local-passphrase $TW_LOCAL_PASS 2> /dev/null
|
||||
|
||||
########################################################################
|
||||
########################################################################
|
||||
#
|
||||
# TRIPWIRE GPL NOTICES
|
||||
#
|
||||
# The developer of the original code and/or files is Tripwire, Inc.
|
||||
# Portions created by Tripwire, Inc. are copyright 2000 Tripwire, Inc.
|
||||
# Tripwire is a registered trademark of Tripwire, Inc. All rights reserved.
|
||||
#
|
||||
# This program is free software. The contents of this file are subject to
|
||||
# the terms of the GNU General Public License as published by the Free
|
||||
# Software Foundation; either version 2 of the License, or (at your option)
|
||||
# any later version. You may redistribute it and/or modify it only in
|
||||
# compliance with the GNU General Public License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful. However,
|
||||
# this program is distributed "AS-IS" WITHOUT ANY WARRANTY; INCLUDING THE
|
||||
# IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# Please see the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Nothing in the GNU General Public License or any other license to use the
|
||||
# code or files shall permit you to use Tripwire's trademarks,
|
||||
# service marks, or other intellectual property without Tripwire's
|
||||
# prior written consent.
|
||||
#
|
||||
# If you have any questions, please contact Tripwire, Inc. at either
|
||||
# info@tripwire.org or www.tripwire.org.
|
||||
#
|
||||
########################################################################
|
||||
########################################################################
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,75 +0,0 @@
|
||||
SUMMARY = "Tripwire: A system integrity assessment tool (IDS)"
|
||||
DESCRIPTION = "Open Source Tripwire® software is a security and data \
|
||||
integrity tool useful for monitoring and alerting on specific file change(s) on a range of systems"
|
||||
HOMEPAGE = "http://sourceforge.net/projects/tripwire"
|
||||
SECTION = "security Monitor/Admin"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=1c069be8dbbe48e89b580ab4ed86c127"
|
||||
|
||||
SRCREV = "6e64a9e5b70a909ec439bc5a099e3fcf38c614b0"
|
||||
|
||||
SRC_URI = "\
|
||||
git://github.com/Tripwire/tripwire-open-source.git;branch=master;protocol=https \
|
||||
file://tripwire.cron \
|
||||
file://tripwire.sh \
|
||||
file://tripwire.txt \
|
||||
file://twcfg.txt \
|
||||
file://twinstall.sh \
|
||||
file://twpol-yocto.txt \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
inherit autotools-brokensep update-rc.d ptest
|
||||
|
||||
INITSCRIPT_NAME = "tripwire"
|
||||
INITSCRIPT_PARAMS = "start 40 S ."
|
||||
TRIPWIRE_HOST = "${HOST_SYS}"
|
||||
TRIPWIRE_TARGET = "${TARGET_SYS}"
|
||||
|
||||
CXXFLAGS += "-fno-strict-aliasing"
|
||||
EXTRA_OECONF = "--disable-openssl --enable-static --sysconfdir=/etc/tripwire"
|
||||
|
||||
do_install () {
|
||||
install -d ${D}${libdir} ${D}${datadir} ${D}${base_libdir}
|
||||
install -d ${D}${sysconfdir} ${D}${mandir} ${D}${sbindir}
|
||||
install -d ${D}${sysconfdir}/${PN}
|
||||
install -d ${D}${localstatedir}/lib/${PN} ${D}${localstatedir}/lib/${BPN}/report
|
||||
install -d ${D}${mandir}/man4 ${D}${mandir}/man5 ${D}${mandir}/man8
|
||||
install -d ${D}${docdir}/${BPN} ${D}${docdir}/${BPN}/templates
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
|
||||
install -m 0755 ${S}/bin/* ${D}${sbindir}
|
||||
install -m 0644 ${S}/lib/* ${D}${base_libdir}
|
||||
install -m 0644 ${S}/lib/* ${D}${localstatedir}/lib/${PN}
|
||||
install -m 0755 ${UNPACKDIR}/tripwire.cron ${D}${sysconfdir}
|
||||
install -m 0755 ${UNPACKDIR}/tripwire.sh ${D}${sysconfdir}/init.d/tripwire
|
||||
install -m 0755 ${UNPACKDIR}/twinstall.sh ${D}${sysconfdir}/${PN}
|
||||
install -m 0644 ${UNPACKDIR}/twpol-yocto.txt ${D}${sysconfdir}/${PN}/twpol.txt
|
||||
install -m 0644 ${UNPACKDIR}/twcfg.txt ${D}${sysconfdir}/${PN}
|
||||
|
||||
install -m 0644 ${S}/man/man4/* ${D}${mandir}/man4
|
||||
install -m 0644 ${S}/man/man5/* ${D}${mandir}/man5
|
||||
install -m 0644 ${S}/man/man8/* ${D}${mandir}/man8
|
||||
rm ${D}${mandir}/man*/Makefile*
|
||||
install -m 0644 ${S}/policy/templates/* ${D}${docdir}/${BPN}/templates
|
||||
install -m 0644 ${S}/policy/*txt ${D}${docdir}/${BPN}
|
||||
install -m 0644 ${S}/COPYING ${D}${docdir}/${BPN}
|
||||
install -m 0644 ${S}/TRADEMARK ${D}${docdir}/${BPN}
|
||||
install -m 0644 ${UNPACKDIR}/tripwire.txt ${D}${docdir}/${BPN}
|
||||
}
|
||||
|
||||
do_install_ptest:append () {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -a ${S}/src/test-harness/* ${D}${PTEST_PATH}
|
||||
sed -i -e 's@../../../../bin@${sbindir}@' ${D}${PTEST_PATH}/twtools.pm
|
||||
}
|
||||
|
||||
FILES:${PN} += "${libdir} ${docdir}/${PN}/*"
|
||||
FILES:${PN}-dbg += "${sysconfdir}/${PN}/.debug"
|
||||
FILES:${PN}-staticdev += "${localstatedir}/lib/${PN}/lib*.a"
|
||||
FILES:${PN}-ptest += "${PTEST_PATH}/tests "
|
||||
|
||||
RDEPENDS:${PN} += " perl nano msmtp cronie"
|
||||
RDEPENDS:${PN}-ptest = " perl lib-perl perl-modules "
|
||||
|
||||
SKIP_RECIPE[tripwire] ?= "Upsteram project appears to be abondoned, fails to build with gcc11"
|
||||
Reference in New Issue
Block a user