1 |
axs 12/07/31 18:49:50 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nagvis-1.6.6.ebuild |
5 |
Log: |
6 |
version bump for bug 324641 , thanks to spacefreak for testing ; dropped ~ppc keyword due to missing keyword on net-analyzer/mk-livestatus dep (bug 429088) |
7 |
|
8 |
(Portage version: 2.1.10.65/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.11 net-analyzer/nagvis/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagvis/ChangeLog?rev=1.11&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagvis/ChangeLog?rev=1.11&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagvis/ChangeLog?r1=1.10&r2=1.11 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nagvis/ChangeLog,v |
20 |
retrieving revision 1.10 |
21 |
retrieving revision 1.11 |
22 |
diff -u -r1.10 -r1.11 |
23 |
--- ChangeLog 1 Jul 2012 22:09:16 -0000 1.10 |
24 |
+++ ChangeLog 31 Jul 2012 18:49:50 -0000 1.11 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for net-analyzer/nagvis |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagvis/ChangeLog,v 1.10 2012/07/01 22:09:16 mabi Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagvis/ChangeLog,v 1.11 2012/07/31 18:49:50 axs Exp $ |
30 |
+ |
31 |
+*nagvis-1.6.6 (31 Jul 2012) |
32 |
+ |
33 |
+ 31 Jul 2012; Ian Stakenvicius <axs@g.o> +nagvis-1.6.6.ebuild, |
34 |
+ +files/nagvis-1.6.6-base-path.patch, |
35 |
+ +files/nagvis-1.6.6-global-definitions.patch: |
36 |
+ version bump for bug 324641 , thanks to spacefreak for testing ; dropped ~ppc |
37 |
+ keyword due to missing keyword on net-analyzer/mk-livestatus dep (bug 429088) |
38 |
|
39 |
01 Jul 2012; Matti Bickel <mabi@g.o> -nagvis-1.4.4.ebuild: |
40 |
remove old version. |
41 |
|
42 |
|
43 |
|
44 |
1.1 net-analyzer/nagvis/nagvis-1.6.6.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagvis/nagvis-1.6.6.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nagvis/nagvis-1.6.6.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: nagvis-1.6.6.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2012 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagvis/nagvis-1.6.6.ebuild,v 1.1 2012/07/31 18:49:50 axs Exp $ |
54 |
|
55 |
EAPI=4 |
56 |
|
57 |
inherit eutils confutils depend.php depend.apache |
58 |
|
59 |
DESCRIPTION="NagVis is a visualization addon for the well known network managment system Nagios." |
60 |
HOMEPAGE="http://www.nagvis.org/" |
61 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
62 |
|
63 |
LICENSE="GPL-2" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~x86" |
66 |
IUSE="apache2 automap" |
67 |
|
68 |
DEPEND="" |
69 |
RDEPEND="|| ( net-analyzer/nagios net-analyzer/icinga ) |
70 |
automap? ( >=media-gfx/graphviz-2.14 ) |
71 |
apache2? ( dev-lang/php[apache2] ) |
72 |
net-analyzer/mk-livestatus |
73 |
dev-lang/php[gd,nls,json,session,pdo,sqlite3,sockets,mysql,unicode,xml]" |
74 |
|
75 |
need_php_httpd |
76 |
want_apache2 |
77 |
|
78 |
pkg_setup() { |
79 |
confutils_require_built_with_all dev-lang/php gd nls json session pdo sqlite3 sockets mysql unicode xml |
80 |
depend.apache_pkg_setup |
81 |
} |
82 |
|
83 |
src_prepare() { |
84 |
epatch "${FILESDIR}"/${P}-base-path.patch |
85 |
epatch "${FILESDIR}"/${P}-global-definitions.patch |
86 |
grep -Rl "/usr/local" "${S}"/* | xargs sed -i s:/usr/local:/usr:g ||die |
87 |
sed -i s:@NAGVIS_WEB@:/nagvis:g "${S}"/etc/apache2-nagvis.conf-sample ||die |
88 |
sed -i s:@NAGVIS_PATH@:/usr/share/nagvis/:g "${S}"/etc/apache2-nagvis.conf-sample ||die |
89 |
sed -i s:/usr/nagios/var/rw/live:/var/nagios/rw/live:g "${S}"/etc/nagvis.ini.php-sample ||die |
90 |
} |
91 |
|
92 |
src_install() { |
93 |
dodoc README INSTALL |
94 |
|
95 |
insinto /usr/share/nagvis |
96 |
doins -r share/{config.php,index.php,frontend,netmap,server,userfiles} |
97 |
doins -r docs |
98 |
|
99 |
diropts -o apache -g root |
100 |
dodir /var/nagvis/tmpl/{cache,compile} |
101 |
diropts |
102 |
dosym /var/nagvis /usr/share/nagvis/var |
103 |
|
104 |
if use apache2 ; then |
105 |
insinto "${APACHE_MODULES_CONFDIR}" |
106 |
newins etc/apache2-nagvis.conf-sample 98_${PN}.conf |
107 |
fi |
108 |
|
109 |
insinto /etc/nagvis |
110 |
doins -r etc/{conf.d,automaps,geomap,.htaccess,nagvis.ini.php-sample} |
111 |
fowners apache:root /etc/nagvis |
112 |
fperms 0664 /etc/nagvis/nagvis.ini.php-sample |
113 |
dosym /etc/nagvis /usr/share/nagvis/etc |
114 |
|
115 |
diropts -o apache -g root -m0775 |
116 |
insopts -o apache -g root -m0664 |
117 |
doins -r etc/maps |
118 |
diropts |
119 |
insopts |
120 |
|
121 |
# move image maps dir from usr to var and symlink it back |
122 |
dodir /var/nagvis/userfiles/images |
123 |
mv "${D}"/usr/share/nagvis/userfiles/images/maps "${D}"/var/nagvis/userfiles/images/ ||die |
124 |
fowners apache:root /var/nagvis/userfiles/images/maps |
125 |
dosym /var/nagvis/userfiles/images/maps /usr/share/nagvis/userfiles/images/maps |
126 |
} |
127 |
|
128 |
pkg_postinst() { |
129 |
elog "Before running NagVis for the first time, you will need to set up" |
130 |
elog "/etc/nagvis/nagvis.ini.php" |
131 |
elog "A sample is in" |
132 |
elog "/etc/nagvis/nagvis.ini.php-sample" |
133 |
if use apache2 ; then |
134 |
elog |
135 |
elog "For web interface make sure to add -D NAGVIS to APACHE2_OPTS in" |
136 |
elog "/etc/conf.d/apache2 and to restart apache2. A default configuration" |
137 |
elog "has been placed at /etc/apache2/modules.d/98_${PN}.conf" |
138 |
fi |
139 |
elog "" |
140 |
elog "Default user/password are: nagiosadmin/nagiosadmin" |
141 |
elog " guest/guest" |
142 |
} |