# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/samhain/samhain.conf # Copyright (C) 2004 - 2023 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # 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 version 2. # --- T2-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 # 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