From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 08D8A158086 for ; Thu, 16 Dec 2021 22:40:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2FE77E0826; Thu, 16 Dec 2021 22:40:03 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CF247E0826 for ; Thu, 16 Dec 2021 22:39:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4C8C93434D6 for ; Thu, 16 Dec 2021 22:39:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C4B9914D for ; Thu, 16 Dec 2021 22:39:55 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1639694380.4efd9b643dbd6601175e3ae98bc6bf32fb269376.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/fhem/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/fhem/Manifest app-misc/fhem/fhem-6.1.ebuild X-VCS-Directories: app-misc/fhem/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 4efd9b643dbd6601175e3ae98bc6bf32fb269376 X-VCS-Branch: master Date: Thu, 16 Dec 2021 22:39:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 377848b8-207f-4a72-bd8d-b57bb16521fc X-Archives-Hash: 639b090176ee964f46feba1407f6feaa commit: 4efd9b643dbd6601175e3ae98bc6bf32fb269376 Author: Conrad Kostecki gentoo org> AuthorDate: Thu Dec 16 22:36:31 2021 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Thu Dec 16 22:39:40 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4efd9b64 app-misc/fhem: add 6.1 Signed-off-by: Conrad Kostecki gentoo.org> app-misc/fhem/Manifest | 1 + app-misc/fhem/fhem-6.1.ebuild | 107 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+) diff --git a/app-misc/fhem/Manifest b/app-misc/fhem/Manifest index b1006644bcef..bd6615898440 100644 --- a/app-misc/fhem/Manifest +++ b/app-misc/fhem/Manifest @@ -1 +1,2 @@ DIST fhem-6.0.tar.gz 28562819 BLAKE2B 4bc4f232caf0adc35ded72f380c1d4c816a22304af357f9b204fb856c2053038e3db2d834b7448d3cf43e84d3f435a36d047e48606b9e1083ab4963b38a75301 SHA512 a8e9d74b1d68ad7c9aea0a4d463aa877cb607458cb6ecf76203c96ff2156fd8b8a3b9cb5687ac0a5cd1eca5f94552433de55f3696b7be54a3cfa8df9cf74fbe1 +DIST fhem-6.1.tar.gz 32437246 BLAKE2B 0c7afce70d7fa4afe01b4dd46847cfb406a267c30ba6490b4ded75c365e745c0e84aa4872e6ca9c59f11b3082655e23295c59d69c5f91b272cc576df2e9e4978 SHA512 93767f6e8fa2b35b24192c1dd5de29bc9ac09f8690982870d1479350acc0954d6a635fcb2abfdac96f2f9b4f8217288486b35fa385f3388efd1407b4f14ebe8f diff --git a/app-misc/fhem/fhem-6.1.ebuild b/app-misc/fhem/fhem-6.1.ebuild new file mode 100644 index 000000000000..ff54d3f73199 --- /dev/null +++ b/app-misc/fhem/fhem-6.1.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd tmpfiles + +DESCRIPTION="A GPL'd perl server for house automation" +HOMEPAGE="https://www.fhem.de/" +SRC_URI="https://www.fhem.de/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +RDEPEND=" + acct-group/fhem + acct-user/fhem + dev-perl/Crypt-CBC + dev-perl/Device-SerialPort + dev-perl/Digest-CRC + dev-perl/JSON +" + +DEPEND="media-gfx/pngcrush" + +src_prepare() { + default + + # Allow install path to be set by DESTDIR in Makefile + sed -i -e 's,^\(BINDIR=\),\1'\$\(DESTDIR\)',' Makefile || die + + # Remove docs in Makefile, as they will be installed manually + sed -i -e 's/docs//g' Makefile || die + sed -i -e '/README_DEMO.txt/d' Makefile || die + + # Remove manpage in Makefile, as it will be installed manually + sed -i -e '/fhem.pl.1/d' Makefile || die + + # Remove lcd4linux binaries, as they are provied by app-misc/lcd4linux + rm -r contrib/lcd4linux || die + + # Remove log dir, as it will be replaced with a symlink + rm -r log || die + + # Fix fhemicon_darksmall.png, as it reports "broken IDAT window length" + # Reported to Upstream: https://forum.fhem.de/index.php/topic,86238.0.html + pngcrush -fix -force -ow www/images/default/fhemicon_darksmall.png || die + + cp "${FILESDIR}"/fhem.cfg fhem.cfg || die +} + +src_compile() { + : +} + +src_install() { + local DOCS=( + "CHANGED" + "HISTORY" + "MAINTAINER.txt" + "README.SVN" + "README_DEMO.txt" + "docs"/*.txt + "docs"/*.patch + "docs"/*.pdf + "docs/changelog" + "docs/copyright" + "docs/dotconfig" + "docs/fhem.odg.readme" + "docs/LIESMICH.update-thirdparty" + "docs"/README* + "docs/X10" + ) + + if use doc; then + local DOCS+=( "docs/X10" ) + local HTML_DOCS=( "docs/"*.eps "docs/"*.html "docs"/*.jpg "docs"/*.js "docs"/*.odg "docs/"*.png "docs/km271" ) + fi + + diropts -o fhem -g fhem + keepdir "/var/lib/fhem" + keepdir "/var/log/fhem" + diropts + + dosym ../../var/lib/fhem /opt/fhem/data + dosym ../../var/log/fhem /opt/fhem/log + + default + + newinitd "${FILESDIR}"/fhem.initd fhem + + systemd_newunit "${FILESDIR}"/fhem.service-r1 fhem.service + newtmpfiles "${FILESDIR}"/fhem.tmpfiles fhem.conf + + newman docs/fhem.man fhem.pl.1 + + echo 'CONFIG_PROTECT="/opt/fhem /var/lib/fhem"' > "${T}"/99fhem || die + doenvd "${T}"/99fhem + + fowners fhem:fhem /opt/fhem/fhem.cfg +} + +pkg_postinst() { + tmpfiles_process fhem.conf +}