summaryrefslogtreecommitdiff
path: root/app-misc/fhem
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-02-13 14:17:04 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-02-13 14:17:04 +0000
commitfb12f951d1a9071b4ddf774f2d570de245c2d061 (patch)
tree12b4074e61af9ee7b74753f5249f2362dd1060bf /app-misc/fhem
parent4a74938e510c0dad732ae4c48f815dd0f0cabb46 (diff)
gentoo auto-resync : 13:02:2023 - 14:17:03
Diffstat (limited to 'app-misc/fhem')
-rw-r--r--app-misc/fhem/Manifest2
-rw-r--r--app-misc/fhem/fhem-6.2.ebuild107
2 files changed, 109 insertions, 0 deletions
diff --git a/app-misc/fhem/Manifest b/app-misc/fhem/Manifest
index 8a4997643424..aa7b6cdeb264 100644
--- a/app-misc/fhem/Manifest
+++ b/app-misc/fhem/Manifest
@@ -3,5 +3,7 @@ AUX fhem.initd 447 BLAKE2B c724aa0b16fa7c6e1018e78c6ece9d1ba6357d147d1909326a5ad
AUX fhem.service-r1 240 BLAKE2B e52d6d324db876a1b477f09a480b8a7053af9bfc7264d3cc1fc35f7dfd9401c4a415867d7ac295f4750d6633abe9b9f24b7250c7dfeed31799597f42157a209d SHA512 87f10593f57eb5775a729005ec28fc0d5673044eea7a38ddcb32596ba6b26cd52d866fc2c1eb71985bffd3820f8574f965f42341761bb0ac95d042dca39d8320
AUX fhem.tmpfiles 31 BLAKE2B 57659fe7fe189d03cd1fdbd073421f2215b90db9d2c00b335ca3b98b7c42b23085c9ccadd85fc40c5c21e393c571bacc6804b06dc47de88bfcfe4384d7be88f8 SHA512 4e29020ae5d114c6ab3ad1935a8b4b1b4d6d521771554130304534f69a0ec6961f93b64ad45aabeeff9ab1a73dbe97187922f845c849565105801edffc1ac0ce
DIST fhem-6.1.tar.gz 32437246 BLAKE2B 0c7afce70d7fa4afe01b4dd46847cfb406a267c30ba6490b4ded75c365e745c0e84aa4872e6ca9c59f11b3082655e23295c59d69c5f91b272cc576df2e9e4978 SHA512 93767f6e8fa2b35b24192c1dd5de29bc9ac09f8690982870d1479350acc0954d6a635fcb2abfdac96f2f9b4f8217288486b35fa385f3388efd1407b4f14ebe8f
+DIST fhem-6.2.tar.gz 32526944 BLAKE2B 00ec9cb1518ab002e0565150a30ec7191c1f0a8ae0fccb7a3a745837f7794e4f61a8e7fa4707416e841f86803d69c27f7158c36f765733e76f461dcbb15e306e SHA512 8bb4cf277ab3f008b353c3fa7f67a50f502299e79f2b96d13e88150766e39498888a05a44b6509a51f90d82dcd0aefa6642deea585c72d65e3849b6aa0322143
EBUILD fhem-6.1.ebuild 2382 BLAKE2B 27d657a51bb4da144645f5a22bdbda73e9e033e630d88740d75855453ced31099634bf3e8c3bb9f33a427e8111f5def00d3bcb3899e35393380a89880f22c728 SHA512 465218b8f951582812640af6a3e2849a492cb816a652f2f29158edb39f75159df1cd47ca0398f4bd28b7aed8383d0ea95236bf3d5038b9456d84dc60d510c231
+EBUILD fhem-6.2.ebuild 2384 BLAKE2B 0ae2f339e124aa2bfd899be18649163441dd2d7f4d069dd5b9c7d2b624d89711f48f6b3f3563ba8775b4887b665ddc858a8cbe6e9dfac09c31a915a41a300866 SHA512 e65f824b430e4a53003583f59801399fee5df9114b6560e8f16ecf0c0e22c5c596c082a1f36f4bc06721312416b563eb0e1c78dace40a11cf2d5e5a5595a927b
MISC metadata.xml 649 BLAKE2B 65e494e68939d0c02cf09b5a56856a6615171a10603cea9dbaec0bc41804b841c92c4866b2b88c5026fcbb73b438080d22f0031e26807735fa8a84c44f0bca75 SHA512 68927bc6a1795cdf8dbc8c4f1a8a8d85f4810b910b5e0be35397a46d38d65dda035c7c408cfb86db427f3cfa33c4366674ad1adcb3a6dd1f63a9cdc53f49484f
diff --git a/app-misc/fhem/fhem-6.2.ebuild b/app-misc/fhem/fhem-6.2.ebuild
new file mode 100644
index 000000000000..0aff3dcd67c1
--- /dev/null
+++ b/app-misc/fhem/fhem-6.2.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2023 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
+}