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