2013-04-16 00:03:57 +02:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
2013-04-15 23:55:48 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
EAPI=2
|
|
|
|
|
2013-04-16 00:03:57 +02:00
|
|
|
inherit webapp eutils depend.php versionator
|
|
|
|
|
|
|
|
MY_PV=$(replace_version_separator 3 '-' )
|
2013-04-15 23:55:48 +02:00
|
|
|
|
|
|
|
DESCRIPTION="Z-Push - open source push technology"
|
|
|
|
HOMEPAGE="http://z-push.sourceforge.net"
|
|
|
|
|
|
|
|
ZPUSH_RELEASE="final"
|
2013-04-16 00:03:57 +02:00
|
|
|
SRC_URI="http://zarafa-deutschland.de/z-push-download/${ZPUSH_RELEASE}/2.0/${PN}-${MY_PV}.tar.gz"
|
2013-04-15 23:55:48 +02:00
|
|
|
S="${WORKDIR}/${P}${ZPUSH_BUILD}"
|
|
|
|
|
|
|
|
LICENSE="AGPL-3"
|
2013-04-16 00:05:36 +02:00
|
|
|
KEYWORDS="~amd64 ~arm ~x86"
|
2013-04-15 23:55:48 +02:00
|
|
|
RESTRICT="mirror"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
need_php_httpd
|
|
|
|
|
|
|
|
pkg_setup () {
|
|
|
|
webapp_pkg_setup
|
|
|
|
require_php_with_use iconv session xml
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
webapp_src_preinst
|
|
|
|
|
|
|
|
dodir "/var/log/z-push"
|
|
|
|
dodir "/var/lib/z-push"
|
|
|
|
|
|
|
|
insinto "${MY_HTDOCSDIR}"
|
|
|
|
doins -r "${S}"/*
|
|
|
|
|
|
|
|
webapp_serverowned -R "/var/log/z-push"
|
|
|
|
webapp_serverowned -R "/var/lib/z-push"
|
|
|
|
webapp_configfile "${MY_HTDOCSDIR}"/config.php
|
|
|
|
webapp_serverowned "${MY_HTDOCSDIR}"/config.php
|
|
|
|
|
|
|
|
webapp_src_install
|
|
|
|
}
|