add integrit port;

--
integrit is an alternative to file integrity verification programs
like tripwire and aide. It helps you determine whether an intruder
has modified a computer system.

From: Margarida Sequeira <niness@devilness.org>
This commit is contained in:
brad 2002-11-17 00:15:19 +00:00
parent 485a58b889
commit 888c17f9e4
10 changed files with 247 additions and 0 deletions

View File

@ -0,0 +1,42 @@
# $OpenBSD: Makefile,v 1.1.1.1 2002/11/17 00:15:19 brad Exp $
COMMENT= "file integrity checker"
VERSION= 3.02.00
DISTNAME= integrit-${VERSION}
CATEGORIES= security
HOMEPAGE= http://integrit.sourceforge.net/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=integrit/}
MAINTAINER= Margarida Sequeira <niness@devilness.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WRKDIST= ${WRKDIR}/${DISTNAME:R}
CONFIGURE_STYLE= gnu
# GCC sparc64 bug.
.if ${MACHINE_ARCH} == "sparc64"
PATCH_LIST= patch-* gcc-*
.endif
ALL_TARGET= integrit utils
NO_REGRESS= Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/integrit
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/integrit
cd ${WRKSRC}/examples && ${INSTALL_DATA} README crontab install_db \
integrit_check viewreport ${PREFIX}/share/doc/integrit
cd ${WRKSRC}/examples && ${INSTALL_DATA} *.conf \
${PREFIX}/share/examples/integrit
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (integrit-3.02.00.tar.gz) = 062db01161187184f7c85f754ab6f7a5
RMD160 (integrit-3.02.00.tar.gz) = adc0766db91a3e9c33dfab0d4b39a2bddb54f2e7
SHA1 (integrit-3.02.00.tar.gz) = 785d3b052ed62acaeb5c4a162a30db50e89d6b31

View File

