declare -x ABI="amd64" declare -x ABI_MIPS="" declare -x ABI_S390="" declare -x ABI_X86="64" declare -x ADA_TARGET="" declare -- ALLOW_ABSOLUTE="no" declare -x ALLOW_TEST="network" declare -x ALSA_CARDS="" declare -x AMDGPU_TARGETS="" declare -x ANT_HOME="/usr/share/ant" declare -- APACHE2_2_DEPEND="=www-servers/apache-2.2*" declare -- APACHE2_4_DEPEND="=www-servers/apache-2.4*" declare -- APACHE2_DEPEND="=www-servers/apache-2*" declare -x APACHE2_MODULES="" declare -x APACHE2_MPMS="" declare -- APACHE_DEPEND="www-servers/apache" declare -x ARCH="amd64" declare BDEPEND="" declare -x BINPKG_FORMAT="xpak" declare -x BINPKG_GPG_SIGNING_BASE_COMMAND="/usr/bin/flock /run/lock/portage-binpkg-gpg.lock /usr/bin/gpg --sign --armor [PORTAGE_CONFIG]" declare -x BINPKG_GPG_SIGNING_DIGEST="SHA512" declare -x BINPKG_GPG_VERIFY_BASE_COMMAND="/usr/bin/gpg --verify --batch --no-tty --no-auto-check-trustdb --status-fd 2 [PORTAGE_CONFIG] [SIGNATURE]" declare -x BINPKG_GPG_VERIFY_GPG_HOME="/etc/portage/gnupg" declare -x BOOTSTRAP_USE="unicode internal-glib pkg-config split-usr xml python_targets_python3_11 python_single_target_python3_11 multilib systemd sysv-utils udev" declare -x CALLIGRA_FEATURES="" declare -x CAMERAS="" declare -x CARGO_TERM_COLOR="never" declare -x CBUILD="x86_64-pc-linux-gnu" declare -x CFLAGS="-O2 -pipe -march=native -fno-diagnostics-color" declare -x CFLAGS_amd64="-m64" declare -x CFLAGS_x32="-mx32" declare -x CFLAGS_x86="-m32 -mfpmath=sse" declare -x CHOST="x86_64-pc-linux-gnu" declare -x CHOST_amd64="x86_64-pc-linux-gnu" declare -x CHOST_x32="x86_64-pc-linux-gnux32" declare -x CHOST_x86="i686-pc-linux-gnu" declare -x CMAKE_COLOR_DIAGNOSTICS="OFF" declare -x CMAKE_COLOR_MAKEFILE="OFF" declare -x COLLECTD_PLUGINS="" declare -- CONFIG_PROTECT="/etc /opt/zookeeper-bin/conf /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf" declare -x CPU_FLAGS_ARM="" declare -x CPU_FLAGS_PPC="" declare -x CPU_FLAGS_X86="" declare -x CURL_SSL="" declare -x CXXFLAGS="-O2 -pipe -march=native -fno-diagnostics-color" declare -x DEFAULT_ABI="amd64" declare -x DEFINED_PHASES=" compile configure install postinst prepare prerm setup" declare DEPEND=$'\n\tacct-group/rt\n\tacct-user/rt\n\t>=dev-lang/perl-5.10.1\n\t>=dev-perl/Apache-Session-1.53\n\t>=dev-perl/CGI-4\n\t>=dev-perl/CSS-Squish-0.06\n\t>=dev-perl/Class-Accessor-0.34\n\t>=dev-perl/Class-ReturnValue-0.550.0-r1\n\t>=dev-perl/DBI-1.37\n\t>=dev-perl/Date-Extract-0.02\n\t>=dev-perl/DateTime-Format-Natural-0.67\n\t>=dev-perl/Devel-StackTrace-1.19\n\t>=dev-perl/Email-Address-1.912.0\n\t>=dev-perl/Email-Address-List-0.60.0\n\t>=dev-perl/HTML-FormatText-WithLinks-0.14\n\t>=dev-perl/HTML-Mason-1.43\n\t>=dev-perl/HTML-Scrubber-0.08\n\t>=dev-perl/HTTP-Server-Simple-0.34\n\t>=dev-perl/HTTP-Server-Simple-Mason-0.14\n\t>=dev-perl/Locale-Maketext-Lexicon-0.32\n\t>=dev-perl/Log-Dispatch-2.410.0\n\t>=dev-perl/MIME-tools-5.425\n\t>=dev-perl/MailTools-1.60\n\t>=dev-perl/Module-Versions-Report-1.05\n\t>=dev-perl/Role-Basic-0.12\n\t>=dev-perl/Symbol-Global-Name-0.04\n\t>=dev-perl/Text-Quoted-2.80.0\n\t>=dev-perl/Text-WikiFormat-0.76\n\t>=dev-perl/Tree-Simple-1.04\n\t>=dev-perl/XML-RSS-1.05\n\t>=dev-perl/DBIx-SearchBuilder-1.660.0\n\t>=virtual/perl-Digest-MD5-2.27\n\t>=virtual/perl-Encode-2.730.0\n\t>=virtual/perl-File-Spec-0.8\n\t>=virtual/perl-Getopt-Long-2.24\n\t>=virtual/perl-Locale-Maketext-1.06\n\t>=virtual/perl-Storable-2.08\n\tdev-perl/Business-Hours\n\tdev-perl/CGI-Emulate-PSGI\n\tdev-perl/CGI-PSGI\n\tdev-perl/Cache-Simple-TimedExpiry\n\tdev-perl/Calendar-Simple\n\tdev-perl/Convert-Color\n\tdev-perl/Crypt-Eksblowfish\n\tdev-perl/Crypt-SSLeay\n\tdev-perl/Crypt-X509\n\tdev-perl/CSS-Minifier-XS\n\tdev-perl/Data-Page-Pageset\n\tdev-perl/DBD-SQLite\n\tdev-perl/Data-GUID\n\tdev-perl/Data-ICal\n\tdev-perl/Date-Manip\n\tdev-perl/Devel-GlobalDestruction\n\tdev-perl/File-ShareDir\n\tdev-perl/File-Which\n\tdev-perl/GDGraph\n\tdev-perl/GDTextUtil\n\tdev-perl/GD[png(+),gif(+)]\n\tdev-perl/GnuPG-Interface\n\tdev-perl/GraphViz\n\tdev-perl/HTML-Formatter\n\tdev-perl/HTML-FormatText-WithLinks-AndTables\n\tdev-perl/HTML-Gumbo\n\tdev-perl/HTML-Mason-PSGIHandler\n\tdev-perl/HTML-Parser\n\tdev-perl/HTML-Quoted\n\tdev-perl/HTML-RewriteAttributes\n\tdev-perl/HTML-Tree\n\tdev-perl/IPC-Run3\n\tdev-perl/JSON\n\tdev-perl/JavaScript-Minifier-XS\n\tdev-perl/MIME-Types\n\tdev-perl/Module-Refresh\n\tdev-perl/Mozilla-CA\n\tdev-perl/Net-CIDR\n\tdev-perl/PerlIO-eol\n\tdev-perl/Plack\n\tdev-perl/Regexp-Common-net-CIDR\n\tdev-perl/Regexp-IPv6\n\tdev-perl/Scope-Upper\n\tdev-perl/Starlet\n\tdev-perl/String-ShellQuote\n\tdev-perl/TermReadKey\n\tdev-perl/Text-Autoformat\n\tdev-perl/Text-Password-Pronounceable\n\tdev-perl/Time-ParseDate\n\tdev-perl/TimeDate\n\tdev-perl/UNIVERSAL-require\n\tdev-perl/libwww-perl\n\tdev-perl/Locale-Maketext-Fuzzy\n\tdev-perl/Net-IP\n\tdev-perl/Net-Server\n\tdev-perl/Regexp-Common\n\tdev-perl/Text-Template\n\tdev-perl/Text-Wrapper\n\tvirtual/perl-Digest\n\tvirtual/perl-File-Temp\n\tvirtual/perl-Scalar-List-Utils\n\tvirtual/perl-Time-HiRes\n\tvirtual/perl-libnet\n\n\tfastcgi? (\n\t\tdev-perl/FCGI\n\t\tdev-perl/FCGI-ProcManager\n\t)\n\t!lighttpd? (\n\t\tdev-perl/Apache-DBI\n\t\t!fastcgi? ( >=www-apache/mod_perl-2 )\n\t)\n\tlighttpd? ( dev-perl/FCGI )\n\tmysql? ( >=dev-perl/DBD-mysql-2.1018 )\n\tpostgres? ( >=dev-perl/DBD-Pg-1.43 )\n\n\t\t|| ( virtual/httpd-cgi virtual/httpd-fastcgi ) app-admin/webapp-config' declare DESCRIPTION="RT is an enterprise-grade ticketing system" declare -x DESTTREE="/usr" declare -x DIROPTIONS="-m0755" declare -x DOTNET_ROOT="/opt/dotnet-sdk-bin-8.0" declare -x EAPI="6" declare -x EGO_BUILD_FLAGS="-p 4" declare -x ELIBC="glibc" declare -x EMBOSS_ACDROOT="/usr/share/EMBOSS/acd" declare -x EMBOSS_DATA="/usr/share/EMBOSS/data" declare -- ENVVAR=$'VHOST_ROOT="/var/www/localhost"\nVHOST_HOSTNAME="localhost"\nVHOST_SERVER="apache"\nVHOST_CONFIG_DEFAULT_DIRS="default-owned"\nVHOST_CONFIG_VIRTUAL_FILES="virtual"\nVHOST_CONFIG_DIR="/var/www/localhost/conf"\nVHOST_DEFAULT_UID="root"\nVHOST_DEFAULT_GID="root"\nVHOST_HTDOCS_INSECURE="htdocs"\nVHOST_HTDOCS_SECURE="htdocs-secure"\nVHOST_PERMS_SERVEROWNED_DIR="0775"\nVHOST_PERMS_SERVEROWNED_FILE="0664"\nVHOST_PERMS_CONFIGOWNED_DIR="0755"\nVHOST_PERMS_CONFIGOWNED_FILE="0644"\nVHOST_PERMS_DEFAULTOWNED_DIR="0755"\nVHOST_PERMS_VIRTUALOWNED_FILE="o-w"\nVHOST_PERMS_INSTALLDIR="0755"\nALLOW_ABSOLUTE="no"\nPACKAGE_MANAGER="portage"\nWA_CONF_VERSION="7"\nVHOST_SUBDOMAIN_1="localhost"\nMY_HTDOCSBASE="htdocs"\nG_ORIG_INSTALLDIR="/"\nMY_APPSUFFIX="/rt/4.4.4-r3"\nPERSIST_SUFFIX="/rt/4.4.4-r3"\nCONFIG_PROTECT="/etc /opt/zookeeper-bin/conf /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf"\nMY_ETCCONFIG="/etc/vhosts/webapp-config"\nMY_DOTCONFIG=".webapp"\nMY_VERSION="1.55"\nMY_CONF_VERSION="7"\nMY_BUGSURL="http://bugs.gentoo.org/"\nG_MYNAME="/usr/lib/python-exec/python3.11/webapp-config"\nG_INSTALLDIR="/"\nG_LINK_OPTIONS=""\nG_LINK_TYPE="hard"\nG_CONFIGPREFIX="._cfg"\nG_PERMS_DOTCONFIG="0600"\nVHOST_CONFIG_GID="0"\nVHOST_CONFIG_UID="0"\nVHOST_SERVER_UID="root"\nVHOST_SERVER_GID="root"\nMY_PERSISTROOT="/var/db/webapps"\nWA_INSTALLSBASE="installs"\nG_HTDOCSDIR="/var/www/localhost/htdocs"\nMY_APPDIR="/usr/share/webapps//rt/4.4.4-r3"\nMY_HTDOCSDIR="/usr/share/webapps//rt/4.4.4-r3/htdocs"\nMY_PERSISTDIR="/var/db/webapps//rt/4.4.4-r3"\nMY_HOSTROOTDIR="/usr/share/webapps//rt/4.4.4-r3/hostroot"\nMY_CGIBINDIR="/usr/share/webapps//rt/4.4.4-r3/hostroot/cgi-bin"\nMY_ICONSDIR="/usr/share/webapps//rt/4.4.4-r3/hostroot/icons"\nMY_ERRORSDIR="/usr/share/webapps//rt/4.4.4-r3/hostroot/error"\nG_CGIBINDIR="/var/www/localhost/cgi-bin"\nMY_APPROOT="/usr/share/webapps"\nMY_HOSTROOTBASE="hostroot"\nMY_CGIBINBASE="cgi-bin"\nMY_ICONSBASE="icons"\nMY_ERRORSBASE="error"\nMY_SQLSCRIPTSDIR="/usr/share/webapps//rt/4.4.4-r3/sqlscripts"\nMY_HOOKSCRIPTSDIR="/usr/share/webapps//rt/4.4.4-r3/hooks"\nMY_SERVERCONFIGDIR="/usr/share/webapps//rt/4.4.4-r3/conf"\nWA_CONFIGLIST="/usr/share/webapps//rt/4.4.4-r3/config-files"\nWA_SOLIST="/usr/share/webapps//rt/4.4.4-r3/server-owned-files"\nWA_VIRTUALLIST="/usr/share/webapps//rt/4.4.4-r3/virtuals"\nWA_INSTALLS="/var/db/webapps//rt/4.4.4-r3/installs"\nWA_POSTINSTALLINFO="/usr/share/webapps//rt/4.4.4-r3/post-install-instructions.txt"' declare -x ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" declare -- EPOCHREALTIME="1703641885.985251" declare -- EPOCHSECONDS="1703641885" declare -- ETC_CONFIG="/etc/vhosts/webapp-config" declare -x EXEOPTIONS="-m0755" declare -x FCFLAGS="-O2 -pipe -march=native -fno-diagnostics-color" declare -x FETCHCOMMAND_SSH="bash -c \"x=\\\${2#ssh://} ; host=\\\${x%%/*} ; port=\\\${host##*:} ; host=\\\${host%:*} ; [[ \\\${host} = \\\${port} ]] && port= ; exec rsync --rsh=\\\"ssh \\\${port:+-p\\\${port}} \\\${3}\\\" -avP \\\"\\\${host}:/\\\${x#*/}\\\" \\\"\\\$1\\\"\" rsync \"\${DISTDIR}/\${FILE}\" \"\${URI}\" \"\${PORTAGE_SSH_OPTS}\"" declare -x FFLAGS="-O2 -pipe -march=native -fno-diagnostics-color" declare -x FFTOOLS="" declare -x FLTK_DOCDIR="/usr/share/doc/fltk-1.3.8/html" declare -x GCC_COLORS="" declare -x GCC_SPECS="" declare -x GIT_PAGER="cat" declare -x GO19CONCURRENTCOMPILATION="0" declare -x GOMAXPROCS="4" declare -x GPG_VERIFY_GROUP_DROP="nogroup" declare -x GPG_VERIFY_USER_DROP="nobody" declare -x GPSD_PROTOCOLS="" declare -x GRUB_PLATFORMS="" declare -x GSETTINGS_BACKEND="dconf" declare -- G_CGIBINDIR="/var/www/localhost/cgi-bin" declare -- G_CONFIGPREFIX="._cfg" declare -- G_HOSTNAME="localhost" declare -- G_HTDOCSDIR="/var/www/localhost/htdocs" declare -- G_INSTALLDIR="/" declare -- G_LINK_OPTIONS="" declare -- G_LINK_TYPE="hard" declare -- G_MYNAME="/usr/lib/python-exec/python3.11/webapp-config" declare -- G_ORIG_INSTALLDIR="/" declare -- G_PERMS_DOTCONFIG="0600" declare HOMEPAGE="https://www.bestpractical.com/rt/" declare IDEPEND="" declare -x INHERITED=" webapp depend.apache" declare -x INPUT_DEVICES="" declare -x INSDESTTREE="" declare -x INSOPTIONS="-m0644" declare -- INSTALL_CHECK_FILE="installed_by_webapp_eclass" declare -- INSTALL_DIR="/rt" declare -- IS_REPLACE="0" declare -- IS_UPGRADE="0" declare IUSE="mysql +postgres fastcgi lighttpd vhosts" declare -x IUSE_EFFECTIVE="abi_x86_64 alpha amd64 amd64-linux arm arm64 arm64-macos elibc_Darwin elibc_SunOS elibc_bionic elibc_glibc elibc_mingw elibc_musl fastcgi hppa ia64 kernel_Darwin kernel_SunOS kernel_linux lighttpd loong m68k mips mysql postgres ppc ppc-macos ppc64 ppc64-linux prefix prefix-guest prefix-stack riscv s390 sparc vhosts x64-macos x64-solaris x86 x86-linux" declare -x IUSE_IMPLICIT="abi_x86_64 prefix prefix-guest prefix-stack" declare -x JAVAC="/etc/java-config-2/current-system-vm/bin/javac" declare -x JAVA_HOME="/etc/java-config-2/current-system-vm" declare -x JDK_HOME="/etc/java-config-2/current-system-vm" declare -x KERNEL="linux" declare -x KEYWORDS="~amd64 ~riscv" declare -x L10N="" declare -x LAGAN_DIR="/usr/lib64/lagan" declare -x LANG="C.UTF8" declare -x LCD_DEVICES="" declare -x LC_COLLATE="C" declare -x LC_MESSAGES="C" declare -x LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" declare -x LDFLAGS_amd64="-m elf_x86_64" declare -x LDFLAGS_x32="-m elf32_x86_64" declare -x LDFLAGS_x86="-m elf_i386" declare -x LEX="reflex" declare -x LIBDIR_amd64="lib64" declare -x LIBDIR_x32="libx32" declare -x LIBDIR_x86="lib" declare -x LIBOPTIONS="-m0644" declare -x LIBREOFFICE_EXTENSIONS="" declare -x LICENSE="GPL-2" declare -x LLVM_TARGETS="" declare -x LUA_SINGLE_TARGET="" declare -x LUA_TARGETS="" declare -x MAILTO="tinderbox" declare -x MAKEOPTS=" -j4" declare -x MANPAGER="manpager" declare -x MONKEYD_PLUGINS="" declare -x MULTILIB_ABIS="amd64" declare -x MULTILIB_STRICT_DENY="64-bit.*shared object" declare -x MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib" declare -x MULTILIB_STRICT_EXEMPT="(perl5|gcc|binutils|eclipse-3|debug|portage|udev|systemd|clang|python-exec|llvm)" declare -- MY_APPDIR="/usr/share/webapps//rt/4.4.4-r3" declare -- MY_APPROOT="/usr/share/webapps" declare -- MY_APPSUFFIX="/rt/4.4.4-r3" declare -- MY_BUGSURL="http://bugs.gentoo.org/" declare -- MY_CGIBINBASE="cgi-bin" declare -- MY_CGIBINDIR="/usr/share/webapps//rt/4.4.4-r3/hostroot/cgi-bin" declare -- MY_CONF_VERSION="7" declare -- MY_DOTCONFIG=".webapp" declare -- MY_ERRORSBASE="error" declare -- MY_ERRORSDIR="/usr/share/webapps//rt/4.4.4-r3/hostroot/error" declare -- MY_ETCCONFIG="/etc/vhosts/webapp-config" declare -- MY_HOOKSCRIPTSDIR="/usr/share/webapps//rt/4.4.4-r3/hooks" declare -- MY_HOSTROOTBASE="hostroot" declare -- MY_HOSTROOTDIR="/usr/share/webapps//rt/4.4.4-r3/hostroot" declare -- MY_HTDOCSBASE="htdocs" declare -- MY_HTDOCSDIR="/usr/share/webapps//rt/4.4.4-r3/htdocs" declare -- MY_ICONSBASE="icons" declare -- MY_ICONSDIR="/usr/share/webapps//rt/4.4.4-r3/hostroot/icons" declare -- MY_PERSISTDIR="/var/db/webapps//rt/4.4.4-r3" declare -- MY_PERSISTROOT="/var/db/webapps" declare -- MY_SERVERCONFIGDIR="/usr/share/webapps//rt/4.4.4-r3/conf" declare -- MY_SQLSCRIPTSDIR="/usr/share/webapps//rt/4.4.4-r3/sqlscripts" declare -- MY_VERSION="1.55" declare -x NGINX_MODULES_HTTP="" declare -x NGINX_MODULES_MAIL="" declare -x NGINX_MODULES_STREAM="" declare -x NPM_CONFIG_GLOBALCONFIG="/etc/npm/npmrc" declare -x OCAML_COLOR="never" declare -x OFFICE_IMPLEMENTATION="" declare -x OMP_DYNAMIC="FALSE" declare -x OMP_NESTED="FALSE" declare -x OMP_NUM_THREADS="4" declare -x OPENMPI_FABRICS="" declare -x OPENMPI_OFED_FEATURES="" declare -x OPENMPI_RM="" declare -x ORACLE_HOME="/usr/lib64/oracle/client" declare -- PACKAGE_MANAGER="portage" declare -x PATH="/usr/lib/portage/python3.11/ebuild-helpers/xattr:/usr/lib/portage/python3.11/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/17/bin:/usr/lib/llvm/16/bin:/opt/zookeeper-bin/bin" declare PDEPEND="" declare -- PERSIST_SUFFIX="/rt/4.4.4-r3" declare -x PHP_TARGETS="" declare -x PKGSYSTEM_ENABLE_FSYNC="0" declare -x PORTAGE_COMPRESSION_COMMAND="zstd -T4" declare -a PORTAGE_DOCOMPRESS=([0]="/usr/share/doc" [1]="/usr/share/info" [2]="/usr/share/man") declare -x PORTAGE_DOCOMPRESS_SIZE_LIMIT="128" declare -a PORTAGE_DOCOMPRESS_SKIP=([0]="/usr/share/doc/rt-4.4.4-r3/html") declare -a PORTAGE_DOSTRIP=([0]="/") declare -a PORTAGE_DOSTRIP_SKIP=() declare -x PORTAGE_TMPFS="/dev/shm" declare -x PORT_LOGDIR="/var/log/portage" declare -x POSTGRES_TARGETS="" declare -x PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL" declare -- PROPERTIES="" declare -x PYTEST_ADDOPTS="--color=no" declare -x PYTHIA8DATA="/usr/share/Pythia8/xmldoc" declare -x PYTHONDONTWRITEBYTECODE="1" declare -x PYTHON_SINGLE_TARGET="" declare -x PYTHON_TARGETS="" declare -x PY_FORCE_COLOR="0" declare -x QEMU_SOFTMMU_TARGETS="" declare -x QEMU_USER_TARGETS="" declare RDEPEND=$'\n\tacct-group/rt\n\tacct-user/rt\n\t>=dev-lang/perl-5.10.1\n\t>=dev-perl/Apache-Session-1.53\n\t>=dev-perl/CGI-4\n\t>=dev-perl/CSS-Squish-0.06\n\t>=dev-perl/Class-Accessor-0.34\n\t>=dev-perl/Class-ReturnValue-0.550.0-r1\n\t>=dev-perl/DBI-1.37\n\t>=dev-perl/Date-Extract-0.02\n\t>=dev-perl/DateTime-Format-Natural-0.67\n\t>=dev-perl/Devel-StackTrace-1.19\n\t>=dev-perl/Email-Address-1.912.0\n\t>=dev-perl/Email-Address-List-0.60.0\n\t>=dev-perl/HTML-FormatText-WithLinks-0.14\n\t>=dev-perl/HTML-Mason-1.43\n\t>=dev-perl/HTML-Scrubber-0.08\n\t>=dev-perl/HTTP-Server-Simple-0.34\n\t>=dev-perl/HTTP-Server-Simple-Mason-0.14\n\t>=dev-perl/Locale-Maketext-Lexicon-0.32\n\t>=dev-perl/Log-Dispatch-2.410.0\n\t>=dev-perl/MIME-tools-5.425\n\t>=dev-perl/MailTools-1.60\n\t>=dev-perl/Module-Versions-Report-1.05\n\t>=dev-perl/Role-Basic-0.12\n\t>=dev-perl/Symbol-Global-Name-0.04\n\t>=dev-perl/Text-Quoted-2.80.0\n\t>=dev-perl/Text-WikiFormat-0.76\n\t>=dev-perl/Tree-Simple-1.04\n\t>=dev-perl/XML-RSS-1.05\n\t>=dev-perl/DBIx-SearchBuilder-1.660.0\n\t>=virtual/perl-Digest-MD5-2.27\n\t>=virtual/perl-Encode-2.730.0\n\t>=virtual/perl-File-Spec-0.8\n\t>=virtual/perl-Getopt-Long-2.24\n\t>=virtual/perl-Locale-Maketext-1.06\n\t>=virtual/perl-Storable-2.08\n\tdev-perl/Business-Hours\n\tdev-perl/CGI-Emulate-PSGI\n\tdev-perl/CGI-PSGI\n\tdev-perl/Cache-Simple-TimedExpiry\n\tdev-perl/Calendar-Simple\n\tdev-perl/Convert-Color\n\tdev-perl/Crypt-Eksblowfish\n\tdev-perl/Crypt-SSLeay\n\tdev-perl/Crypt-X509\n\tdev-perl/CSS-Minifier-XS\n\tdev-perl/Data-Page-Pageset\n\tdev-perl/DBD-SQLite\n\tdev-perl/Data-GUID\n\tdev-perl/Data-ICal\n\tdev-perl/Date-Manip\n\tdev-perl/Devel-GlobalDestruction\n\tdev-perl/File-ShareDir\n\tdev-perl/File-Which\n\tdev-perl/GDGraph\n\tdev-perl/GDTextUtil\n\tdev-perl/GD[png(+),gif(+)]\n\tdev-perl/GnuPG-Interface\n\tdev-perl/GraphViz\n\tdev-perl/HTML-Formatter\n\tdev-perl/HTML-FormatText-WithLinks-AndTables\n\tdev-perl/HTML-Gumbo\n\tdev-perl/HTML-Mason-PSGIHandler\n\tdev-perl/HTML-Parser\n\tdev-perl/HTML-Quoted\n\tdev-perl/HTML-RewriteAttributes\n\tdev-perl/HTML-Tree\n\tdev-perl/IPC-Run3\n\tdev-perl/JSON\n\tdev-perl/JavaScript-Minifier-XS\n\tdev-perl/MIME-Types\n\tdev-perl/Module-Refresh\n\tdev-perl/Mozilla-CA\n\tdev-perl/Net-CIDR\n\tdev-perl/PerlIO-eol\n\tdev-perl/Plack\n\tdev-perl/Regexp-Common-net-CIDR\n\tdev-perl/Regexp-IPv6\n\tdev-perl/Scope-Upper\n\tdev-perl/Starlet\n\tdev-perl/String-ShellQuote\n\tdev-perl/TermReadKey\n\tdev-perl/Text-Autoformat\n\tdev-perl/Text-Password-Pronounceable\n\tdev-perl/Time-ParseDate\n\tdev-perl/TimeDate\n\tdev-perl/UNIVERSAL-require\n\tdev-perl/libwww-perl\n\tdev-perl/Locale-Maketext-Fuzzy\n\tdev-perl/Net-IP\n\tdev-perl/Net-Server\n\tdev-perl/Regexp-Common\n\tdev-perl/Text-Template\n\tdev-perl/Text-Wrapper\n\tvirtual/perl-Digest\n\tvirtual/perl-File-Temp\n\tvirtual/perl-Scalar-List-Utils\n\tvirtual/perl-Time-HiRes\n\tvirtual/perl-libnet\n\n\tfastcgi? (\n\t\tdev-perl/FCGI\n\t\tdev-perl/FCGI-ProcManager\n\t)\n\t!lighttpd? (\n\t\tdev-perl/Apache-DBI\n\t\t!fastcgi? ( >=www-apache/mod_perl-2 )\n\t)\n\tlighttpd? ( dev-perl/FCGI )\n\tmysql? ( >=dev-perl/DBD-mysql-2.1018 )\n\tpostgres? ( >=dev-perl/DBD-Pg-1.43 )\n\n\tvirtual/mta\n\t!lighttpd? ( =www-servers/apache-2* )\n\tlighttpd? (\n\t\t>=www-servers/lighttpd-1.3.13\n\t\tsys-apps/openrc\n\t)\n app-admin/webapp-config' declare REPOSITORY declare REQUIRED_USE="^^ ( mysql postgres ) " declare RESTRICT="test" declare -x RESUMECOMMAND_SSH="bash -c \"x=\\\${2#ssh://} ; host=\\\${x%%/*} ; port=\\\${host##*:} ; host=\\\${host%:*} ; [[ \\\${host} = \\\${port} ]] && port= ; exec rsync --rsh=\\\"ssh \\\${port:+-p\\\${port}} \\\${3}\\\" -avP \\\"\\\${host}:/\\\${x#*/}\\\" \\\"\\\$1\\\"\" rsync \"\${DISTDIR}/\${FILE}\" \"\${URI}\" \"\${PORTAGE_SSH_OPTS}\"" declare -x RUBY_TARGETS="" declare -x RUST_TEST_TASKS="4" declare -x RUST_TEST_THREADS="4" declare -x S="/var/tmp/portage/www-apps/rt-4.4.4-r3/work/rt-4.4.4" declare -x SANDBOX_DEBUG="0" declare -x SANDBOX_DENY="" declare -x SANDBOX_METHOD="any" declare -x SANDBOX_PREDICT="/var/tmp/portage/www-apps/rt-4.4.4-r3/homedir:/dev/crypto:/var/cache/man:/dev/random:/proc/self/coredump_filter:/dev/random:/proc/self/coredump_filter:/dev/random:/proc/self/coredump_filter:/var/cache/fontconfig" declare -x SANDBOX_READ="/:/var/tmp/portage" declare -x SANDBOX_VERBOSE="1" declare -x SANDBOX_WRITE=":/dev/console:/dev/fd:/dev/full:/dev/null:/dev/ptmx:/dev/pts/:/dev/pty:/dev/shm:/dev/tts:/dev/tty:/dev/vc/:/dev/zero:/proc/self/fd:/run/firejail:/tmp/:/usr/lib/cf:/usr/lib/conftest:/usr/lib32/cf:/usr/lib32/conftest:/usr/lib64/cf:/usr/lib64/conftest:/usr/tmp/:/usr/tmp/cf:/usr/tmp/conftest:/var/tmp/:/var/tmp/portage:/var/tmp/portage/www-apps/rt-4.4.4-r3/homedir/.bash_history" declare -x SANE_BACKENDS="" declare -- SETUP_CHECK_FILE="setup_by_webapp_eclass" declare -x SHELL="/bin/bash" declare -x SLOT="4.4.4-r3" declare -i SRANDOM="3909408975" declare SRC_URI="https://download.bestpractical.com/pub/rt/release/rt-4.4.4.tar.gz" declare -x SYMLINK_LIB="no" declare -x TERMINFO="/etc/terminfo" declare -x TNS_ADMIN="/etc/oracle/" declare -x TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1" declare -x TZ="UTC" declare -x USE="abi_x86_64 amd64 elibc_glibc fastcgi kernel_linux postgres vhosts" declare -x USERLAND="GNU" declare -x USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL" declare -x USE_EXPAND_UNPREFIXED="ARCH" declare -x USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-linux arm arm64 arm64-macos hppa ia64 loong m68k mips ppc ppc64 ppc64-linux ppc-macos riscv s390 sparc x64-macos x64-solaris x86 x86-linux" declare -x USE_EXPAND_VALUES_ELIBC="bionic Darwin glibc mingw musl SunOS" declare -x USE_EXPAND_VALUES_KERNEL="Darwin linux SunOS" declare -x UWSGI_PLUGINS="" declare -- VHOST_CONFIG_DEFAULT_DIRS="default-owned" declare -- VHOST_CONFIG_DIR="/var/www/localhost/conf" declare -- VHOST_CONFIG_GID="0" declare -- VHOST_CONFIG_UID="0" declare -- VHOST_CONFIG_VIRTUAL_FILES="virtual" declare -- VHOST_DEFAULT_GID="root" declare -- VHOST_DEFAULT_UID="root" declare -- VHOST_HOSTNAME="localhost" declare -- VHOST_HTDOCS_INSECURE="htdocs" declare -- VHOST_HTDOCS_SECURE="htdocs-secure" declare -- VHOST_PERMS_CONFIGOWNED_DIR="0755" declare -- VHOST_PERMS_CONFIGOWNED_FILE="0644" declare -- VHOST_PERMS_DEFAULTOWNED_DIR="0755" declare -- VHOST_PERMS_INSTALLDIR="0755" declare -- VHOST_PERMS_SERVEROWNED_DIR="0775" declare -- VHOST_PERMS_SERVEROWNED_FILE="0664" declare -- VHOST_PERMS_VIRTUALOWNED_FILE="o-w" declare -- VHOST_ROOT="/var/www/localhost" declare -- VHOST_SERVER="apache" declare -- VHOST_SERVER_GID="root" declare -- VHOST_SERVER_UID="root" declare -- VHOST_SUBDOMAIN_1="localhost" declare -x VIDEO_CARDS="" declare -x VOICEMAIL_STORAGE="" declare -- WA_CONFIGLIST="/usr/share/webapps//rt/4.4.4-r3/config-files" declare -- WA_CONF_VERSION="7" declare -- WA_INSTALLS="/var/db/webapps//rt/4.4.4-r3/installs" declare -- WA_INSTALLSBASE="installs" declare -- WA_POSTINSTALLINFO="/usr/share/webapps//rt/4.4.4-r3/post-install-instructions.txt" declare -- WA_SOLIST="/usr/share/webapps//rt/4.4.4-r3/server-owned-files" declare -- WA_VIRTUALLIST="/usr/share/webapps//rt/4.4.4-r3/virtuals" declare -- WEBAPP_CLEANER="/usr/sbin/webapp-cleaner" declare -- WEBAPP_CONFIG="/usr/sbin/webapp-config" declare -- WEBAPP_DEPEND="app-admin/webapp-config" declare -x XERCESC_NLS_HOME="/usr/share/xerces-c/msg" declare -x XTABLES_ADDONS="" declare -x XZ_OPT="-9 -T4" declare -- _WEBAPP_ECLASS="1" declare -x __E_DOCDESTTREE="" declare -x __E_EXEDESTTREE="" declare -x ac_cv_c_undeclared_builtin_options="none needed" declare -x enable_year2038="no" declare -x gl_cv_compiler_check_decl_option="-Werror=implicit-function-declaration" SwitchGCC () { local highest=$(gcc-config --list-profiles --nocolor | cut -f 3 -d ' ' -s | grep -E 'x86_64-(pc|gentoo)-linux-(gnu|musl)-.*[0-9]$' | tail -n 1); if ! gcc-config --list-profiles --nocolor | grep -q -F "$highest *"; then local current; current=$(gcc -dumpversion); echo "major version change of gcc: $current -> $highest" | tee -a $taskfile.history; gcc-config --nocolor $highest; source_profile; add2backlog "sys-devel/libtool"; if grep -q '^LIBTOOL="rdlibtool"' /etc/portage/make.conf; then add2backlog "sys-devel/slibtool"; fi; add2backlog "%emerge --unmerge sys-devel/gcc:$(cut -f 1 -d '.' <<< $current)"; fi } declare -fx SwitchGCC __eapi6_src_install () { if [[ -f Makefile || -f GNUmakefile || -f makefile ]]; then emake DESTDIR="${D}" install; fi; einstalldocs } __eapi6_src_prepare () { if ___is_indexed_array_var PATCHES; then [[ ${#PATCHES[@]} -gt 0 ]] && eapply "${PATCHES[@]}"; else if [[ -n ${PATCHES} ]]; then eapply ${PATCHES}; fi; fi; eapply_user } __eapi8_src_prepare () { local f; if ___is_indexed_array_var PATCHES; then [[ ${#PATCHES[@]} -gt 0 ]] && eapply -- "${PATCHES[@]}"; else if [[ -n ${PATCHES} ]]; then eapply -- ${PATCHES}; fi; fi; eapply_user } _eapply_patch () { local f=${1}; local prefix=${2}; ebegin "${prefix:-Applying }${f##*/}"; local all_opts=(-p1 -f -g0 --no-backup-if-mismatch "${patch_options[@]}"); if ${patch_cmd} "${all_opts[@]}" --dry-run -s -F0 < "${f}" &> /dev/null; then all_opts+=(-s -F0); fi; ${patch_cmd} "${all_opts[@]}" < "${f}"; failed=${?}; if ! eend "${failed}"; then __helpers_die "patch -p1 ${patch_options[*]} failed with ${f}"; fi } _init_apache2 () { debug-print-function $FUNCNAME $*; APACHE_VERSION="2"; APXS="/usr/bin/apxs"; APACHE_BIN="/usr/sbin/apache2"; APACHE_CTL="/usr/sbin/apache2ctl"; APACHE_INCLUDEDIR="/usr/include/apache2"; APACHE_CONFDIR="/etc/apache2"; APACHE_MODULES_CONFDIR="${APACHE_CONFDIR}/modules.d"; APACHE_VHOSTS_CONFDIR="${APACHE_CONFDIR}/vhosts.d" } _init_apache2_late () { APACHE_BASEDIR="/usr/$(get_libdir)/apache2"; APACHE_MODULESDIR="${APACHE_BASEDIR}/modules" } _init_no_apache () { debug-print-function $FUNCNAME $*; APACHE_VERSION="0" } _webapp_serverowned () { debug-print-function $FUNCNAME $*; webapp_checkfileexists "${1}" "${D}"; local my_file; my_file="${1#${MY_APPDIR}/}"; my_file="${my_file/#.\///}"; echo "${my_file}" >> "${D}/${WA_SOLIST}" } add2backlog () { local bl=/var/tmp/tb/backlog.1st; if [[ $1 == '@preserved-rebuild' ]]; then sed -i -e "/@preserved-rebuild/d" $bl; sed -i -e "1 i\@preserved-rebuild" $bl; else if [[ $1 =~ ^@ || $1 =~ ^% ]]; then if [[ "$(tail -n 1 $bl)" != "$1" ]]; then echo "$1" >> $bl; fi; else if ! grep -q "^${1}$" $bl; then echo "$1" >> $bl; fi; fi; fi } declare -fx add2backlog checkEOL () { if [[ -f /var/tmp/tb/EOL || -f /var/tmp/tb/STOP ]]; then exit 42; fi } depend.apache_pkg_setup () { debug-print-function $FUNCNAME $*; if [[ "${EBUILD_PHASE}" != "setup" ]]; then die "$FUNCNAME() should be called in pkg_setup()"; fi; local myiuse=${1:-apache2}; if in_iuse ${myiuse}; then if use ${myiuse}; then _init_apache2; _init_apache2_late; else _init_no_apache; fi; fi } eapply () { local failed patch_cmd=patch; local -x LC_COLLATE=POSIX; type -P gpatch > /dev/null && patch_cmd=gpatch; function _eapply_patch () { local f=${1}; local prefix=${2}; ebegin "${prefix:-Applying }${f##*/}"; local all_opts=(-p1 -f -g0 --no-backup-if-mismatch "${patch_options[@]}"); if ${patch_cmd} "${all_opts[@]}" --dry-run -s -F0 < "${f}" &> /dev/null; then all_opts+=(-s -F0); fi; ${patch_cmd} "${all_opts[@]}" < "${f}"; failed=${?}; if ! eend "${failed}"; then __helpers_die "patch -p1 ${patch_options[*]} failed with ${f}"; fi }; local patch_options=() files=(); local i found_doublehyphen; for ((i = 1; i <= ${#@}; ++i )) do if [[ ${@:i:1} == -- ]]; then patch_options=("${@:1:i-1}"); files=("${@:i+1}"); found_doublehyphen=1; break; fi; done; if [[ -z ${found_doublehyphen} ]]; then for ((i = 1; i <= ${#@}; ++i )) do if [[ ${@:i:1} != -* ]]; then patch_options=("${@:1:i-1}"); files=("${@:i}"); break; fi; done; for i in "${files[@]}"; do if [[ ${i} == -* ]]; then die "eapply: all options must be passed before non-options"; fi; done; fi; if [[ ${#files[@]} -eq 0 ]]; then die "eapply: no files specified"; fi; local f; for f in "${files[@]}"; do if [[ -d ${f} ]]; then function _eapply_get_files () { local LC_ALL=POSIX; local prev_shopt=$(shopt -p nullglob); shopt -s nullglob; local f; for f in "${1}"/*; do if [[ ${f} == *.diff || ${f} == *.patch ]]; then files+=("${f}"); fi; done; ${prev_shopt} }; local files=(); _eapply_get_files "${f}"; [[ ${#files[@]} -eq 0 ]] && die "No *.{patch,diff} files in directory ${f}"; einfo "Applying patches from ${f} ..."; local f2; for f2 in "${files[@]}"; do _eapply_patch "${f2}" ' '; [[ ${failed} -ne 0 ]] && return "${failed}"; done; else _eapply_patch "${f}"; [[ ${failed} -ne 0 ]] && return "${failed}"; fi; done; return 0 } eapply_user () { [[ ${EBUILD_PHASE} == prepare ]] || die "eapply_user() called during invalid phase: ${EBUILD_PHASE}"; local tagfile=${T}/.portage_user_patches_applied; [[ -f ${tagfile} ]] && return; >> "${tagfile}"; local basedir=${PORTAGE_CONFIGROOT%/}/etc/portage/patches; local columns=${COLUMNS:-0}; [[ ${columns} == 0 ]] && columns=$(set -- $( ( stty size < /dev/tty ) 2> /dev/null || echo 24 80); echo $2); (( columns > 0 )) || (( columns = 80 )); local applied d f; local -A _eapply_user_patches; local prev_shopt=$(shopt -p nullglob); shopt -s nullglob; for d in "${basedir}"/${CATEGORY}/{${P}-${PR},${P},${PN}}{:${SLOT%/*},}; do for f in "${d}"/*; do if [[ ( ${f} == *.diff || ${f} == *.patch ) && -z ${_eapply_user_patches[${f##*/}]} ]]; then _eapply_user_patches[${f##*/}]=${f}; fi; done; done; if [[ ${#_eapply_user_patches[@]} -gt 0 ]]; then while read -r -d '' f; do f=${_eapply_user_patches[${f}]}; if [[ -s ${f} ]]; then if [[ -z ${applied} ]]; then einfo "${PORTAGE_COLOR_INFO}$(for ((column = 0; column < ${columns} - 3; column++)) do echo -n =; done)${PORTAGE_COLOR_NORMAL}"; einfo "Applying user patches from ${basedir} ..."; fi; eapply "${f}"; applied=1; fi; done < <(printf -- '%s\0' "${!_eapply_user_patches[@]}" | LC_ALL=C sort -z); fi; ${prev_shopt}; if [[ -n ${applied} ]]; then einfo "User patches applied."; einfo "${PORTAGE_COLOR_INFO}$(for ((column = 0; column < ${columns} - 3; column++)) do echo -n =; done)${PORTAGE_COLOR_NORMAL}"; fi } einstalldocs () { ( if [[ $(declare -p DOCS 2> /dev/null) != *=* ]]; then local d; for d in README* ChangeLog AUTHORS NEWS TODO CHANGES THANKS BUGS FAQ CREDITS CHANGELOG; do [[ -f ${d} && -s ${d} ]] && docinto / && dodoc "${d}"; done; else if ___is_indexed_array_var DOCS; then [[ ${#DOCS[@]} -gt 0 ]] && docinto / && dodoc -r "${DOCS[@]}"; else [[ -n ${DOCS} ]] && docinto / && dodoc -r ${DOCS}; fi; fi ); ( if ___is_indexed_array_var HTML_DOCS; then [[ ${#HTML_DOCS[@]} -gt 0 ]] && docinto html && dodoc -r "${HTML_DOCS[@]}"; else [[ -n ${HTML_DOCS} ]] && docinto html && dodoc -r ${HTML_DOCS}; fi ) } get_libdir () { local libdir_var="LIBDIR_${ABI}"; local libdir="lib"; [[ -n ${ABI} && -n ${!libdir_var} ]] && libdir=${!libdir_var}; echo "${libdir}" } has_apache () { debug-print-function $FUNCNAME $*; if has_version '>=www-servers/apache-2'; then _init_apache2; else _init_no_apache; fi } has_apache_threads () { debug-print-function $FUNCNAME $*; if ! has_version 'www-servers/apache[threads]'; then return; fi; local myflag="${1:-threads}"; if ! use ${myflag}; then echo; eerror "You need to enable USE flag '${myflag}' to build a thread-safe version"; eerror "of ${CATEGORY}/${PN} for use with www-servers/apache"; die "Need missing USE flag '${myflag}'"; fi } has_apache_threads_in () { debug-print-function $FUNCNAME $*; if ! has_version 'www-servers/apache[threads]'; then return; fi; local myforeign="$1"; local myflag="${2:-threads}"; if ! has_version "${myforeign}[${myflag}]"; then echo; eerror "You need to enable USE flag '${myflag}' in ${myforeign} to"; eerror "build a thread-safe version of ${CATEGORY}/${PN} for use"; eerror "with www-servers/apache"; die "Need missing USE flag '${myflag}' in ${myforeign}"; fi } in_iuse () { local use=${1}; if [[ -z "${use}" ]]; then echo "!!! in_iuse() called without a parameter." 1>&2; echo "!!! in_iuse " 1>&2; die "in_iuse() called without a parameter"; fi; local liuse=(${IUSE_EFFECTIVE}); has "${use}" "${liuse[@]#[+-]}" } need_apache () { debug-print-function $FUNCNAME $*; need_apache2 } need_apache2 () { debug-print-function $FUNCNAME $*; DEPEND="${DEPEND} ${APACHE2_DEPEND}"; RDEPEND="${RDEPEND} ${APACHE2_DEPEND}"; _init_apache2 } need_apache2_2 () { debug-print-function $FUNCNAME $*; case ${EAPI:-0} in 6 | 7) DEPEND="${DEPEND} ${APACHE2_2_DEPEND}"; RDEPEND="${RDEPEND} ${APACHE2_2_DEPEND}"; _init_apache2 ;; *) error "need_apache2-2 is no longer supported in EAPI 8" ;; esac } need_apache2_4 () { debug-print-function $FUNCNAME $*; DEPEND="${DEPEND} ${APACHE2_4_DEPEND}"; RDEPEND="${RDEPEND} ${APACHE2_4_DEPEND}"; _init_apache2 } need_httpd () { DEPEND="${DEPEND} || ( virtual/httpd-basic virtual/httpd-cgi virtual/httpd-fastcgi )" } need_httpd_cgi () { DEPEND="${DEPEND} || ( virtual/httpd-cgi virtual/httpd-fastcgi )" } need_httpd_fastcgi () { DEPEND="${DEPEND} virtual/httpd-fastcgi" } pkg_nofetch () { default } pkg_postinst () { webapp_pkg_postinst; if use lighttpd; then elog "We no longer install initscripts as Best Practical's recommended"; elog "implementation is to let Lighttpd manage the FastCGI instance."; elog; elog "You may find the following helpful:"; elog " perldoc /usr/share/doc/${P}/web_deployment.pod"; fi } pkg_prerm () { webapp_pkg_prerm "$@" } pkg_setup () { webapp_pkg_setup; ewarn; ewarn "If you are upgrading from an existing RT installation"; ewarn "make sure to read the related upgrade documentation in"; ewarn "${ROOT}usr/share/doc/${PF}."; ewarn } post_src_install () { ( if grep -E -q 'internal compiler error' "${WORKDIR}"/*/config.log &> /dev/null; then echo "${CATEGORY}/${PF}: Found ICE in config.log?!"; fi; if [[ -f "${S}"/meson.build ]] && ! grep -q "dev-util/meson" <<< "${BDEPEND}"; then echo "${CATEGORY}/${PF}: meson.build found but ebuild doesn't use meson?"; fi; if grep -r -q "dejagnu" "${S}" &> /dev/null && ! grep -q "dejagnu" <<< "${BDEPEND}"; then echo "${CATEGORY}/${PF}: Missing dejagnu tests?"; fi; if grep -r -q "test" "${S}/meson_options.txt" &> /dev/null && ! grep -q "test" <<< "${IUSE}"; then echo "${CATEGORY}/${PF}: Missing test option wiring for meson?"; fi; if grep -E -r -q -- "(disable|enable|with(out)?)-(unit)?test(s?)" configure.ac &> /dev/null && ! grep -q "test" <<< "${IUSE}"; then echo "${CATEGORY}/${PF}: Missing test option wiring for autoconf?"; fi; if grep -E -r -q -- "(disable|enable)-valgrind" configure.ac &> /dev/null && ! grep -q "valgrind" <<< "${IUSE}"; then echo "${CATEGORY}/${PF}: Missing valgrind option wiring for autoconf?"; fi; if grep -r -q "valgrind" "${S}/meson_options.txt" &> /dev/null && ! grep -q "valgrind" <<< "${IUSE}"; then echo "${CATEGORY}/${PF}: Missing valgrind option wiring for meson?"; fi; if grep -E -r -q -- "(disable|enable)-fuzz" configure.ac &> /dev/null && ! grep -q "fuzz" <<< "${EBUILD}"; then echo "${CATEGORY}/${PF}: Missing fuzz option wiring for autoconf?"; fi; if grep -r -q "fuzz" "${S}/meson_options.txt" &> /dev/null && ! grep -q "fuzz" <<< "${EBUILD}"; then echo "${CATEGORY}/${PF}: Missing fuzz option wiring for meson?"; fi ) &>> /var/tmp/sam.txt } source_profile () { set +u; source /etc/profile 2> /dev/null; set -u } declare -fx source_profile src_compile () { : } src_configure () { local web; local myconf; local depsconf; if use mysql; then myconf="--with-db-type=mysql --with-db-dba=root"; depsconf="--with-MYSQL"; else if use postgres; then myconf="--with-db-type=Pg --with-db-dba=postgres"; depsconf="--with-PG"; else die "Pick a database backend"; fi; fi; if use fastcgi; then myconf+=" --with-web-handler=fastcgi"; web="apache"; depsconf+=" --with-FASTCGI"; else if use lighttpd; then myconf+=" --with-web-handler=fastcgi"; web="lighttpd"; depsconf+=" --with-FASTCGI"; else myconf+=" --with-web-handler=modperl2"; web="apache"; depsconf+=" --with-MODPERL2"; fi; fi; export TZ=UTC; ./configure --enable-layout=Gentoo --with-bin-owner=rt --with-libs-owner=rt --with-libs-group=rt --with-rt-group=rt --with-web-user=${web} --with-web-group=${web} ${myconf}; /usr/bin/perl ./sbin/rt-test-dependencies ${depsconf} > "${T}"/t; if grep -q "MISSING" "${T}"/t; then ewarn "Missing Perl dependency!"; ewarn; cat "${T}"/t | grep MISSING; ewarn; ewarn "Please run perl-cleaner. If the problem persists,"; ewarn "please file a bug in the Gentoo Bugzilla with the information above"; die "Missing dependencies."; fi } src_install () { webapp_src_preinst; emake DESTDIR="${D}" install; dodoc -r docs/*; docompress -x /usr/share/doc; rm -f "${ED}"/${MY_HOSTROOTDIR}/${PF}/etc/RT_SiteConfig.pm; find "${ED}" -type f -print0 | xargs -0 sed -i -e "s:${ED}::g"; insinto "${MY_HOSTROOTDIR}/${PF}"; doins -r etc/upgrade; webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var; webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var/mason_data/obj; webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt; webapp_hook_script "${FILESDIR}"/reconfig; webapp_src_install } src_prepare () { cat "${FILESDIR}"/config.layout-gentoo >> config.layout; sed -e "s|PREFIX|${EPREFIX}/${MY_HOSTROOTDIR}/${PF}|g" -e "s|HTMLDIR|${EPREFIX}/${MY_HTDOCSDIR}|g" -e 's|/\+|/|g' -i ./config.layout || die 'config sed failed'; sed -e "s|\$args{'with-DEV'} =1;|#\$args{'with-DEV'} =1;|" -i sbin/rt-test-dependencies.in || die 'dev sed failed'; eapply "${FILESDIR}/rt-makefile-serialize-install-prereqs.patch"; eapply_user } src_test () { default } src_unpack () { default } want_apache () { debug-print-function $FUNCNAME $*; want_apache2 "$@" } want_apache2 () { debug-print-function $FUNCNAME $*; local myiuse=${1:-apache2}; IUSE="${IUSE} ${myiuse}"; DEPEND="${DEPEND} ${myiuse}? ( ${APACHE2_DEPEND} )"; RDEPEND="${RDEPEND} ${myiuse}? ( ${APACHE2_DEPEND} )" } want_apache2_2 () { debug-print-function $FUNCNAME $*; case ${EAPI:-0} in 6 | 7) local myiuse=${1:-apache2}; IUSE="${IUSE} ${myiuse}"; DEPEND="${DEPEND} ${myiuse}? ( ${APACHE2_2_DEPEND} )"; RDEPEND="${RDEPEND} ${myiuse}? ( ${APACHE2_2_DEPEND} )" ;; *) errror "want-apache2_2 is no longer supported in EAPI 8" ;; esac } want_apache2_4 () { debug-print-function $FUNCNAME $*; local myiuse=${1:-apache2}; IUSE="${IUSE} ${myiuse}"; DEPEND="${DEPEND} ${myiuse}? ( ${APACHE2_4_DEPEND} )"; RDEPEND="${RDEPEND} ${myiuse}? ( ${APACHE2_4_DEPEND} )" } webapp_check_installedat () { debug-print-function $FUNCNAME $*; ${WEBAPP_CONFIG} --show-installed -h localhost -d "${INSTALL_DIR}" 2> /dev/null } webapp_checkfileexists () { debug-print-function $FUNCNAME $*; local my_prefix=${2:+${2}/}; if [[ ! -e "${my_prefix}${1}" ]]; then msg="ebuild fault: file '${1}' not found"; eerror "$msg"; eerror "Please report this as a bug at https://bugs.gentoo.org/"; die "$msg"; fi } webapp_configfile () { debug-print-function $FUNCNAME $*; local m; for m in "$@"; do webapp_checkfileexists "${m}" "${D}"; local my_file; my_file="${m#${MY_APPDIR}/}"; my_file="${my_file/#.\///}"; elog "(config) ${my_file}"; echo "${my_file}" >> "${D}/${WA_CONFIGLIST}"; done } webapp_getinstalltype () { debug-print-function $FUNCNAME $*; if ! has vhosts ${IUSE} || use vhosts; then return; fi; local my_output; my_output="$(webapp_check_installedat)"; if [[ $? -eq 0 ]]; then local my_pn="$(echo ${my_output} | awk '{ print $1 }')"; local my_pvr="$(echo ${my_output} | awk '{ print $2 }')"; REMOVE_PKG="${my_pn}-${my_pvr}"; if [[ "${my_pn}" == "${PN}" ]]; then if [[ "${my_pvr}" != "${PVR}" ]]; then elog "This is an upgrade"; IS_UPGRADE=1; IS_REPLACE=0; else elog "This is a re-installation"; IS_REPLACE=1; IS_UPGRADE=0; fi; else elog "${my_output} is installed there"; fi; else IS_REPLACE=0; IS_UPGRADE=0; elog "This is an installation"; fi } webapp_hook_script () { debug-print-function $FUNCNAME $*; webapp_checkfileexists "${1}"; elog "(hook) ${1}"; cp "${1}" "${D}/${MY_HOOKSCRIPTSDIR}/$(basename "${1}")" || die "Unable to install ${1} into ${D}/${MY_HOOKSCRIPTSDIR}/"; chmod 555 "${D}/${MY_HOOKSCRIPTSDIR}/$(basename "${1}")" } webapp_pkg_postinst () { debug-print-function $FUNCNAME $*; webapp_read_config; if [[ ! -f "${ROOT%/}/${MY_APPDIR}/${INSTALL_CHECK_FILE}" ]]; then eerror; eerror "This ebuild did not call webapp_src_install() at the end"; eerror "of the src_install() function"; eerror; eerror "Please log a bug on https://bugs.gentoo.org"; eerror; eerror "You should use emerge -C to remove this package, as the"; eerror "installation is incomplete"; eerror; die "Ebuild did not call webapp_src_install() - report to https://bugs.gentoo.org"; fi; if has vhosts ${IUSE}; then if ! use vhosts; then echo; elog "vhosts USE flag not set - auto-installing using webapp-config"; G_HOSTNAME="localhost"; webapp_read_config; local my_mode=-I; webapp_getinstalltype; if [[ "${IS_REPLACE}" == "1" ]]; then elog "${PN}-${PVR} is already installed - replacing"; my_mode=-I; else if [[ "${IS_UPGRADE}" == "1" ]]; then elog "${REMOVE_PKG} is already installed - upgrading"; my_mode=-U; else elog "${PN}-${PVR} is not installed - using install mode"; fi; fi; my_cmd="${WEBAPP_CONFIG} -h localhost -u root -d ${INSTALL_DIR} ${my_mode} ${PN} ${PVR}"; elog "Running ${my_cmd}"; ${my_cmd}; echo; local cleaner="${WEBAPP_CLEANER} -p -C ${CATEGORY}/${PN}"; einfo "Running ${cleaner}"; ${cleaner}; else elog; elog "The 'vhosts' USE flag is switched ON"; elog "This means that Portage will not automatically run webapp-config to"; elog "complete the installation."; elog; elog "To install ${PN}-${PVR} into a virtual host, run the following command:"; elog; elog " webapp-config -h -d ${PN} -I ${PN} ${PVR}"; elog; elog "For more details, see the webapp-config(8) man page"; fi; else elog; elog "This ebuild does not support the 'vhosts' USE flag."; elog "This means that Portage will not automatically run webapp-config to"; elog "complete the installation."; elog; elog "To install ${PN}-${PVR} into a virtual host, run the following command:"; elog; elog " webapp-config -h -d ${PN} -I ${PN} ${PVR}"; elog; elog "For more details, see the webapp-config(8) man page"; fi } webapp_pkg_prerm () { debug-print-function $FUNCNAME $*; local my_output=; my_output="$(${WEBAPP_CONFIG} --list-installs ${PN} ${PVR})"; [[ $? -ne 0 ]] && return; local x; if has vhosts ${IUSE} && ! use vhosts; then echo "${my_output}" | while read x; do if [[ -f "${x}"/.webapp ]]; then . "${x}"/.webapp; if [[ -n "${WEB_HOSTNAME}" && -n "${WEB_INSTALLDIR}" ]]; then ${WEBAPP_CONFIG} -h ${WEB_HOSTNAME} -d ${WEB_INSTALLDIR} -C ${PN} ${PVR}; fi; else ewarn "Cannot find file ${x}/.webapp"; fi; done; else if [[ "${my_output}" != "" ]]; then echo; ewarn; ewarn "Don't forget to use webapp-config to remove any copies of"; ewarn "${PN}-${PVR} installed in"; ewarn; echo "${my_output}" | while read x; do if [[ -f "${x}"/.webapp ]]; then ewarn " ${x}"; else ewarn "Cannot find file ${x}/.webapp"; fi; done; ewarn; echo; fi; fi } webapp_pkg_setup () { debug-print-function $FUNCNAME $*; touch "${T}/${SETUP_CHECK_FILE}"; if [[ "${SLOT}+" != "${PVR}+" && "${WEBAPP_MANUAL_SLOT}" != "yes" ]]; then die "Set WEBAPP_MANUAL_SLOT=\"yes\" if you need to SLOT manually"; fi; G_HOSTNAME="localhost"; webapp_read_config; local my_dir="${ROOT%/}/${VHOST_ROOT}/${MY_HTDOCSBASE}/${PN}"; if ! has vhosts ${IUSE} || use vhosts || [[ ! -d "${my_dir}" ]]; then return; fi; local my_output; my_output="$(webapp_check_installedat)"; if [[ $? -ne 0 ]]; then echo; ewarn; ewarn "You already have something installed in ${my_dir}"; ewarn; ewarn "Whatever is in ${my_dir}, it's not"; ewarn "compatible with webapp-config."; ewarn; ewarn "This ebuild may be overwriting important files."; ewarn; echo; else if [[ "$(echo ${my_output} | awk '{ print $1 }')" != "${PN}" ]]; then echo; eerror "You already have ${my_output} installed in ${my_dir}"; eerror; eerror "I cannot upgrade a different application"; eerror; echo; die "Cannot upgrade contents of ${my_dir}"; fi; fi } webapp_postinst_txt () { debug-print-function $FUNCNAME $*; webapp_checkfileexists "${2}"; elog "(info) ${2} (lang: ${1})"; cp "${2}" "${D}/${MY_APPDIR}/postinst-${1}.txt" } webapp_postupgrade_txt () { debug-print-function $FUNCNAME $*; webapp_checkfileexists "${2}"; elog "(info) ${2} (lang: ${1})"; cp "${2}" "${D}/${MY_APPDIR}/postupgrade-${1}.txt" } webapp_read_config () { debug-print-function $FUNCNAME $*; if has_version '>=app-admin/webapp-config-1.50'; then ENVVAR=$(${WEBAPP_CONFIG} --query ${PN} ${PVR}) || die "Could not read settings from webapp-config!"; eval ${ENVVAR}; else if [[ "${WEBAPP_OPTIONAL}" != "yes" ]]; then . ${ETC_CONFIG} || die "Unable to read ${ETC_CONFIG}"; else if [[ -f "${ETC_CONFIG}" ]]; then . ${ETC_CONFIG} || die "Unable to read ${ETC_CONFIG}"; fi; fi; fi } webapp_server_configfile () { debug-print-function $FUNCNAME $*; webapp_checkfileexists "${2}"; local my_file="${1}-${3:-$(basename "${2}")}"; elog "(${1}) config file '${my_file}'"; cp "${2}" "${D}/${MY_SERVERCONFIGDIR}/${my_file}" } webapp_serverowned () { debug-print-function $FUNCNAME $*; local m; if [[ "${1}" == "-R" ]]; then shift; for m in "$@"; do pushd "${D}${MY_APPDIR}" > /dev/null || die; m="${m#${MY_APPDIR}/}"; find "${m}" >> "${D}/${WA_SOLIST}" || die; popd > /dev/null || die; done; else for m in "$@"; do _webapp_serverowned "${m}"; done; fi } webapp_sqlscript () { debug-print-function $FUNCNAME $*; webapp_checkfileexists "${2}"; dodir "${MY_SQLSCRIPTSDIR}/${1}"; if [[ -n "${3}" ]]; then elog "(${1}) upgrade script for ${PN}-${3} to ${PVR}"; cp "${2}" "${D}${MY_SQLSCRIPTSDIR}/${1}/${3}_to_${PVR}.sql"; chmod 600 "${D}${MY_SQLSCRIPTSDIR}/${1}/${3}_to_${PVR}.sql"; else elog "(${1}) create script for ${PN}-${PVR}"; cp "${2}" "${D}/${MY_SQLSCRIPTSDIR}/${1}/${PVR}_create.sql"; chmod 600 "${D}/${MY_SQLSCRIPTSDIR}/${1}/${PVR}_create.sql"; fi } webapp_src_install () { debug-print-function $FUNCNAME $*; touch "${D}/${MY_APPDIR}/${INSTALL_CHECK_FILE}"; chown -R "${VHOST_DEFAULT_UID}:${VHOST_DEFAULT_GID}" "${D}/"; chmod -R u-s "${D}/"; chmod -R g-s "${D}/"; keepdir "${MY_PERSISTDIR}"; fowners "0:0" "${MY_PERSISTDIR}"; fperms 755 "${MY_PERSISTDIR}" } webapp_src_preinst () { debug-print-function $FUNCNAME $*; if [[ ! -f "${T}/${SETUP_CHECK_FILE}" ]]; then eerror; eerror "This ebuild did not call webapp_pkg_setup() at the beginning"; eerror "of the pkg_setup() function"; eerror; eerror "Please log a bug on https://bugs.gentoo.org"; eerror; eerror "You should use emerge -C to remove this package, as the"; eerror "installation is incomplete"; eerror; die "Ebuild did not call webapp_pkg_setup() - report to https://bugs.gentoo.org"; fi; dodir "${MY_HTDOCSDIR}"; dodir "${MY_HOSTROOTDIR}"; dodir "${MY_CGIBINDIR}"; dodir "${MY_ICONSDIR}"; dodir "${MY_ERRORSDIR}"; dodir "${MY_SQLSCRIPTSDIR}"; dodir "${MY_HOOKSCRIPTSDIR}"; dodir "${MY_SERVERCONFIGDIR}" }