# Copyright 2015 awesome information technology, http://awesome-it.de # Distributed under the terms of the GNU General Public License v3 # $Header: $ EAPI=5 DESCRIPTION="Roundcube plugin to add a persistent login feature." HOMEPAGE="http://www.insanefactory.com/roundcube-persistent-login-plugin/" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64" IUSE="" DEPEND="dev-lang/php" RDEPEND="${DEPEND}" ROUNDCUBE_DIR="/usr/share/kolab-roundcube" ROUNDCUBE_CONF_DIR="/etc/kolab-roundcube" EGIT_REPO_URI="https://github.com/mfreiholz/Roundcube-Persistent-Login-Plugin.git" [[ ${PV} == "9999" ]] || EGIT_COMMIT="version-${PV}" inherit git-2 src_unpack() { git-2_src_unpack cd "${S}" epatch -p1 "${FILESDIR}/kolab-roundcube-persistent-login-3.1-fix-login-and-setcookie.patch" } src_install() { insinto "${ROUNDCUBE_CONF_DIR}" newins "config.inc.php.dist" "persistent_login.inc.php" ln -s "${ROUNDCUBE_CONF_DIR}/persistent_login.inc.php" "config.inc.php" insinto "${ROUNDCUBE_DIR}/plugins/persistent_login" doins -r * }