@ -0,0 +1,8 @@
--- dep.mak.orig Sat Nov 16 17:10:03 2002
+++ dep.mak Sat Nov 16 17:10:17 2002
@@ -40,4 +40,4 @@ xstrdup.o : ${srcdir}/xstrdup.c ${srcdi
md5.o : ${srcdir}/gnupg/md5.c ${srcdir}/cdb.h ${srcdir}/cdb_hash.h Makefile
${CC} ${CPPFLAGS} ${CFLAGS} ${DEFS} -o $@ -c ${srcdir}/gnupg/md5.c
sha1.o : ${srcdir}/gnupg/sha1.c ${srcdir}/cdb.h ${srcdir}/cdb_hash.h Makefile
- ${CC} ${CPPFLAGS} ${CFLAGS} ${DEFS} -o $@ -c ${srcdir}/gnupg/sha1.c
+ ${CC} ${CPPFLAGS} ${CFLAGS} ${DEFS} -O0 -o $@ -c ${srcdir}/gnupg/sha1.c

View File

@ -0,0 +1,27 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2002/11/17 00:15:19 brad Exp $
--- Makefile.in.orig Sun Sep 22 04:36:21 2002
+++ Makefile.in Sun Sep 22 04:39:40 2002
@@ -26,7 +26,7 @@ srcdir = @srcdir@
# VPATH = @srcdir@
CC = @CC@
PROG = integrit
-SBINDIR = @sbindir@
+SBINDIR = ${PREFIX}/sbin
INSTALL = @INSTALL@
OBJ = @OBJ@
ILIBOBJ = @ILIBOBJ@
@@ -84,9 +84,12 @@ $(srcdir)/dep.mak ::
fi; \
done; \
obj=`echo $$f | sed -e 's/^gnupg\///' -e 's/\.c\$$/.o/'`; \
- printf "%s\n\t%s\n" \
+ if [ "$obj" = "sha1.o" ]; then \
+ extra_flags="-O0"; \
+ fi; \
+ printf "%s\n\t%s\n" \
"$$obj : \$${srcdir}/$$f $$hdeps Makefile" \
- "${COMPILE} \$${srcdir}/$$f"; \
+ "${COMPILE} \$${srcdir}/$$f $extra_flags"; \
done >> dep.mak
include $(srcdir)/dep.mak

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-doc_Makefile_in,v 1.1.1.1 2002/11/17 00:15:19 brad Exp $
--- doc/Makefile.in.orig Tue Aug 27 04:55:12 2002
+++ doc/Makefile.in Sun Sep 15 22:31:01 2002
@@ -23,11 +23,11 @@ exec_prefix = @exec_prefix@
srcdir = @srcdir@
# we aren't using VPATH
# VPATH = @srcdir@
-MANDIR = @mandir@
+MANDIR = ${PREFIX}/man
INSTALL = @INSTALL@
INSTALL_INFO = install-info
INFO_FILES = integrit.info
-infodir = @infodir@
+infodir = ${PREFIX}/info
# target for developers puts info file in srcdir
#

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-utils_Makefile_in,v 1.1.1.1 2002/11/17 00:15:19 brad Exp $
--- utils/Makefile.in.orig Sun Sep 15 22:27:21 2002
+++ utils/Makefile.in Sun Sep 15 22:28:27 2002
@@ -29,8 +29,8 @@ RM = @RM@
PROGS = i-viewdb i-ls
LS_OBJ = ls.o
VIEWDB_OBJ = viewdb.o
-SBINDIR = @sbindir@
-BINDIR = @bindir@
+SBINDIR = ${PREFIX}/sbin
+BINDIR = ${PREFIX}/bin
INSTALL = @INSTALL@
CPPFLAGS = -I.. -I$(srcdir)/.. @CPPFLAGS@
CFLAGS = @CFLAGS@

View File

@ -0,0 +1,25 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.1.1.1 2002/11/17 00:15:19 brad Exp $
#
# integrit de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${SYSCONFDIR}/integrit
if [ -d $CONFIG_DIR ]; then
echo
echo "+------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| this step as root:"
echo "|"
echo "| rm -rf $CONFIG_DIR"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future."
echo "+------------"
echo
fi
exit 0

View File

@ -0,0 +1,26 @@
integrit is an alternative to file integrity verification programs
like tripwire and aide. It helps you determine whether an intruder
has modified a computer system.
Its features include:
* Small memory footprint during runtime.
This is a big deal because a machine that is important enough to
protect is probably doing important things. Since the other
processes are important, integrit doesn't step on anyone's toes:
its conservative with memory.
* Simple, modular design and implementation means a smaller learning
curve and better potential for open-source development.
* Uses up-to-date cryptographic algorithms from gnupg.
* Designed with unattended use in mind, e.g., integrit includes
the MD5 checksum of newly generated databases in its report.
* Intuitive cascading rulesets for the paths listed in the
configuration file.
* An option to reset the access times of selected files or directory
trees after doing checksums.
* Output format can be XML or an easy-to-scan human-readable format.
* Simultaneous check and update: integrit can generate a new database
while running a check against an old database.
* Distribution contains standalone auxiliary programs for convenience
that you can safely ignore or else use when needed.
WWW: ${HOMEPAGE}

View File

@ -0,0 +1,65 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1.1.1 2002/11/17 00:15:19 brad Exp $
#
# Pre/post-installation setup of integrit
# exit on errors, use a sane path and install prefix
#
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${SYSCONFDIR}/integrit
SAMPLE_CONFIG_DIR=$PREFIX/share/examples/integrit
do_notice()
{
echo
echo "+------------"
echo "| The existing $1 configuration files in $CONFIG_DIR,"
echo "| have NOT been changed. You may want to compare them to the"
echo "| current sample files in $SAMPLE_CONFIG_DIR,"
echo "| and update your configuration as needed."
echo "+------------"
}
do_install()
{
install -d -o root -g wheel -m 755 $CONFIG_DIR
install -o root -g wheel -m 644 $SAMPLE_CONFIG_DIR/*.conf ${CONFIG_DIR}
echo
echo "+------------"
echo "| The $1 configuration files have been installed into"
echo "| $CONFIG_DIR. Please view these files and change the"
echo "| configuration to meet your needs."
echo "+------------"
}
# verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
if [ ! -d $CONFIG_DIR ]; then
do_install $1
elif [ ! -f $CONFIG_DIR/*.conf ]; then
do_install $1
else
do_notice $1
fi
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

View File

@ -0,0 +1,20 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2002/11/17 00:15:19 brad Exp $
bin/i-ls
@unexec install-info --delete --info-dir=%D/info %D/info/integrit.info
info/integrit.info
@exec install-info --info-dir=%D/info %D/info/integrit.info
man/man1/i-ls.1
man/man1/i-viewdb.1
man/man1/integrit.1
sbin/i-viewdb
sbin/integrit
share/doc/integrit/README
share/doc/integrit/crontab
share/doc/integrit/install_db
share/doc/integrit/integrit_check
share/doc/integrit/viewreport
share/examples/integrit/root.conf
share/examples/integrit/src.conf
share/examples/integrit/usr.conf
@dirrm share/examples/integrit
@dirrm share/doc/integrit