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