diff options
author | Brian Evans <grknight@gentoo.org> | 2019-02-07 10:24:04 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2019-02-07 10:24:04 -0500 |
commit | 680d0e242624cf9db80d3bac84e905e8c51131ec (patch) | |
tree | 030a75ff0df1e51d0723f81cd1a7419c118f696c /www-apache | |
parent | sci-astronomy/kstars: EAPI-7 bump (diff) | |
download | gentoo-680d0e242624cf9db80d3bac84e905e8c51131ec.tar.gz gentoo-680d0e242624cf9db80d3bac84e905e8c51131ec.tar.bz2 gentoo-680d0e242624cf9db80d3bac84e905e8c51131ec.zip |
www-apache/mod_log_sql: Revbump for dependency and EAPI
non-maintainer commit
Bug: https://bugs.gentoo.org/666074
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'www-apache')
-rw-r--r-- | www-apache/mod_log_sql/mod_log_sql-1.101-r3.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/www-apache/mod_log_sql/mod_log_sql-1.101-r3.ebuild b/www-apache/mod_log_sql/mod_log_sql-1.101-r3.ebuild new file mode 100644 index 000000000000..d7f0da75b8d4 --- /dev/null +++ b/www-apache/mod_log_sql/mod_log_sql-1.101-r3.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit apache-module + +DESCRIPTION="An Apache module for logging to an SQL (MySQL) database" +HOMEPAGE="http://www.outoforder.cc/projects/apache/mod_log_sql/" +SRC_URI="http://www.outoforder.cc/downloads/${PN}/${P}.tar.bz2" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="dbi ssl" + +DEPEND="dev-db/mysql-connector-c:0= + dbi? ( dev-db/libdbi ) + ssl? ( dev-libs/openssl:0= )" +RDEPEND="${DEPEND}" + +APACHE2_MOD_CONF="1.101/42_${PN}" +APACHE2_MOD_DEFINE="LOG_SQL" + +APACHE2_EXECFILES=" + .libs/${PN}_logio.so + .libs/${PN}_mysql.so + .libs/${PN}_ssl.so" + +DOCS=( AUTHORS CHANGELOG docs/README contrib/create_tables.sql + contrib/make_combined_log.pl contrib/mysql_import_combined_log.pl ) +HTML_DOCS=( docs/manual.html ) + +PATCHES=( "${FILESDIR}"/${P}-apache-2.4.patch ) + +need_apache2_4 + +pkg_setup() { + _init_apache2 + _init_apache2_late +} + +src_configure() { + local myconf="--with-apxs=${APXS}" + myconf="${myconf} $(usex ssl --with-ssl-inc=/usr --without-ssl-inc)" + myconf="${myconf} $(usex dbi --with-dbi=/usr --without-dbi)" + econf ${myconf} +} + +src_compile() { + emake +} + +src_install() { + use dbi && APACHE2_EXECFILES="${APACHE2_EXECFILES} .libs/${PN}_dbi.so" + apache-module_src_install + einstalldocs +} + +pkg_postinst() { + use dbi && APACHE2_MOD_DEFINE="${APACHE2_MOD_DEFINE} DBI" + apache-module_pkg_postinst + einfo "Refer to /usr/share/doc/${PF}/ for scripts" + einfo "on how to create logging tables." +} |