parent
68a4008eb5
commit
2b2fb205f4
@ -1,3 +1 @@
|
||||
DIST collectd-5.4.1.tar.bz2 1521907 SHA256 75452129f271cb0aad28e57f12a49070618bbb7b6a9d64cf869e8766fa2f66e0 SHA512 96289f52d3d1da55c862ae9ee2f57972682d7eab87387e97efa41fb5197599e097abd71aed2fe014e26af37c9ae98471e06dd181c725849976242642ce5c9492 WHIRLPOOL 2ed85b9d6d00c4e7dc6af236b637e282f17c6c0b20c1ba3da9c12ea85c5fdea1add2e29165874c7e9620852e422282d489436a4e245b161902f8926185edec16
|
||||
DIST collectd-5.5.0.tar.bz2 1824495 SHA256 847684cf5c10de1dc34145078af3fcf6e0d168ba98c14f1343b1062a4b569e88 SHA512 d2c2840f681c10345e02ad8df0f7c581dcb45bee276589fcd96b3dadd281a79ebb3b9a34a186242ef41285dde7fc505432376138ff4f72c4f60f1b840e640017 WHIRLPOOL 6223ca363984ab3777ca89e2cd5011f059b6ca7f5c66c5e7325d3155ce38ef2829caced3ad27e4d5016c5fdba59bb21b9b47d840ea0c4d164c3674b6ee5062ac
|
||||
DIST collectd-5.5.1.tar.bz2 1797852 SHA256 f9c5d526e1f0429a7db1ccd90bdf9e23923a2fd43b7285cfda8f0341e5c0bc3f SHA512 1935809571b8f0e0870399385312a5687f441d11e08a0c7d1337384b3790c3436ba84f89226aad979584045cc13bdf88f1350a0f49c94bcd0dbcf12ae4704dae WHIRLPOOL 3efeeb9262344a8a1c0aa068e64f5d45ff536d1fc1399b4599143a6e47740d5a33aedf482dbf9110cc5f0345d624fbe71ff00fc6f7afeee891326617f7979e41
|
||||
|
@ -1,386 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
GENTOO_DEPEND_ON_PERL="no"
|
||||
JAVA_PKG_OPT_USE="collectd_plugins_java"
|
||||
# XXX: 5.4.1-r0 stated 2* but it builds fine against 3.4
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit autotools base eutils java-pkg-opt-2 linux-info multilib perl-app python-single-r1 systemd user
|
||||
|
||||
DESCRIPTION="Collects system statistics and provides mechanisms to store the values"
|
||||
|
||||
HOMEPAGE="http://collectd.org"
|
||||
SRC_URI="${HOMEPAGE}/files/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="contrib debug kernel_linux kernel_FreeBSD kernel_Darwin perl selinux static-libs"
|
||||
|
||||
# The plugin lists have to follow here since they extend IUSE
|
||||
|
||||
# Plugins that to my knowledge cannot be supported (eg. dependencies not in gentoo)
|
||||
COLLECTD_IMPOSSIBLE_PLUGINS="aquaero mic netapp pinba sigrok xmms"
|
||||
|
||||
# Plugins that still need some work
|
||||
COLLECTD_UNTESTED_PLUGINS="amqp apple_sensors genericjmx ipvs lpar modbus redis
|
||||
tape write_redis zfs_arc"
|
||||
|
||||
# Plugins that have been (compile) tested and can be enabled via COLLECTD_PLUGINS
|
||||
COLLECTD_TESTED_PLUGINS="aggregation apache apcups ascent battery bind cgroups
|
||||
conntrack contextswitch cpu cpufreq csv curl curl_json curl_xml dbi df disk dns
|
||||
email entropy ethstat exec filecount fscache gmond hddtemp interface ipmi
|
||||
iptables irq java libvirt load logfile lvm madwifi match_empty_counter
|
||||
match_hashed match_regex match_timediff match_value mbmon md memcachec memcached
|
||||
memory multimeter mysql netlink network network nfs nginx notify_desktop
|
||||
notify_email ntpd numa nut olsrd onewire openvpn oracle perl perl ping postgresql
|
||||
powerdns processes protocols python python routeros rrdcached rrdcached rrdtool
|
||||
sensors serial snmp statsd swap syslog table tail target_notification
|
||||
target_replace target_scale target_set tcpconns teamspeak2 ted thermal threshold
|
||||
tokyotyrant unixsock uptime users uuid varnish vmem wireless
|
||||
write_graphite write_http write_mongodb"
|
||||
|
||||
COLLECTD_DISABLED_PLUGINS="${COLLECTD_IMPOSSIBLE_PLUGINS} ${COLLECTD_UNTESTED_PLUGINS}"
|
||||
|
||||
COLLECTD_ALL_PLUGINS=${COLLECTD_TESTED_PLUGINS}
|
||||
|
||||
for plugin in ${COLLECTD_ALL_PLUGINS}; do
|
||||
IUSE="${IUSE} collectd_plugins_${plugin}"
|
||||
done
|
||||
unset plugin
|
||||
|
||||
# Now come the dependencies.
|
||||
|
||||
COMMON_DEPEND="
|
||||
dev-libs/libgcrypt:0
|
||||
sys-devel/libtool
|
||||
perl? ( dev-lang/perl:=[ithreads] )
|
||||
collectd_plugins_apache? ( net-misc/curl )
|
||||
collectd_plugins_ascent? ( net-misc/curl dev-libs/libxml2 )
|
||||
collectd_plugins_bind? ( dev-libs/libxml2 )
|
||||
collectd_plugins_curl? ( net-misc/curl )
|
||||
collectd_plugins_curl_json? ( net-misc/curl dev-libs/yajl )
|
||||
collectd_plugins_curl_xml? ( net-misc/curl dev-libs/libxml2 )
|
||||
collectd_plugins_dbi? ( dev-db/libdbi )
|
||||
collectd_plugins_dns? ( net-libs/libpcap )
|
||||
collectd_plugins_gmond? ( sys-cluster/ganglia )
|
||||
collectd_plugins_ipmi? ( >=sys-libs/openipmi-2.0.16-r1 )
|
||||
collectd_plugins_iptables? ( >=net-firewall/iptables-1.4.13 )
|
||||
collectd_plugins_libvirt? ( app-emulation/libvirt dev-libs/libxml2 )
|
||||
collectd_plugins_lvm? ( sys-fs/lvm2 )
|
||||
collectd_plugins_memcachec? ( dev-libs/libmemcached )
|
||||
collectd_plugins_mysql? ( >=virtual/mysql-5.0 )
|
||||
collectd_plugins_netlink? ( net-libs/libmnl )
|
||||
collectd_plugins_nginx? ( net-misc/curl )
|
||||
collectd_plugins_notify_desktop? ( x11-libs/libnotify )
|
||||
collectd_plugins_notify_email? ( net-libs/libesmtp dev-libs/openssl:= )
|
||||
collectd_plugins_nut? ( >=sys-power/nut-2.7.2-r2 )
|
||||
collectd_plugins_onewire? ( sys-fs/owfs )
|
||||
collectd_plugins_oracle? ( dev-db/oracle-instantclient-basic )
|
||||
collectd_plugins_perl? ( dev-lang/perl:=[ithreads] )
|
||||
collectd_plugins_ping? ( net-libs/liboping )
|
||||
collectd_plugins_postgresql? ( dev-db/postgresql:= )
|
||||
collectd_plugins_python? ( ${PYTHON_DEPS} )
|
||||
collectd_plugins_routeros? ( net-libs/librouteros )
|
||||
collectd_plugins_rrdcached? ( net-analyzer/rrdtool )
|
||||
collectd_plugins_rrdtool? ( net-analyzer/rrdtool )
|
||||
collectd_plugins_sensors? ( sys-apps/lm_sensors )
|
||||
collectd_plugins_snmp? ( net-analyzer/net-snmp )
|
||||
collectd_plugins_tokyotyrant? ( net-misc/tokyotyrant )
|
||||
collectd_plugins_varnish? ( www-servers/varnish )
|
||||
collectd_plugins_write_http? ( net-misc/curl )
|
||||
collectd_plugins_write_mongodb? ( dev-libs/mongo-c-driver )
|
||||
|
||||
kernel_FreeBSD? (
|
||||
collectd_plugins_disk? ( sys-libs/libstatgrab )
|
||||
collectd_plugins_interface? ( sys-libs/libstatgrab )
|
||||
collectd_plugins_load? ( sys-libs/libstatgrab )
|
||||
collectd_plugins_memory? ( sys-libs/libstatgrab )
|
||||
collectd_plugins_swap? ( sys-libs/libstatgrab )
|
||||
collectd_plugins_users? ( sys-libs/libstatgrab )
|
||||
)"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig
|
||||
collectd_plugins_java? ( >=virtual/jdk-1.6 )
|
||||
"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
collectd_plugins_java? ( >=virtual/jre-1.6 )
|
||||
collectd_plugins_syslog? ( virtual/logger )
|
||||
selinux? ( sec-policy/selinux-collectd )"
|
||||
|
||||
REQUIRED_USE="
|
||||
collectd_plugins_python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-5.4.1"-{nohal,libocci,libperl,lt}.patch
|
||||
"${FILESDIR}/${PN}-4.10.3"-werror.patch
|
||||
)
|
||||
|
||||
# @FUNCTION: collectd_plugin_kernel_linux
|
||||
# @DESCRIPTION:
|
||||
# USAGE: <plug-in name> <kernel_options> <severity>
|
||||
# kernel_options is a list of kernel configurations options; the check tests whether at least
|
||||
# one of them is enabled. If no, depending on the third argument an elog, ewarn, or eerror message
|
||||
# is emitted.
|
||||
collectd_plugin_kernel_linux() {
|
||||
local multi_opt opt
|
||||
if has ${1} ${COLLECTD_ALL_PLUGINS}; then
|
||||
if use collectd_plugins_${1}; then
|
||||
for opt in ${2}; do
|
||||
if linux_chkconfig_present ${opt}; then return 0; fi
|
||||
done
|
||||
multi_opt=${2//\ /\ or\ }
|
||||
case ${3} in
|
||||
(info)
|
||||
elog "The ${1} plug-in can use kernel features that are disabled now; enable ${multi_opt} in your kernel"
|
||||
;;
|
||||
(warn)
|
||||
ewarn "The ${1} plug-in uses kernel features that are disabled now; enable ${multi_opt} in your kernel"
|
||||
;;
|
||||
(error)
|
||||
eerror "The ${1} plug-in needs kernel features that are disabled now; enable ${multi_opt} in your kernel"
|
||||
;;
|
||||
(*)
|
||||
die "function collectd_plugin_kernel_linux called with invalid third argument"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
collectd_linux_kernel_checks() {
|
||||
linux-info_pkg_setup
|
||||
|
||||
# battery.c:/proc/pmu/battery_%i
|
||||
# battery.c:/proc/acpi/battery
|
||||
collectd_plugin_kernel_linux battery ACPI_BATTERY warn
|
||||
|
||||
# cgroups.c:/sys/fs/cgroup/
|
||||
collectd_plugin_kernel_linux cgroups CONFIG_CGROUPS warn
|
||||
|
||||
# cpufreq.c:/sys/devices/system/cpu/cpu%d/cpufreq/
|
||||
collectd_plugin_kernel_linux cpufreq SYSFS warn
|
||||
collectd_plugin_kernel_linux cpufreq CPU_FREQ_STAT warn
|
||||
|
||||
# nfs.c:/proc/net/rpc/nfs
|
||||
# nfs.c:/proc/net/rpc/nfsd
|
||||
collectd_plugin_kernel_linux nfs NFS_COMMON warn
|
||||
|
||||
# serial.c:/proc/tty/driver/serial
|
||||
# serial.c:/proc/tty/driver/ttyS
|
||||
collectd_plugin_kernel_linux serial SERIAL_CORE warn
|
||||
|
||||
# swap.c:/proc/meminfo
|
||||
collectd_plugin_kernel_linux swap SWAP warn
|
||||
|
||||
# thermal.c:/proc/acpi/thermal_zone
|
||||
# thermal.c:/sys/class/thermal
|
||||
collectd_plugin_kernel_linux thermal "PROC_FS SYSFS" warn
|
||||
collectd_plugin_kernel_linux thermal ACPI_THERMAL warn
|
||||
|
||||
# vmem.c:/proc/vmstat
|
||||
collectd_plugin_kernel_linux vmem VM_EVENT_COUNTERS warn
|
||||
|
||||
# uuid.c:/sys/hypervisor/uuid
|
||||
collectd_plugin_kernel_linux uuid SYSFS info
|
||||
|
||||
# wireless.c:/proc/net/wireless
|
||||
collectd_plugin_kernel_linux wireless "MAC80211 IEEE80211" warn
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if use kernel_linux; then
|
||||
if linux_config_exists; then
|
||||
einfo "Checking your linux kernel configuration:"
|
||||
collectd_linux_kernel_checks
|
||||
else
|
||||
elog "Cannot find a linux kernel configuration. Continuing anyway."
|
||||
fi
|
||||
fi
|
||||
|
||||
java-pkg-opt-2_pkg_setup
|
||||
use collectd_plugins_python && python-single-r1_pkg_setup
|
||||
|
||||
enewgroup collectd
|
||||
enewuser collectd -1 -1 /var/lib/collectd collectd
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
|
||||
# There's some strange prefix handling in the default config file, resulting in
|
||||
# paths like "/usr/var/..."
|
||||
sed -i -e "s:@prefix@/var:/var:g" src/collectd.conf.in || die
|
||||
|
||||
sed -i -e "s:/etc/collectd/collectd.conf:/etc/collectd.conf:g" contrib/collectd.service || die
|
||||
|
||||
# fix installdirs for perl, bug 444360
|
||||
sed -i -e 's/INSTALL_BASE=$(DESTDIR)$(prefix) //' bindings/Makefile.am || die
|
||||
|
||||
if use collectd_plugins_java; then
|
||||
# Set javac -source and -target flags according to (R)DEPEND.
|
||||
sed -i -e "s/\$(JAVAC)/\0 $(java-pkg_javac-args)/g" bindings/java/Makefile.am || die
|
||||
fi
|
||||
|
||||
rm -r libltdl || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Now come the lists of os-dependent plugins. Any plugin that is not listed anywhere here
|
||||
# should work independent of the operating system.
|
||||
|
||||
local linux_plugins="battery cpu cpufreq disk entropy ethstat interface iptables ipvs irq load
|
||||
memory md netlink nfs numa processes serial swap tcpconns thermal users vmem
|
||||
wireless"
|
||||
|
||||
local libstatgrab_plugins="cpu disk interface load memory swap users"
|
||||
local bsd_plugins="cpu tcpconns ${libstatgrab_plugins}"
|
||||
|
||||
local darwin_plugins="apple_sensors battery cpu disk interface memory processes tcpconns"
|
||||
|
||||
local osdependent_plugins="${linux_plugins} ${bsd_plugins} ${darwin_plugins}"
|
||||
local myos_plugins=""
|
||||
if use kernel_linux; then
|
||||
einfo "Enabling Linux plugins."
|
||||
myos_plugins=${linux_plugins}
|
||||
elif use kernel_FreeBSD; then
|
||||
einfo "Enabling FreeBSD plugins."
|
||||
myos_plugins=${bsd_plugins}
|
||||
elif use kernel_Darwin; then
|
||||
einfo "Enabling Darwin plugins."
|
||||
myos_plugins=${darwin_plugins}
|
||||
fi
|
||||
|
||||
# Do we debug?
|
||||
local myconf="$(use_enable debug)"
|
||||
|
||||
local plugin
|
||||
|
||||
# Disable what needs to be disabled.
|
||||
for plugin in ${COLLECTD_DISABLED_PLUGINS}; do
|
||||
myconf+=" --disable-${plugin}"
|
||||
done
|
||||
|
||||
# Set enable/disable for each single plugin.
|
||||
for plugin in ${COLLECTD_ALL_PLUGINS}; do
|
||||
if has ${plugin} ${osdependent_plugins}; then
|
||||
# plugin is os-dependent ...
|
||||
if has ${plugin} ${myos_plugins}; then
|
||||
# ... and available in this os
|
||||
myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})"
|
||||
else
|
||||
# ... and NOT available in this os
|
||||
if use collectd_plugins_${plugin}; then
|
||||
ewarn "You try to enable the ${plugin} plugin, but it is not available for this"
|
||||
ewarn "kernel. Disabling it automatically."
|
||||
fi
|
||||
myconf+=" --disable-${plugin}"
|
||||
fi
|
||||
elif [[ "${plugin}" = "collectd_plugins_perl" ]]; then
|
||||
if use collectd_plugins_perl && ! use perl; then
|
||||
ewarn "Perl plugin disabled as perl bindings disabled by -perl use flag"
|
||||
myconf+= --disable-perl
|
||||
else
|
||||
myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})"
|
||||
fi
|
||||
else
|
||||
myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})"
|
||||
fi
|
||||
done
|
||||
|
||||
# JAVA_HOME is set by eclasses.
|
||||
if use collectd_plugins_java; then
|
||||
myconf+=" --with-java"
|
||||
fi
|
||||
|
||||
# Need libiptc ONLY for iptables. If we try to use it otherwise bug 340109 happens.
|
||||
if ! use collectd_plugins_iptables; then
|
||||
myconf+=" --with-libiptc=no"
|
||||
fi
|
||||
|
||||
if use perl; then
|
||||
myconf+=" --with-perl-bindings=INSTALLDIRS=vendor"
|
||||
else
|
||||
myconf+=" --without-perl-bindings"
|
||||
fi
|
||||
|
||||
# No need for v5upgrade
|
||||
myconf+=" --disable-target_v5upgrade"
|
||||
|
||||
# Finally, run econf.
|
||||
KERNEL_DIR="${KERNEL_DIR}" econf --config-cache --without-included-ltdl $(use_enable static-libs static) --localstatedir=/var ${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
perl_delete_localpod
|
||||
|
||||
find "${D}/usr/" -name "*.la" -exec rm -f {} +
|
||||
|
||||
use collectd_plugins_java && java-pkg_regjar "${ED}"/usr/share/${PN}/java/*.jar
|
||||
# use collectd_plugins_ping && setcap cap_net_raw+ep ${D}/usr/sbin/collectd
|
||||
# we cannot do this yet
|
||||
|
||||
fowners root:collectd /etc/collectd.conf
|
||||
fperms u=rw,g=r,o= /etc/collectd.conf
|
||||
|
||||
dodoc AUTHORS ChangeLog NEWS README TODO
|
||||
|
||||
if use contrib ; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r contrib
|
||||
fi
|
||||
|
||||
keepdir /var/lib/${PN}
|
||||
fowners collectd:collectd /var/lib/${PN}
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd" ${PN}
|
||||
systemd_dounit "contrib/${PN}.service"
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/logrotate" collectd
|
||||
|
||||
sed -i -e 's:^.*PIDFile "/var/run/collectd.pid":PIDFile "/var/run/collectd/collectd.pid":' "${D}"/etc/collectd.conf || die
|
||||
sed -i -e 's:^# SocketFile "/var/run/collectd-unixsock":# SocketFile "/var/run/collectd/collectd-unixsock":' "${D}"/etc/collectd.conf || die
|
||||
sed -i -e 's:^.*LoadPlugin perl$:# The new, correct way to load the perl plugin -- \n# <LoadPlugin perl>\n# Globals true\n# </LoadPlugin>:' "${D}"/etc/collectd.conf || die
|
||||
sed -i -e 's:^.*LoadPlugin python$:# The new, correct way to load the python plugin -- \n# <LoadPlugin python>\n# Globals true\n# </LoadPlugin>:' "${D}"/etc/collectd.conf || die
|
||||
}
|
||||
|
||||
collectd_rdeps() {
|
||||
if (use collectd_plugins_${1} && ! has_version "${2}"); then
|
||||
elog "The ${1} plug-in needs ${2} to be installed locally or remotely to work."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
collectd_rdeps apcups sys-power/apcupsd
|
||||
collectd_rdeps hddtemp app-admin/hddtemp
|
||||
collectd_rdeps mbmon sys-apps/xmbmon
|
||||
collectd_rdeps memcached ">=net-misc/memcached-1.2.2-r2"
|
||||
collectd_rdeps ntpd net-misc/ntp
|
||||
collectd_rdeps openvpn ">=net-misc/openvpn-2.0.9"
|
||||
collectd_rdeps write_mongodb "dev-db/mongodb"
|
||||
|
||||
echo
|
||||
elog "collectd is now started as unprivileged user by default."
|
||||
elog "You may want to revisit the configuration."
|
||||
elog
|
||||
|
||||
if use collectd_plugins_email; then
|
||||
ewarn "The email plug-in is deprecated. To submit statistics please use the unixsock plugin."
|
||||
fi
|
||||
if use contrib; then
|
||||
elog "The scripts in /usr/share/doc/${PF}/collection3 for generating graphs need dev-perl/HTML-Parser,"
|
||||
elog "dev-perl/config-general, dev-perl/regexp-common, and net-analyzer/rrdtool[perl] to be installed."
|
||||
fi
|
||||
}
|
@ -1,398 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
GENTOO_DEPEND_ON_PERL="no"
|
||||
JAVA_PKG_OPT_USE="collectd_plugins_java"
|
||||
# XXX: 5.4.1-r0 stated 2* but it builds fine against 3.4
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit autotools eutils fcaps java-pkg-opt-2 linux-info multilib perl-app python-single-r1 systemd user
|
||||
|
||||
DESCRIPTION="Collects system statistics and provides mechanisms to store the values"
|
||||
|
||||
HOMEPAGE="http://collectd.org"
|
||||
SRC_URI="${HOMEPAGE}/files/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="contrib debug kernel_linux kernel_FreeBSD kernel_Darwin perl selinux static-libs"
|
||||
|
||||
# The plugin lists have to follow here since they extend IUSE
|
||||
|
||||
# Plugins that to my knowledge cannot be supported (eg. dependencies not in gentoo)
|
||||
COLLECTD_IMPOSSIBLE_PLUGINS="aquaero mic netapp pinba sigrok write_kafka xmms"
|
||||
|
||||
# Plugins that still need some work
|
||||
COLLECTD_UNTESTED_PLUGINS="amqp apple_sensors genericjmx ipvs lpar modbus tape"
|
||||
|
||||
# Plugins that have been (compile) tested and can be enabled via COLLECTD_PLUGINS
|
||||
COLLECTD_TESTED_PLUGINS="aggregation apache apcups ascent battery bind ceph
|
||||
cgroups conntrack contextswitch cpu cpufreq csv curl curl_json curl_xml dbi df
|
||||
disk dns drbd email entropy ethstat exec fhcount filecount fscache gmond
|
||||
hddtemp interface ipc ipmi iptables irq java load log_logstash logfile lvm
|
||||
madwifi match_empty_counter match_hashed match_regex match_timediff match_value
|
||||
mbmon md memcachec memcached memory multimeter mysql netlink network nfs nginx
|
||||
notify_desktop notify_email ntpd numa nut olsrd onewire openldap openvpn oracle
|
||||
perl ping postgresql powerdns processes protocols python redis routeros
|
||||
rrdcached rrdtool sensors serial smart snmp statsd swap syslog table tail
|
||||
target_notification target_replace target_scale target_set tcpconns teamspeak2
|
||||
ted thermal threshold tokyotyrant turbostat unixsock uptime users uuid varnish
|
||||
virt vmem wireless write_graphite write_http write_log write_mongodb
|
||||
write_redis write_sensu write_tsdb zfs_arc zookeeper"
|
||||
|
||||
COLLECTD_DISABLED_PLUGINS="${COLLECTD_IMPOSSIBLE_PLUGINS} ${COLLECTD_UNTESTED_PLUGINS}"
|
||||
|
||||
COLLECTD_ALL_PLUGINS=${COLLECTD_TESTED_PLUGINS}
|
||||
|
||||
for plugin in ${COLLECTD_ALL_PLUGINS}; do
|
||||
IUSE="${IUSE} collectd_plugins_${plugin}"
|
||||
done
|
||||
unset plugin
|
||||
|
||||
# Now come the dependencies.
|
||||
|
||||
COMMON_DEPEND="
|
||||
dev-libs/libgcrypt:0
|
||||
sys-devel/libtool
|
||||
perl? ( dev-lang/perl:=[ithreads] )
|
||||
collectd_plugins_apache? ( net-misc/curl )
|
||||
collectd_plugins_ascent? ( net-misc/curl dev-libs/libxml2 )
|
||||
collectd_plugins_bind? ( dev-libs/libxml2:= )
|
||||
collectd_plugins_ceph? ( dev-libs/yajl:= )
|
||||
collectd_plugins_curl? ( net-misc/curl )
|
||||
collectd_plugins_curl_json? ( net-misc/curl dev-libs/yajl:= )
|
||||
collectd_plugins_curl_xml? ( net-misc/curl dev-libs/libxml2:= )
|
||||
collectd_plugins_dbi? ( dev-db/libdbi:= )
|
||||
collectd_plugins_dns? ( net-libs/libpcap:= )
|
||||
collectd_plugins_gmond? ( sys-cluster/ganglia )
|
||||
collectd_plugins_ipmi? ( >=sys-libs/openipmi-2.0.16-r1 )
|
||||
collectd_plugins_iptables? ( >=net-firewall/iptables-1.4.13 )
|
||||
collectd_plugins_log_logstash? ( dev-libs/yajl:= )
|
||||
collectd_plugins_lvm? ( sys-fs/lvm2 )
|
||||
collectd_plugins_memcachec? ( dev-libs/libmemcached:= )
|
||||
collectd_plugins_mysql? ( >=virtual/mysql-5.0 )
|
||||
collectd_plugins_netlink? ( net-libs/libmnl:= )
|
||||
collectd_plugins_nginx? ( net-misc/curl )
|
||||
collectd_plugins_notify_desktop? ( x11-libs/libnotify:= )
|
||||
collectd_plugins_notify_email? ( net-libs/libesmtp dev-libs/openssl:0= )
|
||||
collectd_plugins_nut? ( >=sys-power/nut-2.7.2-r2 )
|
||||
collectd_plugins_onewire? ( sys-fs/owfs )
|
||||
collectd_plugins_oracle? ( dev-db/oracle-instantclient-basic )
|
||||
collectd_plugins_openldap? ( net-nds/openldap )
|
||||
collectd_plugins_perl? ( dev-lang/perl:=[ithreads] )
|
||||
collectd_plugins_ping? ( net-libs/liboping:= )
|
||||
collectd_plugins_postgresql? ( dev-db/postgresql:= )
|
||||
collectd_plugins_python? ( ${PYTHON_DEPS} )
|
||||
collectd_plugins_redis? ( dev-libs/hiredis:= )
|
||||
collectd_plugins_routeros? ( net-libs/librouteros:= )
|
||||
collectd_plugins_rrdcached? ( net-analyzer/rrdtool )
|
||||
collectd_plugins_rrdtool? ( net-analyzer/rrdtool )
|
||||
collectd_plugins_sensors? ( sys-apps/lm_sensors )
|
||||
collectd_plugins_smart? ( dev-libs/libatasmart:= )
|
||||
collectd_plugins_snmp? ( net-analyzer/net-snmp )
|
||||
collectd_plugins_tokyotyrant? ( net-misc/tokyotyrant )
|
||||
collectd_plugins_varnish? ( www-servers/varnish )
|
||||
collectd_plugins_virt? ( app-emulation/libvirt dev-libs/libxml2 )
|
||||
collectd_plugins_write_http? ( net-misc/curl )
|
||||
collectd_plugins_write_mongodb? ( dev-libs/mongo-c-driver:= )
|
||||
collectd_plugins_write_redis? ( dev-libs/hiredis:= )
|
||||
|
||||
kernel_FreeBSD? (
|
||||
collectd_plugins_disk? ( sys-libs/libstatgrab:= )
|
||||
collectd_plugins_interface? ( sys-libs/libstatgrab:= )
|
||||
collectd_plugins_load? ( sys-libs/libstatgrab:= )
|
||||
collectd_plugins_memory? ( sys-libs/libstatgrab:= )
|
||||
collectd_plugins_swap? ( sys-libs/libstatgrab:= )
|
||||
collectd_plugins_users? ( sys-libs/libstatgrab:= )
|
||||
)"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig
|
||||
collectd_plugins_java? ( >=virtual/jdk-1.6 )
|
||||
"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
collectd_plugins_java? ( >=virtual/jre-1.6 )
|
||||
collectd_plugins_syslog? ( virtual/logger )
|
||||
selinux? ( sec-policy/selinux-collectd )"
|
||||
|
||||
REQUIRED_USE="
|
||||
collectd_plugins_python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-5.4.1-libocci.patch"
|
||||
"${FILESDIR}/${PN}-5.5.0-lt.patch"
|
||||
"${FILESDIR}/${PN}-4.10.3-werror.patch"
|
||||
)
|
||||
|
||||
# @FUNCTION: collectd_plugin_kernel_linux
|
||||
# @DESCRIPTION:
|
||||
# USAGE: <plug-in name> <kernel_options> <severity>
|
||||
# kernel_options is a list of kernel configurations options; the check tests whether at least
|
||||
# one of them is enabled. If no, depending on the third argument an elog, ewarn, or eerror message
|
||||
# is emitted.
|
||||
collectd_plugin_kernel_linux() {
|
||||
local multi_opt opt
|
||||
if has ${1} ${COLLECTD_ALL_PLUGINS}; then
|
||||
if use collectd_plugins_${1}; then
|
||||
for opt in ${2}; do
|
||||
if linux_chkconfig_present ${opt}; then return 0; fi
|
||||
done
|
||||
multi_opt=${2//\ /\ or\ }
|
||||
case ${3} in
|
||||
(info)
|
||||
elog "The ${1} plug-in can use kernel features that are disabled now; enable ${multi_opt} in your kernel"
|
||||
;;
|
||||
(warn)
|
||||
ewarn "The ${1} plug-in uses kernel features that are disabled now; enable ${multi_opt} in your kernel"
|
||||
;;
|
||||
(error)
|
||||
eerror "The ${1} plug-in needs kernel features that are disabled now; enable ${multi_opt} in your kernel"
|
||||
;;
|
||||
(*)
|
||||
die "function collectd_plugin_kernel_linux called with invalid third argument"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
collectd_linux_kernel_checks() {
|
||||
linux-info_pkg_setup
|
||||
|
||||
# battery.c:/proc/pmu/battery_%i
|
||||
# battery.c:/proc/acpi/battery
|
||||
collectd_plugin_kernel_linux battery ACPI_BATTERY warn
|
||||
|
||||
# cgroups.c:/sys/fs/cgroup/
|
||||
collectd_plugin_kernel_linux cgroups CONFIG_CGROUPS warn
|
||||
|
||||
# cpufreq.c:/sys/devices/system/cpu/cpu%d/cpufreq/
|
||||
collectd_plugin_kernel_linux cpufreq SYSFS warn
|
||||
collectd_plugin_kernel_linux cpufreq CPU_FREQ_STAT warn
|
||||
|
||||
# nfs.c:/proc/net/rpc/nfs
|
||||
# nfs.c:/proc/net/rpc/nfsd
|
||||
collectd_plugin_kernel_linux nfs NFS_COMMON warn
|
||||
|
||||
# serial.c:/proc/tty/driver/serial
|
||||
# serial.c:/proc/tty/driver/ttyS
|
||||
collectd_plugin_kernel_linux serial SERIAL_CORE warn
|
||||
|
||||
# swap.c:/proc/meminfo
|
||||
collectd_plugin_kernel_linux swap SWAP warn
|
||||
|
||||
# thermal.c:/proc/acpi/thermal_zone
|
||||
# thermal.c:/sys/class/thermal
|
||||
collectd_plugin_kernel_linux thermal "PROC_FS SYSFS" warn
|
||||
collectd_plugin_kernel_linux thermal ACPI_THERMAL warn
|
||||
|
||||
# vmem.c:/proc/vmstat
|
||||
collectd_plugin_kernel_linux vmem VM_EVENT_COUNTERS warn
|
||||
|
||||
# uuid.c:/sys/hypervisor/uuid
|
||||
collectd_plugin_kernel_linux uuid SYSFS info
|
||||
|
||||
# wireless.c:/proc/net/wireless
|
||||
collectd_plugin_kernel_linux wireless "MAC80211 IEEE80211" warn
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if use kernel_linux; then
|
||||
if linux_config_exists; then
|
||||
einfo "Checking your linux kernel configuration:"
|
||||
collectd_linux_kernel_checks
|
||||
else
|
||||
elog "Cannot find a linux kernel configuration. Continuing anyway."
|
||||
fi
|
||||
fi
|
||||
|
||||
java-pkg-opt-2_pkg_setup
|
||||
use collectd_plugins_python && python-single-r1_pkg_setup
|
||||
|
||||
enewgroup collectd
|
||||
enewuser collectd -1 -1 /var/lib/collectd collectd
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch ${PATCHES[@]}
|
||||
epatch_user
|
||||
|
||||
# There's some strange prefix handling in the default config file, resulting in
|
||||
# paths like "/usr/var/..."
|
||||
sed -i -e "s:@prefix@/var:/var:g" src/collectd.conf.in || die
|
||||
|
||||
sed -i -e "s:/etc/collectd/collectd.conf:/etc/collectd.conf:g" contrib/collectd.service || die
|
||||
|
||||
# fix installdirs for perl, bug 444360
|
||||
sed -i -e 's/INSTALL_BASE=$(DESTDIR)$(prefix) //' bindings/Makefile.am || die
|
||||
|
||||
if use collectd_plugins_java; then
|
||||
# Set javac -source and -target flags according to (R)DEPEND.
|
||||
sed -i -e "s/\$(JAVAC)/\0 $(java-pkg_javac-args)/g" bindings/java/Makefile.am || die
|
||||
fi
|
||||
|
||||
rm -r libltdl || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Now come the lists of os-dependent plugins. Any plugin that is not listed anywhere here
|
||||
# should work independent of the operating system.
|
||||
|
||||
local linux_plugins="barometer battery cpu cpufreq disk drbd entropy
|
||||
ethstat interface iptables ipvs irq ipc load memory md netlink nfs
|
||||
numa processes serial swap tcpconns thermal turbostat users vmem
|
||||
wireless zfs_arc"
|
||||
|
||||
local libstatgrab_plugins="cpu disk interface load memory swap users"
|
||||
local bsd_plugins="cpu tcpconns ${libstatgrab_plugins} zfs_arc"
|
||||
|
||||
local darwin_plugins="apple_sensors battery cpu disk interface memory processes tcpconns"
|
||||
|
||||
local osdependent_plugins="${linux_plugins} ${bsd_plugins} ${darwin_plugins}"
|
||||
local myos_plugins=""
|
||||
if use kernel_linux; then
|
||||
einfo "Enabling Linux plugins."
|
||||
myos_plugins=${linux_plugins}
|
||||
elif use kernel_FreeBSD; then
|
||||
einfo "Enabling FreeBSD plugins."
|
||||
myos_plugins=${bsd_plugins}
|
||||
elif use kernel_Darwin; then
|
||||
einfo "Enabling Darwin plugins."
|
||||
myos_plugins=${darwin_plugins}
|
||||
fi
|
||||
|
||||
# Do we debug?
|
||||
local myconf="$(use_enable debug)"
|
||||
|
||||
local plugin
|
||||
|
||||
# Disable what needs to be disabled.
|
||||
for plugin in ${COLLECTD_DISABLED_PLUGINS}; do
|
||||
myconf+=" --disable-${plugin}"
|
||||
done
|
||||
|
||||
# Set enable/disable for each single plugin.
|
||||
for plugin in ${COLLECTD_ALL_PLUGINS}; do
|
||||
if has ${plugin} ${osdependent_plugins}; then
|
||||
# plugin is os-dependent ...
|
||||
if has ${plugin} ${myos_plugins}; then
|
||||
# ... and available in this os
|
||||
myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})"
|
||||
else
|
||||
# ... and NOT available in this os
|
||||
if use collectd_plugins_${plugin}; then
|
||||
ewarn "You try to enable the ${plugin} plugin, but it is not available for this"
|
||||
ewarn "kernel. Disabling it automatically."
|
||||
fi
|
||||
myconf+=" --disable-${plugin}"
|
||||
fi
|
||||
elif [[ "${plugin}" = "collectd_plugins_perl" ]]; then
|
||||
if use collectd_plugins_perl && ! use perl; then
|
||||
ewarn "Perl plugin disabled as perl bindings disabled by -perl use flag"
|
||||
myconf+= --disable-perl
|
||||
else
|
||||
myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})"
|
||||
fi
|
||||
else
|
||||
myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})"
|
||||
fi
|
||||
done
|
||||
|
||||
# JAVA_HOME is set by eclasses.
|
||||
if use collectd_plugins_java; then
|
||||
myconf+=" --with-java"
|
||||
fi
|
||||
|
||||
# Need libiptc ONLY for iptables. If we try to use it otherwise bug 340109 happens.
|
||||
# lots of libs are only needed for plugins, if they are disabled, also disable the lib
|
||||
use collectd_plugins_iptables || myconf+=" --with-libiptc=no"
|
||||
use collectd_plugins_openldap || myconf+=" --with-libldap=no"
|
||||
use collectd_plugins_redis || use collectd_plugins_write_redis || myconf+=" --with-libhiredis=no"
|
||||
use collectd_plugins_smart || myconf+=" --with-libatasmart=no"
|
||||
use collectd_plugins_virt || myconf+=" --with-libvirt=no"
|
||||
|
||||
if use perl; then
|
||||
myconf+=" --with-perl-bindings=INSTALLDIRS=vendor"
|
||||
else
|
||||
myconf+=" --without-perl-bindings"
|
||||
fi
|
||||
|
||||
# No need for v5upgrade
|
||||
myconf+=" --disable-target_v5upgrade"
|
||||
|
||||
# Finally, run econf.
|
||||
KERNEL_DIR="${KERNEL_DIR}" econf --config-cache --without-included-ltdl $(use_enable static-libs static) --localstatedir=/var ${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
perl_delete_localpod
|
||||
|
||||
find "${D}/usr/" -name "*.la" -exec rm -f {} + || die
|
||||
|
||||
use collectd_plugins_java && java-pkg_regjar "${ED}"/usr/share/${PN}/java/*.jar
|
||||
|
||||
fowners root:collectd /etc/collectd.conf
|
||||
fperms u=rw,g=r,o= /etc/collectd.conf
|
||||
|
||||
dodoc AUTHORS ChangeLog NEWS README TODO
|
||||
|
||||
if use contrib ; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r contrib
|
||||
fi
|
||||
|
||||
keepdir /var/lib/${PN}
|
||||
fowners collectd:collectd /var/lib/${PN}
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd" ${PN}
|
||||
systemd_dounit "contrib/${PN}.service"
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/logrotate" collectd
|
||||
|
||||
sed -i -e 's:^.*PIDFile "/var/run/collectd.pid":PIDFile "/var/run/collectd/collectd.pid":' "${D}"/etc/collectd.conf || die
|
||||
sed -i -e 's:^# SocketFile "/var/run/collectd-unixsock":# SocketFile "/var/run/collectd/collectd-unixsock":' "${D}"/etc/collectd.conf || die
|
||||
sed -i -e 's:^.*LoadPlugin perl$:# The new, correct way to load the perl plugin -- \n# <LoadPlugin perl>\n# Globals true\n# </LoadPlugin>:' "${D}"/etc/collectd.conf || die
|
||||
sed -i -e 's:^.*LoadPlugin python$:# The new, correct way to load the python plugin -- \n# <LoadPlugin python>\n# Globals true\n# </LoadPlugin>:' "${D}"/etc/collectd.conf || die
|
||||
}
|
||||
|
||||
collectd_rdeps() {
|
||||
if (use collectd_plugins_${1} && ! has_version "${2}"); then
|
||||
elog "The ${1} plug-in needs ${2} to be installed locally or remotely to work."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use collectd_plugins_ping && fcaps cap_net_raw usr/sbin/collectd
|
||||
|
||||
collectd_rdeps apcups sys-power/apcupsd
|
||||
collectd_rdeps hddtemp app-admin/hddtemp
|
||||
collectd_rdeps mbmon sys-apps/xmbmon
|
||||
collectd_rdeps memcached ">=net-misc/memcached-1.2.2-r2"
|
||||
collectd_rdeps ntpd net-misc/ntp
|
||||
collectd_rdeps openvpn ">=net-misc/openvpn-2.0.9"
|
||||
collectd_rdeps write_mongodb "dev-db/mongodb"
|
||||
|
||||
echo
|
||||
elog "collectd is now started as unprivileged user by default."
|
||||
elog "You may want to revisit the configuration."
|
||||
elog
|
||||
|
||||
if use collectd_plugins_email; then
|
||||
ewarn "The email plug-in is deprecated. To submit statistics please use the unixsock plugin."
|
||||
fi
|
||||
if use contrib; then
|
||||
elog "The scripts in /usr/share/doc/${PF}/collection3 for generating graphs need dev-perl/HTML-Parser,"
|
||||
elog "dev-perl/config-general, dev-perl/regexp-common, and net-analyzer/rrdtool[perl] to be installed."
|
||||
fi
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
diff --git configure.ac configure.ac
|
||||
index 7029e1e..72f6ff4 100644
|
||||
--- configure.ac
|
||||
+++ configure.ac
|
||||
@@ -2941,14 +2941,14 @@ AC_ARG_WITH(oracle, [AS_HELP_STRING([--with-oracle@<:@=ORACLE_HOME@:>@], [Path t
|
||||
])
|
||||
if test "x$ORACLE_HOME" != "x"
|
||||
then
|
||||
- with_oracle_cppflags="-I$ORACLE_HOME/rdbms/public"
|
||||
+ with_oracle_cppflags="-I$ORACLE_HOME/rdbms/public -locci"
|
||||
|
||||
if test -e "$ORACLE_HOME/lib/ldflags"
|
||||
then
|
||||
with_oracle_libs=`cat "$ORACLE_HOME/lib/ldflags"`
|
||||
fi
|
||||
#with_oracle_libs="-L$ORACLE_HOME/lib $with_oracle_libs -lclntsh"
|
||||
- with_oracle_libs="-L$ORACLE_HOME/lib -lclntsh"
|
||||
+ with_oracle_libs="-L$ORACLE_HOME/lib -lclntsh -locci"
|
||||
fi
|
||||
if test "x$with_oracle" = "xyes"
|
||||
then
|
@ -1,29 +0,0 @@
|
||||
diff --git configure.ac configure.ac
|
||||
index ce8a9bc..eaa464e 100644
|
||||
--- configure.ac
|
||||
+++ configure.ac
|
||||
@@ -3109,11 +3109,13 @@ if test "x$with_libperl" = "xyes" \
|
||||
then
|
||||
SAVE_CFLAGS="$CFLAGS"
|
||||
SAVE_LDFLAGS="$LDFLAGS"
|
||||
+ SAVE_LIBS="$LIBS"
|
||||
dnl ARCHFLAGS="" -> disable multi -arch on OSX (see Config_heavy.pl:fetch_string)
|
||||
PERL_CFLAGS=`ARCHFLAGS="" $perl_interpreter -MExtUtils::Embed -e ccopts`
|
||||
PERL_LDFLAGS=`ARCHFLAGS="" $perl_interpreter -MExtUtils::Embed -e ldopts`
|
||||
CFLAGS="$CFLAGS $PERL_CFLAGS"
|
||||
LDFLAGS="$LDFLAGS $PERL_LDFLAGS"
|
||||
+ LIBS="$LIBS -lperl -lpthread"
|
||||
|
||||
AC_CACHE_CHECK([for libperl],
|
||||
[c_cv_have_libperl],
|
||||
@@ -3132,7 +3134,10 @@ dnl ARCHFLAGS="" -> disable multi -arch on OSX (see Config_heavy.pl:fetch_string
|
||||
]]]
|
||||
)],
|
||||
[c_cv_have_libperl="yes"],
|
||||
- [c_cv_have_libperl="no"]
|
||||
+ [
|
||||
+ c_cv_have_libperl="no"
|
||||
+ LIBS="$SAVE_LIBS"
|
||||
+ ]
|
||||
)
|
||||
)
|
@ -1,32 +0,0 @@
|
||||
diff --git Makefile.am Makefile.am
|
||||
index 5267123..a7e0d0c 100644
|
||||
--- Makefile.am
|
||||
+++ Makefile.am
|
||||
@@ -1,6 +1,4 @@
|
||||
-ACLOCAL_AMFLAGS = -I libltdl/m4
|
||||
-
|
||||
-SUBDIRS = libltdl src bindings .
|
||||
+SUBDIRS = src bindings .
|
||||
|
||||
INCLUDES = $(LTDLINCL)
|
||||
|
||||
diff --git configure.ac configure.ac
|
||||
index eaa464e..d652d46 100644
|
||||
--- configure.ac
|
||||
+++ configure.ac
|
||||
@@ -7,7 +7,6 @@ AC_CONFIG_AUX_DIR([libltdl/config])
|
||||
m4_ifdef([LT_PACKAGE_VERSION],
|
||||
# libtool >= 2.2
|
||||
[
|
||||
- LT_CONFIG_LTDL_DIR([libltdl])
|
||||
LT_INIT([dlopen])
|
||||
LTDL_INIT([convenience])
|
||||
AC_DEFINE(LIBTOOL_VERSION, 2, [Define to used libtool version.])
|
||||
@@ -19,7 +18,6 @@ m4_ifdef([LT_PACKAGE_VERSION],
|
||||
AC_SUBST(LTDLINCL)
|
||||
AC_SUBST(LIBLTDL)
|
||||
AC_LIBTOOL_DLOPEN
|
||||
- AC_CONFIG_SUBDIRS(libltdl)
|
||||
AC_DEFINE(LIBTOOL_VERSION, 1, [Define to used libtool version.])
|
||||
]
|
||||
)
|
@ -1,24 +0,0 @@
|
||||
diff --git configure.ac configure.ac
|
||||
index 7029e1e..ad5e336 100644
|
||||
--- configure.ac
|
||||
+++ configure.ac
|
||||
@@ -1351,18 +1351,7 @@ AC_CHECK_LIB(resolv, res_search,
|
||||
AM_CONDITIONAL(BUILD_WITH_LIBRESOLV, test "x$with_libresolv" = "xyes")
|
||||
|
||||
dnl Check for HAL (hardware abstraction library)
|
||||
-with_libhal="yes"
|
||||
-AC_CHECK_LIB(hal,libhal_device_property_exists,
|
||||
- [AC_DEFINE(HAVE_LIBHAL, 1, [Define to 1 if you have 'hal' library])],
|
||||
- [with_libhal="no"])
|
||||
-if test "x$with_libhal" = "xyes"; then
|
||||
- if test "x$PKG_CONFIG" != "x"; then
|
||||
- BUILD_WITH_LIBHAL_CFLAGS="`pkg-config --cflags hal`"
|
||||
- BUILD_WITH_LIBHAL_LIBS="`pkg-config --libs hal`"
|
||||
- AC_SUBST(BUILD_WITH_LIBHAL_CFLAGS)
|
||||
- AC_SUBST(BUILD_WITH_LIBHAL_LIBS)
|
||||
- fi
|
||||
-fi
|
||||
+with_libhal="no"
|
||||
|
||||
m4_divert_once([HELP_WITH], [
|
||||
collectd additional packages:])
|
@ -1,35 +0,0 @@
|
||||
diff --git Makefile.am Makefile.am
|
||||
index 5267123..a7e0d0c 100644
|
||||
--- Makefile.am
|
||||
+++ Makefile.am
|
||||
@@ -1,6 +1,4 @@
|
||||
-ACLOCAL_AMFLAGS = -I libltdl/m4
|
||||
-
|
||||
-SUBDIRS = libltdl src bindings .
|
||||
+SUBDIRS = src bindings .
|
||||
|
||||
INCLUDES = $(LTDLINCL)
|
||||
|
||||
--- configure.ac.old 2016-01-04 13:55:39.286846436 +0400
|
||||
+++ configure.ac 2016-01-04 13:56:07.905362298 +0400
|
||||
@@ -2,12 +2,10 @@
|
||||
AC_INIT([collectd],[m4_esyscmd(./version-gen.sh)])
|
||||
AC_CONFIG_SRCDIR(src/)
|
||||
AC_CONFIG_HEADERS(src/config.h)
|
||||
-AC_CONFIG_AUX_DIR([libltdl/config])
|
||||
|
||||
m4_ifdef([LT_PACKAGE_VERSION],
|
||||
# libtool >= 2.2
|
||||
[
|
||||
- LT_CONFIG_LTDL_DIR([libltdl])
|
||||
LT_INIT([dlopen])
|
||||
LTDL_INIT([convenience])
|
||||
AC_DEFINE(LIBTOOL_VERSION, 2, [Define to used libtool version.])
|
||||
@@ -19,7 +17,6 @@
|
||||
AC_SUBST(LTDLINCL)
|
||||
AC_SUBST(LIBLTDL)
|
||||
AC_LIBTOOL_DLOPEN
|
||||
- AC_CONFIG_SUBDIRS(libltdl)
|
||||
AC_DEFINE(LIBTOOL_VERSION, 1, [Define to used libtool version.])
|
||||
]
|
||||
)
|
@ -1,22 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
# Nice value used to launch collectd, to change priority of the process. As
|
||||
# you usually will want to run it in background, a default of 5 is used.
|
||||
#
|
||||
#COLLECTD_NICELVL='5'
|
||||
|
||||
# Location of configuration file. Modify if you don't like the standard one.
|
||||
#
|
||||
#COLLECTD_CFGFILE='/etc/collectd.conf'
|
||||
|
||||
# File used to store the PID file. Usually you won't need to touch it.
|
||||
#
|
||||
#COLLECTD_PIDFILE='/var/run/collectd/collectd.pid'
|
||||
|
||||
# User to run collectd as (default is collectd, change to root or give
|
||||
# collectd user appropriate privileges if you use one of the plugins that
|
||||
# require it, as e.g. ping or iptables plugins)
|
||||
#
|
||||
#COLLECTD_USER='collectd'
|
@ -1,62 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
: ${COLLECTD_PIDFILE:='/var/run/collectd/collectd.pid'}
|
||||
: ${COLLECTD_CFGFILE:='/etc/collectd.conf'}
|
||||
: ${COLLECTD_NICELVL:='5'}
|
||||
: ${COLLECTD_USER:='collectd'}
|
||||
|
||||
extra_commands="configtest"
|
||||
|
||||
depend() {
|
||||
use net
|
||||
}
|
||||
|
||||
configtest() {
|
||||
ebegin "Checking ${SVCNAME} configuration"
|
||||
checkconfig
|
||||
eend $?
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
if [ $(sed '/^$\|^#/d' ${COLLECTD_CFGFILE} | grep -c 'LoadPlugin\w\+oracle') != 0 ] ; then
|
||||
if [ -e /etc/env.d/50oracle-instantclient-basic ] ; then
|
||||
. /etc/env.d/50oracle-instantclient-basic
|
||||
export ORACLE_HOME
|
||||
export TNS_ADMIN
|
||||
else
|
||||
ewarn "Unable to set Oracle environment, Oracle plugin wont work"
|
||||
fi
|
||||
fi
|
||||
|
||||
/usr/sbin/collectd -t -C "${COLLECTD_CFGFILE}" 1>/dev/null 2>&1
|
||||
ret=$?
|
||||
if [ $ret -ne 0 ]; then
|
||||
eerror "${SVCNAME} has detected an error in your setup:"
|
||||
/usr/sbin/collectd -t -C "${COLLECTD_CFGFILE}"
|
||||
fi
|
||||
|
||||
return $ret
|
||||
}
|
||||
|
||||
start() {
|
||||
checkconfig || return 1
|
||||
[ -d /var/run/collectd ] || mkdir /var/run/collectd && chown collectd:collectd /var/run/collectd
|
||||
|
||||
ebegin "Starting collectd"
|
||||
start-stop-daemon --start --user "${COLLECTD_USER}:collectd" \
|
||||
--env LC_NUMERIC=C \
|
||||
--nicelevel "${COLLECTD_NICELVL}" --exec /usr/sbin/collectd -- \
|
||||
-P "${COLLECTD_PIDFILE}" -C "${COLLECTD_CFGFILE}"
|
||||
eend $? "Failed to start collectd"
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping collectd"
|
||||
start-stop-daemon --stop \
|
||||
--env LC_NUMERIC=C \
|
||||
--pidfile "${COLLECTD_PIDFILE}"
|
||||
eend $? "Failed to stop collectd"
|
||||
}
|
@ -0,0 +1,133 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
|
||||
inherit eutils systemd distutils-r1
|
||||
|
||||
DESCRIPTION="Salt is a remote execution and configuration manager"
|
||||
HOMEPAGE="http://saltstack.org/"
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git"
|
||||
EGIT_BRANCH="develop"
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova"
|
||||
IUSE+=" openssl profile redis selinux test timelib raet +zeromq vim-syntax"
|
||||
|
||||
RDEPEND="sys-apps/pciutils
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
>=dev-python/msgpack-0.3[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/markupsafe[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-4.2.1[${PYTHON_USEDEP}]
|
||||
virtual/python-futures[${PYTHON_USEDEP}]
|
||||
libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] )
|
||||
mako? ( dev-python/mako[${PYTHON_USEDEP}] )
|
||||
ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
|
||||
libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] )
|
||||
openssl? (
|
||||
dev-libs/openssl:*[-bindist]
|
||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
||||
)
|
||||
raet? (
|
||||
>=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/raet-0.6.0[${PYTHON_USEDEP}]
|
||||
)
|
||||
zeromq? (
|
||||
>=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycrypto-2.6.1[${PYTHON_USEDEP}]
|
||||
)
|
||||
cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] )
|
||||
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
||||
keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
|
||||
mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
|
||||
redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
|
||||
selinux? ( sec-policy/selinux-salt )
|
||||
timelib? ( dev-python/timelib[${PYTHON_USEDEP}] )
|
||||
nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] )
|
||||
neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] )
|
||||
gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
|
||||
profile? ( dev-python/yappi[${PYTHON_USEDEP}] )
|
||||
vim-syntax? ( app-vim/salt-vim )"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
dev-python/virtualenv[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/timelib[${PYTHON_USEDEP}]
|
||||
>=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/moto-0.3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/SaltTesting-2015.2.16[${PYTHON_USEDEP}]
|
||||
${RDEPEND}
|
||||
)"
|
||||
|
||||
DOCS=(README.rst AUTHORS)
|
||||
|
||||
REQUIRED_USE="|| ( raet zeromq )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2015.8.0-remove-buggy-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-auth-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-cron-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.5.5-remove-buggy-tests.patch"
|
||||
"${FILESDIR}/${PN}-2015.8.2-tmpdir.patch"
|
||||
)
|
||||
|
||||
python_prepare() {
|
||||
# this test fails because it trys to "pip install distribute"
|
||||
rm tests/unit/{modules,states}/zcbuildout_test.py \
|
||||
tests/unit/modules/{rh_ip,win_network,random_org}_test.py
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local svc
|
||||
USE_SETUPTOOLS=1 distutils-r1_python_install_all
|
||||
|
||||
for svc in minion master syndic api; do
|
||||
newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc}
|
||||
newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc}
|
||||
systemd_dounit "${FILESDIR}"/salt-${svc}.service
|
||||
done
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins -r conf/*
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local tempdir
|
||||
# testsuite likes lots of files
|
||||
ulimit -n 3072
|
||||
|
||||
# ${T} is too long a path for the tests to work
|
||||
tempdir="$(mktemp -dup /tmp salt-XXX)"
|
||||
mkdir "${T}/$(basename "${tempdir}")"
|
||||
|
||||
(
|
||||
cleanup() { rm -f "${tempdir}"; }
|
||||
trap cleanup EXIT
|
||||
|
||||
addwrite "${tempdir}"
|
||||
ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}"
|
||||
|
||||
USE_SETUPTOOLS=1 SHELL="/bin/bash" TMPDIR="${tempdir}" \
|
||||
${EPYTHON} tests/runtests.py \
|
||||
--unit-tests --no-report --verbose
|
||||
|
||||
) || die "testing failed"
|
||||
}
|
@ -1,8 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>arfrever.fta@gmail.com</email>
|
||||
<name>Arfrever Frehtes Taifersar Arahesis</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -1,8 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>arfrever.fta@gmail.com</email>
|
||||
<name>Arfrever Frehtes Taifersar Arahesis</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -1,8 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>arfrever.fta@gmail.com</email>
|
||||
<name>Arfrever Frehtes Taifersar Arahesis</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -1,13 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="dictmanager">
|
||||
Enable dictionary manager. Requires <pkg>dev-qt/qtwebkit</pkg>.
|
||||
</flag>
|
||||
</use>
|
||||
<maintainer type="person">
|
||||
<email>arfrever.fta@gmail.com</email>
|
||||
<name>Arfrever Frehtes Taifersar Arahesis</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="dictmanager">
|
||||
Enable dictionary manager. Requires <pkg>dev-qt/qtwebkit</pkg>.
|
||||
</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
@ -1,8 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>arfrever.fta@gmail.com</email>
|
||||
<name>Arfrever Frehtes Taifersar Arahesis</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -1,16 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>dlan@gentoo.org</email>
|
||||
<name>Yixun Lan</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://code.google.com/p/rimeime/issues/list</bugs-to>
|
||||
<remote-id type="google-code">rimeime</remote-id>
|
||||
</upstream>
|
||||
<maintainer type="person">
|
||||
<email>arfrever.fta@gmail.com</email>
|
||||
<name>Arfrever Frehtes Taifersar Arahesis</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>dlan@gentoo.org</email>
|
||||
<name>Yixun Lan</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://code.google.com/p/rimeime/issues/list</bugs-to>
|
||||
<remote-id type="google-code">rimeime</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
@ -1,8 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>arfrever.fta@gmail.com</email>
|
||||
<name>Arfrever Frehtes Taifersar Arahesis</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -1,8 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>arfrever.fta@gmail.com</email>
|
||||
<name>Arfrever Frehtes Taifersar Arahesis</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -1,20 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="autostart">Enable xdg-compatible autostart of fcitx</flag>
|
||||
<flag name="enchant">Use <pkg>app-text/enchant</pkg> for text prediction</flag>
|
||||
<flag name="introspection">Enable GObject Introspection</flag>
|
||||
<flag name="gtk">Install GTK2 IM module</flag>
|
||||
<flag name="gtk3">Install GTK3 IM module</flag>
|
||||
<flag name="opencc">Enable OpenCC for Chinese Transform</flag>
|
||||
<flag name="pango">Enable support for <pkg>x11-libs/pango</pkg></flag>
|
||||
<flag name="qt4">Install Qt4 IM module</flag>
|
||||
<flag name="snooper">Enable Key Snooper for GTK app</flag>
|
||||
<flag name="table">Enable Table IM</flag>
|
||||
</use>
|
||||
<maintainer type="person">
|
||||
<email>arfrever.fta@gmail.com</email>
|
||||
<name>Arfrever Frehtes Taifersar Arahesis</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="autostart">Enable xdg-compatible autostart of fcitx</flag>
|
||||
<flag name="enchant">Use <pkg>app-text/enchant</pkg> for text prediction</flag>
|
||||
<flag name="introspection">Enable GObject Introspection</flag>
|
||||
<flag name="gtk">Install GTK2 IM module</flag>
|
||||
<flag name="gtk3">Install GTK3 IM module</flag>
|
||||
<flag name="opencc">Enable OpenCC for Chinese Transform</flag>
|
||||
<flag name="pango">Enable support for <pkg>x11-libs/pango</pkg></flag>
|
||||
<flag name="qt4">Install Qt4 IM module</flag>
|
||||
<flag name="snooper">Enable Key Snooper for GTK app</flag>
|
||||
<flag name="table">Enable Table IM</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
@ -1,8 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>arfrever.fta@gmail.com</email>
|
||||
<name>Arfrever Frehtes Taifersar Arahesis</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>cjk@gentoo.org</email>
|
||||
<name>Cjk</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -1,2 +1,2 @@
|
||||
DIST sigil-0.8.7.tar.gz 19394061 SHA256 0352cc46714ebb5067a0fbdbbc76dded8f10ea0f4f43374c7dbcac6eba49e104 SHA512 24b74c835ae1f8fb887c9d2c59b3ccc6720ce1fe8d19a6b0056754ab5ea6e63c34c4b229f4e4b3a880e722876d288e58385f5a0ad15b295f147b77b1acf28652 WHIRLPOOL 2cb7a8a928069a2f005396faa9bdacde1f77f3cca3a3ba2458b8562e48298a127b9de9d7ecea5f106ad68865d5074b13fff5a234497b2b6655ac1a3c3edef827
|
||||
DIST sigil-0.9.3.tar.gz 18095814 SHA256 714417ec2ac8aa21a29dcc9fd5054479fcba965029c1b881f8229ca76781c404 SHA512 c3463e0b16188b9d15f2f00e2b4fb8c565c0281cde144b840e49dbf7026462251d44ad8b5ae4b0ac8f88569ce73c6a9bcd781864283f3b5b8b25be7962b0f9b1 WHIRLPOOL 29cbf950015a562c247a127c527dd09f45328d799b710f9715d720798a89e77e781758978c683a1b85fe55690679cc8aa99f71c24786e4a7e534515664335644
|
||||
DIST sigil-0.9.4.tar.gz 18084460 SHA256 97872d88e1b55de638f77add19d95f867b39fa919ed98bfe7a7e11b0bc44c168 SHA512 dad5d44061375da99748d767c0cc288e11d02cc475c239b7709b4ace36cfd0deec8b2a5bcd74431e0465e1cd4d927bafd094ba238aec06bf40ec62d43d568cc1 WHIRLPOOL 5ecbb09f373e976f716dfc2c95d504bb92f40bf5cc42f0b09c90430ca67141e1e0feb89cdabcc1fac225b1785a3bf443299dd8eeb8dd39824f044c9a32a81f52
|
||||
|
@ -0,0 +1,26 @@
|
||||
diff -Naur Sigil-0.9.4/internal/gumbo/CMakeLists.txt Sigil-0.9.4.b/internal/gumbo/CMakeLists.txt
|
||||
--- Sigil-0.9.4/internal/gumbo/CMakeLists.txt 2016-03-13 20:20:52.000000000 +0100
|
||||
+++ Sigil-0.9.4.b/internal/gumbo/CMakeLists.txt 2016-03-22 14:50:26.026558216 +0100
|
||||
@@ -40,4 +40,5 @@
|
||||
|
||||
if( UNIX AND NOT APPLE )
|
||||
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99" )
|
||||
+ install( TARGETS sigilgumbo DESTINATION ${CMAKE_INSTALL_PREFIX}/${LIBDIR}/sigil/ )
|
||||
endif()
|
||||
diff -Naur Sigil-0.9.4/src/CMakeLists.txt Sigil-0.9.4.b/src/CMakeLists.txt
|
||||
--- Sigil-0.9.4/src/CMakeLists.txt 2016-03-13 20:20:52.000000000 +0100
|
||||
+++ Sigil-0.9.4.b/src/CMakeLists.txt 2016-03-22 14:49:49.628556236 +0100
|
||||
@@ -1015,12 +1015,10 @@
|
||||
endif()
|
||||
|
||||
# Standard Linux 'make install'
|
||||
- install( TARGETS sigil DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/sigil/ )
|
||||
+ install( TARGETS sigil DESTINATION ${CMAKE_INSTALL_PREFIX}/${LIBDIR}/sigil/ )
|
||||
install( PROGRAMS ${LINUX_LAUNCH_INSTALL_SCRIPT_CONFIGURED} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin/ RENAME ${PROJECT_NAME} )
|
||||
if( NOT USE_SYSTEM_LIBS OR NOT HUNSPELL_FOUND )
|
||||
- install( PROGRAMS ${HUNSPELL_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/sigil/ )
|
||||
endif()
|
||||
- install( PROGRAMS ${GUMBO_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/sigil/ )
|
||||
install( FILES ${LINUX_DESKTOP_FILE} DESTINATION ${SHARE_INSTALL_PREFIX}/share/applications/ )
|
||||
install( FILES ${LINUX_DESKTOP_ICON_FILE} DESTINATION ${SHARE_INSTALL_PREFIX}/share/pixmaps RENAME sigil.png )
|
||||
install( FILES ${QM_FILES} DESTINATION ${SIGIL_SHARE_ROOT}/translations/ )
|
@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
MY_P="u-boot-${PV/_/-}"
|
||||
DESCRIPTION="utilities for working with Das U-Boot"
|
||||
HOMEPAGE="http://www.denx.de/wiki/U-Boot/WebHome"
|
||||
SRC_URI="ftp://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_compile() {
|
||||
# Unset a few KBUILD variables. Bug #540476
|
||||
unset KBUILD_OUTPUT KBUILD_SRC
|
||||
emake defconfig
|
||||
emake \
|
||||
HOSTSTRIP=: \
|
||||
STRIP=: \
|
||||
HOSTCC="$(tc-getCC)" \
|
||||
HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \
|
||||
HOSTLDFLAGS="${LDFLAGS}" \
|
||||
CONFIG_ENV_OVERWRITE=y \
|
||||
tools-all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd tools
|
||||
dobin bmp_logo gen_eth_addr img2srec mkimage
|
||||
dobin easylogo/easylogo
|
||||
dobin env/fw_printenv
|
||||
dosym fw_printenv /usr/bin/fw_setenv
|
||||
insinto /etc
|
||||
doins env/fw_env.config
|
||||
doman "${S}/doc/mkimage.1"
|
||||
}
|
@ -1,2 +1,4 @@
|
||||
DIST libmaxminddb-1.1.2.tar.gz 646557 SHA256 e2c0ea40ad932e5f0a0314a13fbd1354889b4ae85472a5499edb6279dd4964fa SHA512 46feef69cccdbc91500bdc1eebc6f89beb9fdf8d38749bccf965d8f5ea590b5cb09cf04c5fab388926c4878f7ed4edc60ca18bbcb9b79e0759a32f3255b548ca WHIRLPOOL fffee216829118b0b73487c2d99bf0929d29c27ffa78589eb4834df27f44625d552e2bda34e48a98386e53c3065fcb634b1855ec73289e381e174dd2226f4f1a
|
||||
DIST libmaxminddb-1.1.4.tar.gz 657648 SHA256 fb618d22f9dd3494faf860e82e75e4e1f4cc14410a01118feb7bb7c31ea089a4 SHA512 d6f94d4bd606fb821f108995e2388c3d1bbb093d8bde7cede52aec4660bd3f720ec10e6d79b758d52d53cdd65ac1e8e7b343029afca4d5d56a75fc961b3152c1 WHIRLPOOL bfbb7d61b0c99ebed746f015433eea71006f076d1a82595a9ee53e098072684c4f64e6201446c3227285994c589bd5be1eb7406329f1b3ac3865fcd9a6d593c8
|
||||
DIST libmaxminddb-1.1.5.tar.gz 672677 SHA256 655397037a70a08b276500f67c0f95f315f1a84809d6a5742593eb2720717d8a SHA512 16a554f39aa4133c0ee0ddf3327811455255b6b215d3bfb3a569f8fe0bd13a72946dc7fd8d1a9b2b4285dd6d96a8e3ae05c437c738e1b2c79703bdc6ffac13f6 WHIRLPOOL 9d3efb9e4cb8fcab221b6c1c81882c9177d66ff189f13b187973941bdfaa4ea144c08efbcf2008203a319dc05d181d47ff31beceb25dec440664fbda9952eab2
|
||||
DIST libmaxminddb-1.2.0.tar.gz 658820 SHA256 1fe859ed714f94fc902a145453f7e1b5cd928718179ba4c4fcb7f6ae0df7ad37 SHA512 ebfa358c3f9cae8b13ca52d47e26d5e3e036e8455432b9fa250b13c59d71addf7748ab112ac926a177b646706b27651b733810dde497786fe65c9d150e621af9 WHIRLPOOL 98e0f2d63e4c4544f5de8559bfd5ca0095994010c9856867e595316ba31f6acdcbecb0208449eba2ce6029572589b206c5b2aea1d945ed2a81e4f22086bc74c3
|
||||
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="C library for the MaxMind DB file format"
|
||||
HOMEPAGE="https://github.com/maxmind/libmaxminddb"
|
||||
SRC_URI="${HOMEPAGE}/releases/download/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0/0.0.7"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="static-libs"
|
||||
|
||||
DOCS=( Changes.md )
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
prune_libtool_files
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="C library for the MaxMind DB file format"
|
||||
HOMEPAGE="https://github.com/maxmind/libmaxminddb"
|
||||
SRC_URI="${HOMEPAGE}/releases/download/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0/0.0.7"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="static-libs"
|
||||
|
||||
DOCS=( Changes.md )
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
prune_libtool_files
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST libressl-2.2.5.tar.gz 2966527 SHA256 e3caded0469d8dc64f4ca2fe8e499ada4dd014e84d1c5a71818d39e54e6c914b SHA512 501d04cb966260854082d374e60aabde21bcd65a331ff7c76044f2053b22ddab4914710b223b400a3a181873c6af5e2e7da5f04bdd9028fddbf420e259a2863a WHIRLPOOL 47f7d35ceff5004af0c2f79509678c4826eabe05225dbcf5cbe1f9cb358d1657ff288a702e14bfd578fd03e38256d2aa2c79ec724a05c98aa91317e6a9a5f9d4
|
||||
DIST libressl-2.2.6.tar.gz 2965531 SHA256 1ee19994cffd047d40f63ba149115dba18a681b0cc923beec301bf424b58d64f SHA512 41e29431ad9e8b18e2dbc30fe9df1d7be3ca372d5d7757b5b01f8904515bafd5333446957fbc9874f64f384dae56cf6bf29d6808a7c0df1836b55ea64804a4bf WHIRLPOOL 49b6efa211ea4789e51388d3ebfec941dfedad427b806b33d439a7639e09d16e5c9004edc4a4c8e3de63040ebc2fe0a3a3819c68ed674e3bb36bb52b49e75ce5
|
||||
DIST libressl-2.3.2.tar.gz 3063638 SHA256 80f45fae4859f161b1980cad846d4217417d0c89006ad29c0ea8c88da564a96a SHA512 619acf3e9c670cc5f32aa9e0064e8b72297bfc05c68743c5cb9f7b7332207d05fc43f44ea9652db9b651b301e8ce5dd90777a20a4a25e8145d1f7fa977d782c1 WHIRLPOOL 41a1fb795c05202d03d40d6b7e30831684d659eb970620d410c63d5158320eadec707721b30e29afa6c0c72dbe90d17234f82f34873646f98f83e63baeae093c
|
||||
DIST libressl-2.3.3.tar.gz 3019069 SHA256 76733166187cc8587e0ebe1e83965ef257262a1a676a36806edd3b6d51b50aa9 SHA512 5b8003af0f6fd049de7d36cdda5b3e0b7e58aeef92455806f3927094fd63edb6281e827b8d237907b455d754a2be913682b1dd954a71873941117d082842f59e WHIRLPOOL b99f3585fef4e9ceaf0ce9f0cf2877e48c3be5f6b649a07c2ae235bc6b1c0835c9c9d7528135dd17cb3bfe9b353618de4d40915e573df6e93b79a2b612bc67c7
|
||||
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib-minimal
|
||||
|
||||
DESCRIPTION="Free version of the SSL/TLS protocol forked from OpenSSL"
|
||||
HOMEPAGE="http://www.libressl.org/"
|
||||
SRC_URI="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${P}.tar.gz"
|
||||
|
||||
LICENSE="ISC openssl"
|
||||
SLOT="0/35" # reflects ABI of libcrypto.so and libssl.so
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86"
|
||||
IUSE="+asm static-libs"
|
||||
|
||||
RDEPEND="!dev-libs/openssl:0"
|
||||
DEPEND="${RDEPEND}"
|
||||
PDEPEND="app-misc/ca-certificates"
|
||||
|
||||
src_prepare() {
|
||||
touch crypto/Makefile.in
|
||||
sed -i \
|
||||
-e '/^[ \t]*CFLAGS=/s#-g ##' \
|
||||
-e '/^[ \t]*CFLAGS=/s#-g"#"#' \
|
||||
-e '/^[ \t]*CFLAGS=/s#-O2 ##' \
|
||||
-e '/^[ \t]*CFLAGS=/s#-O2"#"#' \
|
||||
-e '/^[ \t]*USER_CFLAGS=/s#-O2 ##' \
|
||||
-e '/^[ \t]*USER_CFLAGS=/s#-O2"#"#' \
|
||||
configure || die "fixing CFLAGS failed"
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE="${S}" econf \
|
||||
$(use_enable asm) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
emake check
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
prune_libtool_files
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST core_kernel-113.24.00.tar.gz 647874 SHA256 e245cddd9bdf847a4f9c1d88922bbf567b0badc30ce9acec3933ae515acc68c6 SHA512 6cdf8f400d689fb2501d2dcedb9b287dd3ac5edb4bb8a6310f1ca92c8370f3b38ab1b68791a61034c21cb101c6f390f876fc340fde46c901a2161fa11b2d3f1f WHIRLPOOL 6d2908aa37a56342019e1fd53f845c824b61b73ffdfe66adb901b5f263a53b880ec389329897df585178fd049a8196140ce8a0f51622f51b156e210171ee863b
|
||||
DIST core_kernel-113.33.00.tar.gz 663386 SHA256 2c24033532c88c6e2d8e77bac650e7398b9ec67dbdd76e8b8a10f45f6d9c64e0 SHA512 f9ddb9e23b6a98b5c47714d90aeec96b495231bcd088a73a37cb40d841a1a230aa6647e2b97f8509e11f0f6f8704c459bd3d5f2ade569018d85a4e083fc2bad3 WHIRLPOOL 4e52a336ce57ae0756fe0f45b4a3930ff40385fcf58df4edcf1c552e8c8f5f80410b2583c97e87e0577f1da3f55eecc4930c73ba3dcc62c9134d97618424159b
|
||||
DIST core_kernel-113.33.01.tar.gz 663070 SHA256 ea39cc3bed70f2d51bd2dcffa7f27310b8a01b0cd2da8256a5ba85ab58662786 SHA512 62c97bab8a6044549290648463153b257c7ae910485034894b441701e92d62bfe6d284a2a1ec80f39b3a18732d9d3a2a13ada150ae55da26aa0fd7d4a25fc446 WHIRLPOOL ee69469febdf27bdd7086d2065731e7d23639db1442b3bc5f4711b86836c30c090efbb06c9bdbc7f389b28c5aef1806680fa1c03dae0d366a431177efd334c79
|
||||
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
OASIS_BUILD_DOCS=1
|
||||
OASIS_BUILD_TESTS=1
|
||||
|
||||
inherit oasis
|
||||
|
||||
DESCRIPTION="System-independent part of Core"
|
||||
HOMEPAGE="http://www.janestreet.com/ocaml"
|
||||
SRC_URI="http://ocaml.janestreet.com/ocaml-core/${PV%.*}/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1-with-linking-exception"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
>=dev-ml/bin-prot-112.17.00:=
|
||||
>=dev-ml/fieldslib-109.20.00:=
|
||||
dev-ml/ppx_assert:=
|
||||
dev-ml/ppx_bench:=
|
||||
dev-ml/ppx_driver:=
|
||||
dev-ml/ppx_expect:=
|
||||
dev-ml/ppx_inline_test:=
|
||||
dev-ml/ppx_jane:=
|
||||
>=dev-ml/sexplib-109.20.00:=
|
||||
>=dev-ml/variantslib-109.15.00:=
|
||||
>=dev-ml/typerep-111.17:=
|
||||
dev-ml/result:=
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
emake setup.exe
|
||||
OASIS_SETUP_COMMAND="./setup.exe" oasis_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
opam-installer -i \
|
||||
--prefix="${ED}/usr" \
|
||||
--libdir="${D}/$(ocamlc -where)" \
|
||||
--docdir="${ED}/usr/share/doc/${PF}" \
|
||||
${PN}.install || die
|
||||
dodoc CHANGES.md
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST ppx_expect-113.24.00.tar.gz 69986 SHA256 c06ab7c70219da64c0d334ab91aad9f58d52b6e9303ab5669f5674e0439f3ad9 SHA512 194384db2cd8dc2994cbf7b4d8f0480d11e8c4b23fee3e893afcfdbca67ba931c80b870b48de9e60ee442401f6661e2dbc599d1a33705dc00dcf991c1a71032a WHIRLPOOL 17d8725aa40a12cf5f9f41d4bed720303d601f1becec77685ba20593d23f6a8b71c1c2ff289938196b65ce75d16661011780dc246614902b52d6da87a41b3d8c
|
||||
DIST ppx_expect-113.33.00.tar.gz 79133 SHA256 3a0c8e20e9eafe79d800eb6a2bc0d83ce3b2d8739a55b902d6f5a8af21cb9a6b SHA512 9e2c12c4d5a874213f1cc8ece3bd8cc832796dcb40561350077355f4fa8539b77a4bf5e37f374b4de1d872de6ffb1f1f0974211d6cc69c35c07b0e55c1edf7c4 WHIRLPOOL ea27180ffc49944e66bc645eabc2cba21eb947536c0aba145992fa40c6e36a9fcab2f4ee541d3982aacf457051349219ba401973381b21da8a7d28e96864bdad
|
||||
DIST ppx_expect-113.33.01.tar.gz 79539 SHA256 8697a447ce335bb5cf780ba258c13d13302d591109ff7f3ccb3ac6592db92242 SHA512 2074962dad42cb319ad758a202df4cc8f7e4302de45409da8f6167d9d3138914eba91339c3c71980663c893e1562994938907a1000fef45c96b74cbc0ace80f0 WHIRLPOOL be96bbde6d61127b1e03e7db9cf677bb5d37d5082d8110c377a545073b2500c0224e40d85c768602d40fa47fd9ac1c36294be108d3f100b590f5cb10ba5fbb49
|
||||
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit oasis
|
||||
|
||||
DESCRIPTION="Cram like framework for OCaml"
|
||||
HOMEPAGE="http://www.janestreet.com/ocaml"
|
||||
SRC_URI="http://ocaml.janestreet.com/ocaml-core/${PV%.*}/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-ml/ppx_tools:=
|
||||
dev-ml/fieldslib:=
|
||||
dev-ml/ppx_assert:=
|
||||
dev-ml/ppx_compare:=
|
||||
dev-ml/ppx_core:=
|
||||
dev-ml/ppx_custom_printf:=
|
||||
dev-ml/ppx_driver:=
|
||||
dev-ml/ppx_fields_conv:=
|
||||
dev-ml/ppx_inline_test:=
|
||||
dev-ml/ppx_sexp_conv:=
|
||||
dev-ml/ppx_sexp_value:=
|
||||
dev-ml/ppx_variants_conv:=
|
||||
dev-ml/ocaml-re:=
|
||||
dev-ml/sexplib:=
|
||||
dev-ml/variantslib:=
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
DEPEND="${DEPEND} dev-ml/opam"
|
||||
|
||||
src_configure() {
|
||||
emake setup.exe
|
||||
OASIS_SETUP_COMMAND="./setup.exe" oasis_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
opam-installer -i \
|
||||
--prefix="${ED}/usr" \
|
||||
--libdir="${D}/$(ocamlc -where)" \
|
||||
--docdir="${ED}/usr/share/doc/${PF}" \
|
||||
${PN}.install || die
|
||||
dodoc CHANGES.md
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST stringext-1.4.0.tar.gz 49163 SHA256 452caddd80c85aebda74f65615aeba4045ab2496498d844ab110605c97a156a5 SHA512 5c9b64f42b1517c255376a81886b946d852fe5f4b11dee87986eb1eab856e89a79f088d2bbd7d79dfa13cce5e51649a32bfe06242d5afbf7b868085b272173bf WHIRLPOOL 15b2501095f2c6143eac33751b26f9c82e7226125c49b270fe8dff92bd51b97eede8e7865343766fa56fcffa373b591da4f8170afba46d12c413dfec0d1431eb
|
||||
DIST stringext-1.4.1.tar.gz 49181 SHA256 abcecd6f8f207804b95ea87222ac263a37d76fb3a3fe0dfd6aaa7343585ef64c SHA512 a5b364e8a7f56c5b91b2114e10fd5c534ef7c2f5737505f52fddeb61de1a90fb75fd6f2cbb1b83934d5dfd020e2be9df81ab8774126a0d8c033c45faa0d17a00 WHIRLPOOL da524dce7541b87276eb12aee8138f5fafd3f282875e7ae464524399c3447470fee92d6ea43a3bf78102a9b5232c32de49cfb8bf9a95f9dff7a04f126662babc
|
||||
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
OASIS_BUILD_TESTS=1
|
||||
|
||||
inherit oasis
|
||||
|
||||
DESCRIPTION="Extra string functions for OCaml"
|
||||
HOMEPAGE="https://github.com/rgrinberg/stringext"
|
||||
SRC_URI="https://github.com/rgrinberg/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
test? ( dev-ml/qcheck[ounit(-)] )
|
||||
>=dev-lang/ocaml-4:=
|
||||
"
|
||||
RDEPEND="
|
||||
>=dev-lang/ocaml-4:=
|
||||
"
|
||||
|
||||
DOCS=( README.md )
|
@ -1,2 +1,2 @@
|
||||
DIST jaraco.functools-1.8.1.tar.gz 6125 SHA256 766cd9caed0c18dfbf744dcd05d1f171f03e64ab8f7363d5b2521ba200383c5a SHA512 d67795340238bd646bea450e8bb37fb64bca66a41a4b8f385f4a986b880578edfa2dad23b820a1a9cce7460dc530a2de2a219362e9cd0ced851040e86fb70f21 WHIRLPOOL bd050b7daa52f2f5043ca2209562472b96d9ec5d417edf96bf686eb0f60a4bde6b69890557140f7f0b278e8d612c702b01a5b72ccae5b894b3646d37582a1da5
|
||||
DIST jaraco.functools-1.8.2.tar.gz 6549 SHA256 2766002fb0827e596744754158ceb5cfc4fba723567c756d39b9d7fbdb568ed0 SHA512 e655da8f812d21e20f671e5116357cea4f5ac1901715892c15a4284ea787e75c958ad087d73d0ad75c0a8bf6bb6b44d3ed3a6b68f9c393ae0de93063ecef8851 WHIRLPOOL 318679b1fcd3d9e8510a340bb5738608f4e0e1fac8229ca996925446921082339c6cf742ee353f8b08b08a777bfcce4c8384fd5f60482360699403014ed19dd1
|
||||
DIST jaraco.functools-1.9.tar.gz 7220 SHA256 79a813f061ee16f431ac3828caca58b173d95d1518af144fa6307a92e90da496 SHA512 93b2cb1690bb9cf68b9f19b8964c7b660d35c2bd467ad724fe9d6169ae6a257aa2eab78da5bb49af14209991dc67df4ee7c7c03953fc753655aac924d5af550b WHIRLPOOL f49782df05f26513cdb5117b7412719498824e4394aa7557ba245dac35ff306c47412a4798713e2333c4ec700cbb78665da850e40cb499e8d961d815a0912acb
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue