summaryrefslogtreecommitdiff
path: root/net-analyzer/smokeping
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-12-14 13:26:14 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-12-14 13:26:14 +0000
commit6abbf81ef2f298e3221ff5e67a1f3c5f23958212 (patch)
tree25413d1cb3a0cbfe36029db32398c0f333609215 /net-analyzer/smokeping
parent9c417bacd51da6d8b57fa9f37425161d30d4b95b (diff)
gentoo resync : 14.12.2020
Diffstat (limited to 'net-analyzer/smokeping')
-rw-r--r--net-analyzer/smokeping/Manifest10
-rw-r--r--net-analyzer/smokeping/files/smokeping-2.6.9-pod.patch11
-rw-r--r--net-analyzer/smokeping/files/smokeping.init.377
-rw-r--r--net-analyzer/smokeping/metadata.xml2
-rw-r--r--net-analyzer/smokeping/smokeping-2.6.9-r1.ebuild144
-rw-r--r--net-analyzer/smokeping/smokeping-2.7.2.ebuild147
-rw-r--r--net-analyzer/smokeping/smokeping-2.7.3.ebuild2
7 files changed, 3 insertions, 390 deletions
diff --git a/net-analyzer/smokeping/Manifest b/net-analyzer/smokeping/Manifest
index d254322496d0..3ce91f99d5e9 100644
--- a/net-analyzer/smokeping/Manifest
+++ b/net-analyzer/smokeping/Manifest
@@ -1,13 +1,7 @@
AUX 79_smokeping.conf 351 BLAKE2B 97e09d4cf9d4b1fe4b334165a0f46bb11dea32cf6a2678a04c48e5290940a197c2efee0fa540726493e623a0f0235fdffde8ee28b2c89af22a804a8dfca29149 SHA512 d53abdf29e8f6bad67a654b17088c3f8dee7908ff82b0b911599e2ac6a11be84b8fa2c30b1f0b6142803ff9a5058f586946eafa112dfd26ca4f8f8664d19cfc6
-AUX smokeping-2.6.9-pod.patch 482 BLAKE2B 8490774fffcdac52d5375bd7155a1246f03a748eb6d7e365dcb6b82d5d4e5cdbdd0025793daf68a4605137c03447463c5bea86bdebcf1ac48e51309abe0f5ee1 SHA512 3744f97a8f817c7b9d5da4fe130377658d74ac1be78a00dbc39b501716fc2d6b9fb2188f9ff3c57da5c36b6761e9099d0ef85a7600174de8fda01a8898274b71
AUX smokeping.conf 32 BLAKE2B ea64af0cebbb847c89503b3d893c902ab2d761afbce6594731d8851cc5f9a81118c9ce9ff76888b0bddcbf6b4341a47a76a74f64aecdc3d1610510714f119ee7 SHA512 75863f16f8b57ca9ae7c7d65076acaf28aac66fa2d52ed78bce2bb3a4938dc75a1e8ed54236c52c3965b170a8348145780dd5c0f3d0fc8c95f4b88085252a4ef
-AUX smokeping.init.3 1737 BLAKE2B 0c1ad0e4c5dd843097eadbdd2e2309f9f89c5f336ae20938680f2629c16e6ee265a56a4aaa26b40243d9d85331775315ac4eb5235eb51c7ff6d981ab2dd3a683 SHA512 87386971b42bf842c6cf59f641576cfcfd7439fe9f10139730b0c73acea610945d634d3effc3a5db793a71e2e625b49184a02813cbf34473dd94ac4a3931ed67
AUX smokeping.init.5 1360 BLAKE2B 4213a42dcd43c1166c5f10d287c9e50be37265f8be6db3a8b9e18351dfbe7259a8ca98eff044cd1c7ef657356e3960e60745aea63a79bdc73fd009b3bd746bd7 SHA512 64adf577c9d7d79c268cf46c40ed7db23c93cbd49897070d9028ee6636794b1c101d1a9d1ff6f92c24512e18bf0f06b10b67117090918920fb8b8189dec85d4f
AUX smokeping.service 200 BLAKE2B 77110386e5d304c04d00114800c1f42bb5e8b5ce1eab419afd2fa7c59c1a569fe244c7f7c18e01519d82389bf66f5b6935dd212b3bf68ace9b480e981c311001 SHA512 2f8824143b8283ad02274107c5ed0e84f0c1465fc089823e36ef44a42fec68564d8cc4ff5fb0ad6dc0443e21fac5a8cbcbb0a9bea151b57efaff2a082d15f344
-DIST smokeping-2.6.9.tar.gz 427185 BLAKE2B 3b626d852542f5e9e616ce88a8fd2fd773036822f10f548a1cec242f5d420ec67d940ee49c08da99f7e0815921251cb474b103c8c12c364f90651a4e74e9abf3 SHA512 ab3cec15fd9f90510f902da7ce5bac5915558cac198cc88f0ce193a53a0158c9055e28c8c6671cc6653ac42ab51346e1eb19e537f1ab5c234fd498c6b777499d
-DIST smokeping-2.7.2.tar.gz 4614968 BLAKE2B 7cf9f4bd47f3a5419549b0a62fbaca664b70d73af0d57dc005d32030e1e86556f5100d00ed43743aa2a3dffa59bbe00129309b473fc261a7dcdc6225d80a8921 SHA512 e912cdf7ec9af871b9a4a90d787bae04feb21e40c1259bb835eb25b098e03023d7424e53d344ed459f8423260b0eb311f4dd12824195da9647554943685f4d07
DIST smokeping-2.7.3.tar.gz 6614710 BLAKE2B 7fa10c19487427a3092a1e5591422cb37f66a6eab86b8b43eebbc8af441d5426b99f3c7b54040660f6f150ade99b1ea2555b4fcd6f80d8306d6f86ac9f95974e SHA512 d46d61539ffdd9cac41391aa813364260f90f84443c328b1c9233ab6ba3a0c157861694614e6c33e18b153f6a6afc0769c5fc7752b3ab52f114d984e53232830
-EBUILD smokeping-2.6.9-r1.ebuild 4174 BLAKE2B d9c87bde47edc6665a35152ca6167658ef248e9e8b4a893b53954b553a3acd7af953c193f5f441dab21509e11de4adf91f730c511527c8d57da0c5c10c929533 SHA512 21ecba069f21dadef3baefec04b1ff0d24e732ec4baf99421f6228d498f8b0315bd8b03d4e04c58f51789f4af87c5d05409519bb65cda54e389d0319064c57e2
-EBUILD smokeping-2.7.2.ebuild 4129 BLAKE2B c193fb3280a5a7bde86e64cb3fc593d2f83ee2a57207a30f5ac77b633e486e4797c5eb26e82272e02cc9d76007dbcd774a964b03d6f2601f6a5698c9f7b3d894 SHA512 8044d7d0588d29645f241ffbd3a92210e02ecb0f22259e8b573778a73c69b7e51371b412aead3772622f0b18e37da42c99baa9a0eb71e1ebf3e307486fd04fb3
-EBUILD smokeping-2.7.3.ebuild 4125 BLAKE2B 2a38e163224837d43267c3cd57b558c88065e5391b7993203c017181bfd85e3772929b82cab8c2846710d7f2f08e9ba913f5ad3d317cb4d2007c1ddb68e22b93 SHA512 dc46019e3a83e168f9642efda2c4808485a5e646fb63a1f0ff43e5065a4d5ecfbb608079b60aa856dfc58bee31a8336ebf2137689fdf9ed1eaa937317fed6c01
-MISC metadata.xml 609 BLAKE2B 80a690cf6d514c95f27e370c0417cdc1787a0e149e7791bdd3684b195d2cf6ada9543d1001fd5353a00e05a01c62272b73e09ec838d9ea927b4c3bcbb274ab15 SHA512 cd5bbbf1af0cadf236c3385628a1392c2e5379958e4f002d71230ed9e7627989cfdee7e0a9fd584f94c4c29bb1756f9ade81df0888f4668f9b3a8ab9e31bf727
+EBUILD smokeping-2.7.3.ebuild 4124 BLAKE2B ea0860b53f68bb0ba8fa5c529d8d93482cfd9b040207702f3098af826dab835b48394d70cb690d5fac35f5f01132fa5ab8b47bb00839211fedc8392f95d31ba0 SHA512 8fc47418549e80010d72215e56aeba82e73621d5347e49581862245a9347562c9339f1f3e93848fdca31c1916d8976912ea3e2d8654d384bd4c609992781c69a
+MISC metadata.xml 468 BLAKE2B d219af56f99fd891f8990b2298c9daa86d8fa3f8433b04eeabab1d47492a4ba186906a265612422517f9fb373217473fd047412dc08b7b1bf3f2aaccc92ec2d9 SHA512 0ca877d24981625a5d601cd19fc18fe37b48526c7266c248ee0ba955ecc873b31ea5f06d3feb692566d228a481193fab1f70c53aaa0be089aee490d80f80e815
diff --git a/net-analyzer/smokeping/files/smokeping-2.6.9-pod.patch b/net-analyzer/smokeping/files/smokeping-2.6.9-pod.patch
deleted file mode 100644
index 81a1e053b4f8..000000000000
--- a/net-analyzer/smokeping/files/smokeping-2.6.9-pod.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/lib/Smokeping.pm
-+++ b/lib/Smokeping.pm
-@@ -2631,7 +2631,7 @@
- The base directory where SmokePing keeps the files related to the DYNAMIC function.
- This directory must be writeable by the WWW server. It is also used for temporary
- storage of slave polling results by the master in
--L<the master/slave mode|smokeping_master_slave>.
-+L<the masterE<sol>slave mode|smokeping_master_slave>.
-
- If this variable is not specified, the value of C<datadir> will be used instead.
- DOC
diff --git a/net-analyzer/smokeping/files/smokeping.init.3 b/net-analyzer/smokeping/files/smokeping.init.3
deleted file mode 100644
index 2e5e35795b91..000000000000
--- a/net-analyzer/smokeping/files/smokeping.init.3
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-extra_commands="${opts} dump reload restore"
-
-depend() {
- need net
- use dns
-}
-
-checkconfig() {
- if [ ! -f "/etc/smokeping/config" ] ; then
- eerror "You need /etc/smokeping/config to run smokeping!"
- return 1
- fi
-}
-
-start() {
- checkconfig || return 1
-
- if [ ! -d /run/smokeping/ ]; then
- mkdir /run/smokeping/
- fi
- chown smokeping:smokeping /run/smokeping/
-
- ebegin "Starting smokeping"
- LC_ALL=C \
- start-stop-daemon --start --name smokeping \
- --pidfile /run/smokeping/smokeping.pid \
- --exec /usr/bin/smokeping \
- --user smokeping:smokeping
- eend $?
-}
-
-stop() {
- ebegin "Stopping smokeping"
- start-stop-daemon --stop \
- --pidfile /run/smokeping/smokeping.pid
- eend $?
-}
-
-reload() {
- ebegin "Reloading smokeping"
- /usr/bin/smokeping --reload 1>/dev/null 2>&1
- eend $?
-}
-
-dump() {
- ebegin "Dumping smokeping rrd files to XML for backup or upgrade use"
- if service_started "${myservice}" ; then
- eerror "You need to stop smokeping before dumping files!"
- return 1
- fi
- for f in `find /var/lib/smokeping -name '*.rrd' -print` ; do
- f_xml=`dirname $f`/`basename $f .rrd`.xml
- rrdtool dump "$f" > "${f_xml}"
- chown root:0 "${f_xml}"
- done
- eend $?
-}
-
-restore() {
- ebegin "Restoring smokeping rrd files from XML dump files"
- if service_started "${myservice}" ; then
- eerror "You need to stop smokeping before restoring files!"
- return 1
- fi
- for f in `find /var/lib/smokeping -name '*.xml' -print` ; do
- f_rrd=`dirname $f`/`basename $f .xml`.rrd
- mv -f "${f_rrd}" "${f_rrd}.bak"
- chown root:0 "${f_rrd}.bak"
- rrdtool restore "$f" "${f_rrd}"
- chown smokeping:smokeping "${f_rrd}"
- done
- eend $?
-}
diff --git a/net-analyzer/smokeping/metadata.xml b/net-analyzer/smokeping/metadata.xml
index e445720edf9f..7b436470d4c4 100644
--- a/net-analyzer/smokeping/metadata.xml
+++ b/net-analyzer/smokeping/metadata.xml
@@ -8,7 +8,5 @@
<use>
<flag name="dig">Install <pkg>net-dns/bind-tools</pkg> for dig functionality</flag>
<flag name="echoping">Install <pkg>net-analyzer/echoping</pkg> for echoping functionality</flag>
-<flag name="telnet">Install <pkg>dev-perl/Net-Telnet</pkg> for telnet functionality</flag>
-<flag name="ssh">Install ssh functionality</flag>
</use>
</pkgmetadata>
diff --git a/net-analyzer/smokeping/smokeping-2.6.9-r1.ebuild b/net-analyzer/smokeping/smokeping-2.6.9-r1.ebuild
deleted file mode 100644
index 7a4eb1a16840..000000000000
--- a/net-analyzer/smokeping/smokeping-2.6.9-r1.ebuild
+++ /dev/null
@@ -1,144 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-inherit eutils user systemd
-
-DESCRIPTION="A powerful latency measurement tool"
-HOMEPAGE="https://oss.oetiker.ch/smokeping/"
-SRC_URI="https://oss.oetiker.ch/smokeping/pub/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-# dropping hppa and sparc because of way too may dependencies not having
-# keywords in those architectures.
-KEYWORDS="amd64 x86"
-
-# removing fcgi useflag as the configure script can't avoid it without patching
-IUSE="apache2 curl dig echoping ipv6 ldap radius ssh telnet"
-
-DEPEND="
- !apache2? ( virtual/httpd-cgi )
- apache2? (
- >=www-apache/mod_perl-2.0.1
- www-apache/mod_fcgid
- )
- curl? ( >=net-misc/curl-7.21.4 )
- dig? ( net-dns/bind-tools )
- echoping? ( >=net-analyzer/echoping-6.0.2 )
- ipv6? ( >=dev-perl/Socket6-0.20 )
- ldap? ( dev-perl/perl-ldap )
- radius? ( dev-perl/Authen-Radius )
- ssh? ( dev-perl/Net-OpenSSH )
- telnet? ( dev-perl/Net-Telnet )
- dev-perl/CGI-Fast
- >=dev-lang/perl-5.8.8-r8
- >=dev-perl/SNMP_Session-1.13
- >=net-analyzer/fping-2.4_beta2-r2[suid]
- >=net-analyzer/rrdtool-1.2[graph,perl]
- dev-perl/CGI-Session
- dev-perl/Config-Grammar
- dev-perl/Digest-HMAC
- dev-perl/FCGI
- dev-perl/IO-Socket-SSL
- dev-perl/Net-DNS
- dev-perl/libwww-perl
- virtual/perl-libnet
-"
-
-RDEPEND="${DEPEND}"
-
-pkg_setup() {
- enewgroup smokeping
- enewuser smokeping -1 -1 /var/lib/smokeping smokeping
-}
-
-src_prepare() {
- rm -r lib/{BER.pm,SNMP_Session.pm,SNMP_util.pm} # dev-perl/SNMP_Session
-
- epatch "${FILESDIR}"/${P}-pod.patch
-}
-
-src_configure() {
- econf \
- --sysconfdir=/etc/smokeping \
- --with-htdocs-dir=/var/www/localhost/smokeping
-}
-
-src_compile() {
- LC_ALL=C emake
-}
-
-src_install() {
- default
-
- newinitd "${FILESDIR}/${PN}.init.3" ${PN}
- systemd_dotmpfilesd "${FILESDIR}"/"${PN}".conf
- systemd_dounit "${FILESDIR}"/"${PN}".service
-
- mv "${D}/etc/smokeping/basepage.html.dist" "${D}/etc/smokeping/basepage.html"
- mv "${D}/etc/smokeping/config.dist" "${D}/etc/smokeping/config"
- mv "${D}/etc/smokeping/smokemail.dist" "${D}/etc/smokeping/smokemail"
- mv "${D}/etc/smokeping/smokeping_secrets.dist" "${D}/etc/smokeping/smokeping_secrets"
- mv "${D}/etc/smokeping/tmail.dist" "${D}/etc/smokeping/tmail"
-
- sed -i \
- -e '/^imgcache/{s:\(^imgcache[ \t]*=\).*:\1 /var/lib/smokeping/.simg:}' \
- -e '/^imgurl/{s:\(^imgurl[ \t]*=\).*:\1 ../.simg:}' \
- -e '/^datadir/{s:\(^datadir[ \t]*=\).*:\1 /var/lib/smokeping:}' \
- -e '/^piddir/{s:\(^piddir[ \t]*=\).*:\1 /run/smokeping:}' \
- -e '/^cgiurl/{s#\(^cgiurl[ \t]*=\).*#\1 http://some.place.xyz/perl/smokeping.pl#}' \
- -e '/^smokemail/{s:\(^smokemail[ \t]*=\).*:\1 /etc/smokeping/smokemail:}' \
- -e '/^tmail/{s:\(^tmail[ \t]*=\).*:\1 /etc/smokeping/tmail:}' \
- -e '/^secrets/{s:\(^secrets[ \t]*=\).*:\1 /etc/smokeping/smokeping_secrets:}' \
- -e '/^template/{s:\(^template[ \t]*=\).*:\1 /etc/smokeping/basepage.html:}' \
- "${D}/etc/${PN}/config" || die
-
- sed -i \
- -e '/^<script/{s:cropper/:/cropper/:}' \
- "${D}/etc/${PN}/basepage.html" || die
-
- sed -i \
- -e 's/$FindBin::Bin\/..\/etc\/config/\/etc\/smokeping\/config/g' \
- "${D}/usr/bin/smokeping" "${D}/usr/bin/smokeping_cgi" || die
-
- sed -i \
- -e 's:etc/config.dist:/etc/smokeping/config:' \
- "${D}/usr/bin/tSmoke" || die
-
- sed -i \
- -e 's:/usr/etc/config:/etc/smokeping/config:' \
- "${D}/var/www/localhost/smokeping/smokeping.fcgi.dist" || die
-
- dodir /var/www/localhost/cgi-bin
- mv "${D}/var/www/localhost/smokeping/smokeping.fcgi.dist" \
- "${D}/var/www/localhost/cgi-bin/smokeping.fcgi"
-
- fperms 700 /etc/${PN}/smokeping_secrets
-
- if use apache2 ; then
- insinto /etc/apache2/modules.d
- doins "${FILESDIR}/79_${PN}.conf"
- fi
-
- dodir /var/cache/smokeping
- keepdir /var/cache/smokeping
-
- # Create the files in /var for rrd file storage
- keepdir /var/lib/${PN}/.simg
- fowners smokeping:smokeping /var/lib/${PN}
-
- if use apache2 ; then
- fowners apache:apache /var/lib/${PN}/.simg
- fowners -R apache:apache /var/www
- else
- fowners smokeping:smokeping /var/lib/${PN}/.simg
- fi
-
- fperms 775 /var/lib/${PN} /var/lib/${PN}/.simg
-}
-
-pkg_postinst() {
- chown smokeping:smokeping "${ROOT}/var/lib/${PN}"
- chmod 755 "${ROOT}/var/lib/${PN}"
-}
diff --git a/net-analyzer/smokeping/smokeping-2.7.2.ebuild b/net-analyzer/smokeping/smokeping-2.7.2.ebuild
deleted file mode 100644
index 973327b4df83..000000000000
--- a/net-analyzer/smokeping/smokeping-2.7.2.ebuild
+++ /dev/null
@@ -1,147 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit autotools eutils multilib user systemd
-
-DESCRIPTION="A powerful latency measurement tool"
-HOMEPAGE="https://oss.oetiker.ch/smokeping/"
-SRC_URI="https://oss.oetiker.ch/smokeping/pub/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-IUSE="apache2 curl dig echoping ipv6 radius"
-
-DEPEND="
- >=dev-lang/perl-5.8.8-r8
- >=dev-perl/SNMP_Session-1.13
- >=net-analyzer/fping-2.4_beta2-r2[suid]
- >=net-analyzer/rrdtool-1.2[graph,perl]
- dev-perl/CGI
- dev-perl/CGI-Session
- dev-perl/Config-Grammar
- dev-perl/Digest-HMAC
- dev-perl/FCGI
- dev-perl/IO-Socket-SSL
- dev-perl/IO-Tty
- dev-perl/Net-DNS
- dev-perl/Net-OpenSSH
- dev-perl/Net-SNMP
- dev-perl/Net-Telnet
- dev-perl/libwww-perl
- dev-perl/perl-ldap
- virtual/perl-libnet
- dev-perl/CGI-Fast
- !apache2? ( virtual/httpd-cgi )
- apache2? (
- >=www-apache/mod_perl-2.0.1
- www-apache/mod_fcgid
- )
- curl? ( >=net-misc/curl-7.21.4 )
- dig? ( net-dns/bind-tools )
- echoping? ( >=net-analyzer/echoping-6.0.2 )
- ipv6? ( >=dev-perl/Socket6-0.20 )
- radius? ( dev-perl/Authen-Radius )
-"
-
-RDEPEND="${DEPEND}"
-
-pkg_setup() {
- enewgroup smokeping
- enewuser smokeping -1 -1 /var/lib/smokeping smokeping
-}
-
-src_prepare() {
- default
-
- sed -i -e '/^SUBDIRS = / s|thirdparty||g' Makefile.am || die
- sed -i -e '/^perllibdir = / s|= .*|= $(libdir)|g' lib/Makefile.am || die
- rm -r lib/{BER.pm,SNMP_Session.pm,SNMP_util.pm} || die # dev-perl/SNMP_Session
- echo ${PV} > VERSION
-
- eautoreconf
-}
-
-src_configure() {
- econf \
- --sysconfdir=/etc/smokeping \
- --with-htdocs-dir=/var/www/localhost/smokeping
-}
-
-src_compile() {
- LC_ALL=C emake
-}
-
-src_install() {
- dodir /usr/$(get_libdir)
- default
-
- newinitd "${FILESDIR}"/${PN}.init.5 ${PN}
- systemd_dotmpfilesd "${FILESDIR}"/"${PN}".conf
- systemd_dounit "${FILESDIR}"/"${PN}".service
-
- mv "${D}/etc/smokeping/basepage.html.dist" "${D}/etc/smokeping/basepage.html"
- mv "${D}/etc/smokeping/config.dist" "${D}/etc/smokeping/config"
- mv "${D}/etc/smokeping/smokemail.dist" "${D}/etc/smokeping/smokemail"
- mv "${D}/etc/smokeping/smokeping_secrets.dist" "${D}/etc/smokeping/smokeping_secrets"
- mv "${D}/etc/smokeping/tmail.dist" "${D}/etc/smokeping/tmail"
-
- sed -i \
- -e '/^imgcache/{s:\(^imgcache[ \t]*=\).*:\1 /var/lib/smokeping/.simg:}' \
- -e '/^imgurl/{s:\(^imgurl[ \t]*=\).*:\1 ../.simg:}' \
- -e '/^datadir/{s:\(^datadir[ \t]*=\).*:\1 /var/lib/smokeping:}' \
- -e '/^piddir/{s:\(^piddir[ \t]*=\).*:\1 /run/smokeping:}' \
- -e '/^cgiurl/{s#\(^cgiurl[ \t]*=\).*#\1 http://some.place.xyz/perl/smokeping.pl#}' \
- -e '/^smokemail/{s:\(^smokemail[ \t]*=\).*:\1 /etc/smokeping/smokemail:}' \
- -e '/^tmail/{s:\(^tmail[ \t]*=\).*:\1 /etc/smokeping/tmail:}' \
- -e '/^secrets/{s:\(^secrets[ \t]*=\).*:\1 /etc/smokeping/smokeping_secrets:}' \
- -e '/^template/{s:\(^template[ \t]*=\).*:\1 /etc/smokeping/basepage.html:}' \
- "${D}/etc/${PN}/config" || die
-
- sed -i \
- -e '/^<script/{s:cropper/:/cropper/:}' \
- "${D}/etc/${PN}/basepage.html" || die
-
- sed -i \
- -e 's/$FindBin::RealBin\/..\/etc\/config/\/etc\/smokeping\/config/g' \
- "${D}/usr/bin/smokeping" "${D}/usr/bin/smokeping_cgi" || die
-
- sed -i \
- -e 's:etc/config.dist:/etc/smokeping/config:' \
- "${D}/usr/bin/tSmoke" || die
-
- sed -i \
- -e 's:/usr/etc/config:/etc/smokeping/config:' \
- "${D}/var/www/localhost/smokeping/smokeping.fcgi.dist" || die
-
- dodir /var/www/localhost/cgi-bin
- mv "${D}/var/www/localhost/smokeping/smokeping.fcgi.dist" \
- "${D}/var/www/localhost/cgi-bin/smokeping.fcgi"
-
- fperms 700 /etc/${PN}/smokeping_secrets
-
- if use apache2 ; then
- insinto /etc/apache2/modules.d
- doins "${FILESDIR}/79_${PN}.conf"
- fi
-
- # Create the files in /var for rrd file storage
- keepdir /var/lib/${PN}/.simg
- fowners smokeping:smokeping /var/lib/${PN}
-
- if use apache2 ; then
- fowners apache:apache /var/lib/${PN}/.simg
- fowners -R apache:apache /var/www
- else
- fowners smokeping:smokeping /var/lib/${PN}/.simg
- fi
-
- fperms 775 /var/lib/${PN} /var/lib/${PN}/.simg
-}
-
-pkg_postinst() {
- chown smokeping:smokeping "${ROOT}/var/lib/${PN}"
- chmod 755 "${ROOT}/var/lib/${PN}"
-}
diff --git a/net-analyzer/smokeping/smokeping-2.7.3.ebuild b/net-analyzer/smokeping/smokeping-2.7.3.ebuild
index d28ba3dbe294..57f3773d61bb 100644
--- a/net-analyzer/smokeping/smokeping-2.7.3.ebuild
+++ b/net-analyzer/smokeping/smokeping-2.7.3.ebuild
@@ -10,7 +10,7 @@ SRC_URI="https://oss.oetiker.ch/smokeping/pub/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~amd64 x86"
+KEYWORDS="amd64 x86"
IUSE="apache2 curl dig echoping ipv6 radius"