summaryrefslogtreecommitdiff
blob: 8c63c7a668713dc81b9d97f2823237e61c3cf814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils webapp depend.php depend.apache

MY_P="${PF//}"

DESCRIPTION="WiPLExME (based on Siremis) is a web interface for provisioning of users of WiPLEx SIP Server."
HOMEPAGE="http://siremis.asipto.com/"
SRC_URI="http://siremis.asipto.com/pub/downloads/siremis/${MY_P}.tgz"

LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND=">=virtual/httpd-php-5.0"

need_php_httpd
need_apache

S="${WORKDIR}/${MY_P}"

pkg_setup () {
	webapp_pkg_setup
	use mysql && require_php_with_use mysql zlib xml
}

src_install() {
	webapp_src_preinst # cp -R * ${D}/${MY_HTDOCSDIR}

	dodoc ChangeLog README  || die
	rm -rf ChangeLog README

	insinto "${MY_HTDOCSDIR}"
	doins -r .

	local files="siremis siremis/log siremis/session siremis/files"
	#siremis/templates/cpl

	for file in ${files}; do
		webapp_serverowned "${MY_HTDOCSDIR}"/${file}
	done

	webapp_configfile  "${MY_HTDOCSDIR}"/siremis/Config.xml
	webapp_configfile  "${MY_HTDOCSDIR}"/openbiz/metadata/Config.xml

	#webapp_configfile  "${APACHE_VHOSTS_CONFDIR}"/httpd-wme.conf
	insinto "${APACHE_VHOSTS_CONFDIR}"
	doins "${FILESDIR}/httpd-wme.conf" || die

	#webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
	webapp_src_install
}

pkg_postinst() {
	ewarn "webapp-config will not be run automatically"
	ewarn "Try to run webapp-config this way:"
	ewarn "webapp-config -I -h <host> -d siremis ${PN} ${PVR}"
	# webapp_pkg_postinst
	ewarn
	#ewarn "Follow the instructions in POST-INSTALL."
}