1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/samhain/samhain.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 # removing some not supported configure options
13 CONFOPT_RM_REGEX="bindir libdir datadir includedir infodir"
14 for x in $CONFOPT_RM_REGEX; do
15 var_remove_regex confopt " " "--$x.*"
18 EXTRACONFOPT_RM_REGEX="enable-gssapi with-gss with-krb5 with-kerberos5 with-mysql-lib with-mysql-include with-ssl"
19 for x in $EXTRACONFOPT_RM_REGEX; do
20 var_remove_regex extraconfopt " " "--$x.*"
23 EXTRACONFOPTS_RM="with-pam enable-pam with-libpam enable-libpam with-kerberos"
24 for x in $EXTRACONFOPTS_RM; do
25 var_remove extraconfopt " " "--$x"
28 # checking for prelude support
29 if pkginstalled libprelude; then
30 var_append extraconfopt " " "--with-prelude"
33 # checking for mysql support
34 if pkginstalled mysql; then
36 var_append extraconfopt " " "--enable-xml-log"
37 var_append extraconfopt " " "--with-database=mysql"
38 var_append LD_RUN_PATH ':' "$( pkgprefix libdir mysql )/mysql"
42 # checking for postgresql support
43 if pkginstalled postgresql; then
44 pkgprefix -t postgresql
45 var_append extraconfopt " " "--enable-xml-log"
46 var_append extraconfopt " " "--with-database=postgresql"
47 var_append LD_RUN_PATH ':' "$( pkgprefix libdir postgresql )"
51 samhain_custextract () {
52 echo "Extracting $1 ($taropt) to temporary location ... "
53 pkg_samhain_tempdir=`mktemp -d`
54 tar -v $taropt $1 -C $pkg_samhain_tempdir
55 echo "Extracting2 $1 ($taropt) ... "
56 tar -xzvf $pkg_samhain_tempdir/$pkg-$ver.tar.gz | sed 's,^,$pkg-$ver/,' > untar.txt
59 custextract=samhain_custextract