Gentoo Archives: gentoo-commits

From: "Michael Hanselmann (hansmi)" <hansmi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/smokeping: ChangeLog smokeping-2.2.3-r1.ebuild smokeping-2.2.3.ebuild
Date: Sun, 16 Sep 2007 22:32:03
Message-Id: E1IX2XV-000811-1S@stork.gentoo.org
1 hansmi 07/09/16 22:24:29
2
3 Modified: ChangeLog
4 Added: smokeping-2.2.3-r1.ebuild
5 Removed: smokeping-2.2.3.ebuild
6 Log:
7 Install cropper scripts.
8 (Portage version: 2.1.2.12)
9
10 Revision Changes Path
11 1.16 net-analyzer/smokeping/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/smokeping/ChangeLog?rev=1.16&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/smokeping/ChangeLog?rev=1.16&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/smokeping/ChangeLog?r1=1.15&r2=1.16
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/smokeping/ChangeLog,v
20 retrieving revision 1.15
21 retrieving revision 1.16
22 diff -u -r1.15 -r1.16
23 --- ChangeLog 14 Sep 2007 22:25:17 -0000 1.15
24 +++ ChangeLog 16 Sep 2007 22:24:28 -0000 1.16
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-analyzer/smokeping
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/smokeping/ChangeLog,v 1.15 2007/09/14 22:25:17 hansmi Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/smokeping/ChangeLog,v 1.16 2007/09/16 22:24:28 hansmi Exp $
30 +
31 +*smokeping-2.2.3-r1 (17 Sep 2007)
32 +
33 + 16 Sep 2007; Michael Hanselmann <hansmi@g.o>
34 + -smokeping-2.2.3.ebuild, +smokeping-2.2.3-r1.ebuild:
35 + Install cropper scripts.
36
37 14 Sep 2007; Michael Hanselmann <hansmi@g.o>
38 smokeping-2.2.3.ebuild:
39
40
41
42 1.1 net-analyzer/smokeping/smokeping-2.2.3-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/smokeping/smokeping-2.2.3-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/smokeping/smokeping-2.2.3-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: smokeping-2.2.3-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2007 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/smokeping/smokeping-2.2.3-r1.ebuild,v 1.1 2007/09/16 22:24:28 hansmi Exp $
52
53 inherit perl-module eutils
54
55 KEYWORDS="~amd64 ~sparc ~x86"
56
57 DESCRIPTION="A powerful latency measurement tool."
58 SRC_URI="http://oss.oetiker.ch/smokeping/pub/${P}.tar.gz"
59 HOMEPAGE="http://oss.oetiker.ch/smokeping/"
60 LICENSE="GPL-2"
61 SLOT="0"
62 IUSE="apache2"
63
64 DEPEND="dev-lang/perl
65 virtual/perl-libnet
66 >=net-analyzer/rrdtool-1.2
67 net-analyzer/fping
68 dev-perl/libwww-perl
69 dev-perl/Net-DNS
70 apache2? ( >=www-servers/apache-2.0.54-r30 >=www-apache/mod_perl-2.0.1 )"
71 RDEPEND="${DEPEND}"
72
73 pkg_setup() {
74 if ! built_with_use '>=net-analyzer/rrdtool-1.2' perl ; then
75 eerror "You must build net-analyzer/rrdtool with the"
76 eerror "'perl' USE flag turned on!"
77 die "net-analyzer/rrdtool installed with 'perl' USE flag disabled"
78 fi
79
80 enewgroup smokeping
81 enewuser smokeping -1 -1 /var/lib/smokeping smokeping
82 }
83
84 src_compile() {
85 # There is a makefile we don't want to run so leave this here
86 einfo "Skip compile."
87 }
88
89 src_install() {
90 # First move all the perl modules into the vendor lib area of Perl
91 perlinfo
92 insinto ${VENDOR_LIB}
93 doins lib/*.pm
94 ### This one kind of concerns me, possible conflict with other software
95 insinto ${VENDOR_LIB}/Config
96 doins lib/Config/*.pm
97 insinto ${VENDOR_LIB}/Smokeping
98 doins lib/Smokeping/*.pm
99 insinto ${VENDOR_LIB}/Smokeping/matchers
100 doins lib/Smokeping/matchers/*.pm
101 insinto ${VENDOR_LIB}/Smokeping/probes
102 doins lib/Smokeping/probes/*.pm
103 insinto ${VENDOR_LIB}/Smokeping/sorters
104 doins lib/Smokeping/sorters/*.pm
105
106 # Create the files in var for rrd file storage and the cgi webserver script
107 keepdir /var/lib/${PN}/.simg
108 fowners smokeping:smokeping /var/lib/${PN}
109 if use apache2 ; then
110 fowners apache:apache /var/lib/${PN}/.simg
111 else
112 fowners smokeping:smokeping /var/lib/${PN}/.simg
113 fi
114 fperms 775 /var/lib/${PN} /var/lib/${PN}/.simg
115 exeinto /var/www/localhost/perl
116 newexe htdocs/${PN}.cgi.dist ${PN}.pl
117 dosed 's:^use lib:#use lib:g' /var/www/localhost/perl/${PN}.pl
118 dosed 's:sepp/bin/speedy:bin/perl:' /var/www/localhost/perl/${PN}.pl
119 dosed 's:/home/oetiker/data/projects/AADJ-smokeping/dist/etc/config:/etc/smokeping:' \
120 /var/www/localhost/perl/${PN}.pl
121
122 # Install AJAX scripts
123 insinto /var/www/localhost/perl
124 doins -r htdocs/cropper
125
126 # Create the binary
127 newbin bin/${PN}.dist ${PN}
128 dosed 's:/usr/sepp/bin/perl-5.8.4:/usr/bin/perl:g' /usr/bin/${PN}
129 dosed 's:^use lib:#use lib:g' /usr/bin/${PN}
130 # dosed 's:/sepp::' /usr/bin/${PN}
131 dosed 's:etc/config.dist:/etc/smokeping:' /usr/bin/${PN}
132
133 # Create the config files
134 insinto /etc
135 newins "${FILESDIR}/config.dist" ${PN}
136 newins etc/basepage.html.dist ${PN}.template
137 doins etc/smokemail.dist
138 newinitd "${FILESDIR}/${PN}.init" ${PN}
139 if use apache2 ; then
140 insinto /etc/apache2/modules.d
141 doins "${FILESDIR}/78_${PN}.conf"
142 fi
143 }
144
145 pkg_postinst() {
146 chown smokeping:smokeping "${ROOT}/var/lib/${PN}"
147 chmod 755 "${ROOT}/var/lib/${PN}"
148 elog
149 elog "Four more steps are needed to get ${PN} un&running:"
150 elog "1) You need to edit /etc/${PN}"
151 elog "2) You need to edit the template at /etc/${PN}.template"
152 elog "3) You need to make the fping binary setuid root:"
153 elog " # chmod 4755 /usr/sbin/fping"
154 if use apache2 ; then
155 elog "4) Make sure to add -D PERL to APACHE2_OPTS in /etc/conf.d/apache2"
156 elog " and to restart apache2."
157 fi
158 elog "You can now start ${PN} with '/etc/init.d/${PN} start'."
159 elog
160 }
161
162
163
164 --
165 gentoo-commits@g.o mailing list