annotate app-admin/collectd/collectd-4.4.2.ebuild @ 84:49f1b15fc148

update zmq to 0.4
author holger@hoho.dyndns.org
date Mon, 15 Dec 2008 10:08:33 +0100
parents baac049cd305
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
56
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
1 # Copyright 1999-2008 Gentoo Foundation
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
3 # $Header: $
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
4
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
5 inherit autotools eutils flag-o-matic linux-info
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
6
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
7 DESCRIPTION="A small daemon which collects system performance statistics"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
8 HOMEPAGE="http://collectd.org"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
9
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
10 SRC_URI="${HOMEPAGE}/files/${P}.tar.bz2"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
11 LICENSE="GPL-2"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
12
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
13 SLOT="0"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
14
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
15 KEYWORDS="~amd64 ~x86"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
16 HTTP_FLAGS="apache2 lighttpd nginx"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
17 LIBVIRT_FLAGS="kvm openvz qemu xen"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
18 IUSE="apcups dns email hal hddtemp ipmi ithreads lm_sensors
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
19 memcache mysql network nfs ntp nut perl rrdtool snmp
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
20 syslog vserver wifi ${HTTP_FLAGS} ${LIBVIRT_FLAGS}
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
21 "
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
22 HTTP_DEPEND="
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
23 apache2? ( >=net-misc/curl-7.17.0 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
24 lighttpd? ( >=net-misc/curl-7.17.0 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
25 nginx? ( >=net-misc/curl-7.17.0 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
26 "
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
27 LIBVIRT_DEPEND="
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
28 kvm? ( >=app-emulation/libvirt-0.3.3 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
29 openvz? ( >=app-emulation/libvirt-0.3.3 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
30 qemu? ( >=app-emulation/libvirt-0.3.3 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
31 xen? ( >=app-emulation/libvirt-0.3.3 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
32 "
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
33 COMMON_DEPEND="${HTTP_DEPEND} ${LIBVIRT_DEPEND}
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
34 dns? ( >=net-libs/libpcap-0.9.8 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
35 hal? ( >=sys-apps/hal-0.5.9.1-r3 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
36 ipmi? ( >=sys-libs/openipmi-2.0.11 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
37 lm_sensors? ( >=sys-apps/lm_sensors-2.10.4 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
38 mysql? ( >=virtual/mysql-5.0 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
39 perl? ( >=dev-lang/perl-5.8.8-r4 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
40 nut? ( >=sys-power/nut-2.2.0 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
41 rrdtool? ( >=net-analyzer/rrdtool-1.2.27 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
42 snmp? ( >=net-analyzer/net-snmp-5.4.1-r3 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
43 "
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
44 DEPEND="${COMMON_DEPEND}
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
45 sys-devel/libtool
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
46 >=dev-libs/libxml2-2.6.31
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
47 "
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
48 RDEPEND="${COMMON_DEPEND}
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
49 apcups? ( >=sys-power/apcupsd-3.14.2 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
50 !hal? ( >=sys-apps/dmidecode-2.9 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
51 hddtemp? ( >=app-admin/hddtemp-0.3_beta15-r3 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
52 memcache? ( >=net-misc/memcached-1.2.2-r2 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
53 ntp? ( >=net-misc/ntp-4.2.4_p4 )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
54 syslog? ( virtual/logger )
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
55 "
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
56
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
57 pkg_setup()
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
58 {
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
59 linux-info_pkg_setup
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
60 local flag
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
61
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
62 (linux_chkconfig_present ACPI_BATTERY) \
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
63 || ewarn "ACPI_BATTERY needs to be enabled in your kernel for the battery plug-in to work correctly"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
64 (linux_chkconfig_present CPU_FREQ) \
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
65 || ewarn "CPU_FREQ needs to be enabled in your kernel for the cpufreq plug-in to work correctly"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
66 (linux_chkconfig_present SERIAL_CORE) \
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
67 || ewarn "SERIAL_CORE needs to be enabled in your kernel for the serial plug-in to work correctly"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
68 (linux_chkconfig_present SWAP) \
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
69 || ewarn "SWAP needs to be enabled in your kernel for the swap plug-in to work correctly"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
70 (use vserver) && !(linux_chkconfig_present IP_VS) \
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
71 && ewarn "IP_VS should to be enabled in your kernel when the USE flag vserver is enabled"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
72
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
73 for flag in "${LIBVIRT_FLAGS}"; do
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
74 (use ${flag}) && !(built_with_use app-emulation/libvirt ${flag}) && \
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
75 die "USE flag ${flag} requires that libvirt was compiled with the USE flag ${flag}"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
76 done
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
77
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
78 if (use perl); then
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
79 if (use ithreads); then
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
80 (built_with_use perl ithreads) \
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
81 || die "The perl plug-in requires that libperl was compiled with the USE flag ithreads"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
82 else
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
83 ewarn "The perl plug-in requires the ithreads USE flag."
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
84 fi
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
85 fi
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
86
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
87 ((linux_chkconfig_present PROC_FS) && (linux_chkconfig_present SYSFS)) \
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
88 || die "${P} requires that PROC_FS and SYSFS are enabled in your kernel"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
89 }
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
90
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
91 src_unpack()
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
92 {
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
93 unpack ${A}
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
94 cd "${S}"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
95
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
96 ebegin "Applying sed no-automagic-patch"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
97 sed -i -e '/^AC_PLUGIN/ s/\ [[].*[]],/[no],/' \
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
98 configure.in \
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
99 || die "sed no-automagic-patch failed"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
100 eend 0
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
101
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
102 epatch "${FILESDIR}/${PN}-4.4.2-ipvs.patch"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
103 epatch "${FILESDIR}/${PN}-4.4.2-localstatedir.patch"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
104 epatch "${FILESDIR}/${PN}-4.4.2-libtool-compatibility.patch"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
105
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
106 ebegin "Remove provided libtool/libltdl"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
107 rm -R ./libltdl \
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
108 && rm config.guess config.sub install-sh ltmain.sh \
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
109 || die "removing libtool failed"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
110 eend 0
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
111
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
112 eautoreconf || die "eautoreconf failed"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
113 }
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
114
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
115 src_compile()
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
116 {
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
117 local flag
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
118 local myconf
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
119 local no_check_plugins="csv df logfile multimeter tail users uuid"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
120 local proc_sys_fs_plugins="battery cpu cpufreq disk entropy irq load memory processes serial swap vmem"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
121 local network_plugins="interface iptables network ping teamspeak2 tcpconns unixsock"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
122
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
123 for flag in ${no_check_plugins} ${proc_sys_fs_plugins}; do
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
124 myconf+=" --enable-${flag}"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
125 done
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
126
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
127 if (use network); then
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
128 for flag in ${network_plugins}; do
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
129 myconf+=" --enable-${flag}"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
130 done
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
131 fi
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
132
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
133 myconf+="
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
134 $(( use apache2 || use lighttpd ) && echo --enable-apache)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
135 $(use_enable apcups)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
136 $(use_enable dns)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
137 $(use_enable hddtemp)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
138 $(use_enable email)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
139 $(use_enable ipmi)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
140 $(use_enable vserver ipvs)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
141 $(( use kvm || use openvz || use qemu || use xen ) && echo --enable-libvirt)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
142 $(use_enable memcache memcached)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
143 $(use_enable mysql)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
144 $(use_enable nfs)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
145 $(use_enable nginx)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
146 $(use_enable ntp ntpd)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
147 $(use_enable nut)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
148 $(use_enable dns powerdns)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
149 $(use_enable snmp)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
150 $(use_enable syslog)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
151 $(use_enable rrdtool)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
152 $(use_enable vserver)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
153 $(use_enable lm_sensors sensors)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
154 $(use_enable wifi wireless)"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
155
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
156 myconf+="
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
157 $(use ithreads && use_enable perl)
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
158 $(use_with perl perl-bindings)"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
159
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
160 KERNEL_DIR="${KERNEL_DIR}" econf \
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
161 --localstatedir=/var ${myconf} \
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
162 || die "econf failed"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
163
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
164 emake || die "emake failed"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
165 }
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
166
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
167 src_install()
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
168 {
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
169 emake DESTDIR="${D}" install || die "emake install failed"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
170
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
171 dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
172
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
173 insinto /usr/share/doc/${PF}
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
174 doins -r contrib || die "doins contrib failed"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
175
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
176 keepdir /var/lib/${PN} || die "keepdir failed"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
177
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
178 newinitd "${FILESDIR}/${PN}-4.4.2.initd" ${PN} || die "newinitd failed"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
179 newconfd "${FILESDIR}/${PN}-4.4.2.confd" ${PN} || die "newconfd failed"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
180 }
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
181
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
182 pkg_postinst()
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
183 {
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
184 einfo
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
185 einfo "collectd introduced some changes in the new 4.x series."
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
186 einfo "For further information, read ${HOMEPAGE}/migrate-v3-v4.shtml"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
187 einfo "The migration script can be found at:"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
188 einfo "/usr/share/doc/${PF}/contrib/migrate-3-4.px"
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
189 einfo
baac049cd305 update collectd to 4.4.2
holger@hoho.dyndns.org
parents:
diff changeset
190 }