You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
2.5 KiB
73 lines
2.5 KiB
18 years ago
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||
|
#
|
||
|
# Filename: package/.../samhain/samhain.conf
|
||
|
# Copyright (C) 2006 The OpenSDE Project
|
||
|
# Copyright (C) 2004 - 2006 The T2 SDE Project
|
||
|
#
|
||
|
# More information can be found in the files COPYING and README.
|
||
|
#
|
||
|
# This program is free software; you can redistribute it and/or modify
|
||
|
# it under the terms of the GNU General Public License as published by
|
||
|
# the Free Software Foundation; version 2 of the License. A copy of the
|
||
|
# GNU General Public License can be found in the file COPYING.
|
||
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
||
|
|
||
|
# removing some not supported configure options
|
||
|
CONFOPT_RM_REGEX="bindir libdir datadir includedir infodir"
|
||
|
for x in $CONFOPT_RM_REGEX; do
|
||
|
var_remove_regex confopt " " "--$x.*"
|
||
|
done
|
||
|
|
||
|
EXTRACONFOPT_RM_REGEX="enable-gssapi with-gss with-krb5 with-kerberos5 with-mysql-lib with-mysql-include with-ssl"
|
||
|
for x in $EXTRACONFOPT_RM_REGEX; do
|
||
|
var_remove_regex extraconfopt " " "--$x.*"
|
||
|
done
|
||
|
|
||
|
EXTRACONFOPTS_RM="with-pam enable-pam with-libpam enable-libpam with-kerberos"
|
||
|
for x in $EXTRACONFOPTS_RM; do
|
||
|
var_remove extraconfopt " " "--$x"
|
||
|
done
|
||
|
|
||
|
# GnuPG Support (Signing of Configuration/Database Files)
|
||
|
if pkginstalled gnupg ; then
|
||
|
pkgprefix -t gnupg
|
||
|
var_append extraconfopt " " "--with-gpg=$( pkgprefix bindir gnupg )/gpg"
|
||
|
echo_status "Enable GnuPG Signing for Configuration/Database Files"
|
||
|
else
|
||
|
echo_status "Disable GnuPG Signing for Configuration/Database Files"
|
||
|
fi
|
||
|
|
||
|
# checking for prelude support
|
||
|
if pkginstalled libprelude; then
|
||
|
var_append extraconfopt " " "--with-prelude"
|
||
|
fi
|
||
|
|
||
|
# checking for mysql support
|
||
|
if pkginstalled mysql; then
|
||
|
pkgprefix -t mysql
|
||
|
var_append extraconfopt " " "--enable-xml-log"
|
||
|
var_append extraconfopt " " "--with-database=mysql"
|
||
|
var_append LD_RUN_PATH ':' "$( pkgprefix libdir mysql )/mysql"
|
||
|
export LD_RUN_PATH
|
||
|
fi
|
||
|
|
||
|
# checking for postgresql support
|
||
|
if pkginstalled postgresql; then
|
||
|
pkgprefix -t postgresql
|
||
|
var_append extraconfopt " " "--enable-xml-log"
|
||
|
var_append extraconfopt " " "--with-database=postgresql"
|
||
|
var_append LD_RUN_PATH ':' "$( pkgprefix libdir postgresql )"
|
||
|
export LD_RUN_PATH
|
||
|
fi
|
||
|
|
||
|
samhain_custextract () {
|
||
|
echo "Extracting $1 ($taropt) to temporary location ... "
|
||
|
pkg_samhain_tempdir=`mktemp -d`
|
||
|
tar -v $taropt $1 -C $pkg_samhain_tempdir
|
||
|
echo "Extracting2 $1 ($taropt) ... "
|
||
|
tar -xzvf $pkg_samhain_tempdir/$pkg-$ver.tar.gz | sed 's,^,$pkg-$ver/,' > untar.txt
|
||
|
}
|
||
|
|
||
|
custextract=samhain_custextract
|