blob: ed2b1962b8595396ae0ac1fb1f450d55bdd5beb5 (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit user
DESCRIPTION="Network Management and Monitoring System"
HOMEPAGE="http://www.jffnms.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="mysql postgres snmp"
RDEPEND="
app-mobilephone/smsclient
dev-lang/php[apache2,cli,gd,mysql?,postgres?,session,snmp,sockets,wddx]
dev-php/PEAR-PEAR
media-gfx/graphviz
media-libs/gd
net-analyzer/fping
net-analyzer/net-snmp
net-analyzer/nmap
net-analyzer/rrdtool[graph]
sys-apps/diffutils
"
pkg_setup() {
enewgroup jffnms
enewuser jffnms -1 /bin/bash -1 jffnms,apache
}
src_install(){
local INSTALL_DIR="/opt/${PN}"
local IMAGE_DIR="${D}${INSTALL_DIR}"
insinto "${INSTALL_DIR}"
doins -r *
rm -f "${IMAGE_DIR}/LICENSE"
# Clean up Windows related stuff
rm -f "${IMAGE_DIR}"/*.win32.txt
rm -rf "${IMAGE_DIR}"/docs/windows
rm -rf "${IMAGE_DIR}"/engine/windows
fowners -R jffnms:apache "${INSTALL_DIR}"
fperms -R ug+rw "${INSTALL_DIR}"
}
pkg_postinst() {
elog "${PN} has been partialy installed on your system. However you"
elog "still need proceed with final installation and configuration."
elog "You can visit https://wiki.gentoo.org/wiki/Jffnms in order"
elog "to get detailed information on how to get jffnms up and running."
}
|