c6998a297f
(Portage version: 2.2.0_alpha123/git/Linux x86_64, RepoMan options: --force, unsigned Manifest commit)
48 lines
1019 B
Bash
48 lines
1019 B
Bash
# Copyright 1999-2012 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
EAPI="2"
|
|
|
|
inherit webapp depend.php versionator
|
|
|
|
MY_PV=$(replace_version_separator 3 '-' )
|
|
|
|
DESCRIPTION="Z-Push is an implementation of the ActiveSync protocol."
|
|
HOMEPAGE="http://z-push.sourceforge.net/"
|
|
SRC_URI="http://zarafa-deutschland.de/z-push-download/final/2.0/${PN}-${MY_PV}.tar.gz"
|
|
|
|
LICENSE="AGPL-3"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE=""
|
|
|
|
DEPEND=""
|
|
RDEPEND="|| ( <dev-lang/php-5.3[pcre] >=dev-lang/php-5.3 )"
|
|
|
|
S="${WORKDIR}"/${PN}-${MY_PV}
|
|
|
|
need_php_httpd
|
|
|
|
src_install() {
|
|
webapp_src_preinst
|
|
|
|
dodoc INSTALL LICENSE
|
|
rm -f INSTALL LICENSE
|
|
|
|
insinto "${MY_HTDOCSDIR}"
|
|
doins -r .
|
|
|
|
keepdir /var/log/z-push
|
|
keepdir /var/lib/z-push
|
|
|
|
webapp_serverowned /var/log/z-push
|
|
webapp_serverowned /var/lib/z-push
|
|
|
|
webapp_configfile "${MY_HTDOCSDIR}"/config.php
|
|
|
|
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
|
|
webapp_postupgrade_txt en "${FILESDIR}"/postupgrade-en.txt
|
|
|
|
webapp_src_install
|
|
}
|