summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/fhem')
-rw-r--r--app-misc/fhem/Manifest2
-rw-r--r--app-misc/fhem/fhem-6.2.ebuild (renamed from app-misc/fhem/fhem-6.0.ebuild)10
-rw-r--r--app-misc/fhem/files/fhem.service-r1 (renamed from app-misc/fhem/files/fhem.service)5
-rw-r--r--app-misc/fhem/metadata.xml2
4 files changed, 12 insertions, 7 deletions
diff --git a/app-misc/fhem/Manifest b/app-misc/fhem/Manifest
index b1006644bcef..05fe0c680ff2 100644
--- a/app-misc/fhem/Manifest
+++ b/app-misc/fhem/Manifest
@@ -1 +1 @@
-DIST fhem-6.0.tar.gz 28562819 BLAKE2B 4bc4f232caf0adc35ded72f380c1d4c816a22304af357f9b204fb856c2053038e3db2d834b7448d3cf43e84d3f435a36d047e48606b9e1083ab4963b38a75301 SHA512 a8e9d74b1d68ad7c9aea0a4d463aa877cb607458cb6ecf76203c96ff2156fd8b8a3b9cb5687ac0a5cd1eca5f94552433de55f3696b7be54a3cfa8df9cf74fbe1
+DIST fhem-6.2.tar.gz 32526944 BLAKE2B 00ec9cb1518ab002e0565150a30ec7191c1f0a8ae0fccb7a3a745837f7794e4f61a8e7fa4707416e841f86803d69c27f7158c36f765733e76f461dcbb15e306e SHA512 8bb4cf277ab3f008b353c3fa7f67a50f502299e79f2b96d13e88150766e39498888a05a44b6509a51f90d82dcd0aefa6642deea585c72d65e3849b6aa0322143
diff --git a/app-misc/fhem/fhem-6.0.ebuild b/app-misc/fhem/fhem-6.2.ebuild
index 3cdba522132d..154939f05f50 100644
--- a/app-misc/fhem/fhem-6.0.ebuild
+++ b/app-misc/fhem/fhem-6.2.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit systemd tmpfiles
@@ -91,7 +91,7 @@ src_install() {
newinitd "${FILESDIR}"/fhem.initd fhem
- systemd_dounit "${FILESDIR}"/fhem.service
+ systemd_newunit "${FILESDIR}"/fhem.service-r1 fhem.service
newtmpfiles "${FILESDIR}"/fhem.tmpfiles fhem.conf
newman docs/fhem.man fhem.pl.1
@@ -101,3 +101,7 @@ src_install() {
fowners fhem:fhem /opt/fhem/fhem.cfg
}
+
+pkg_postinst() {
+ tmpfiles_process fhem.conf
+}
diff --git a/app-misc/fhem/files/fhem.service b/app-misc/fhem/files/fhem.service-r1
index 697a10179d40..aaf48fc88c4e 100644
--- a/app-misc/fhem/files/fhem.service
+++ b/app-misc/fhem/files/fhem.service-r1
@@ -1,13 +1,14 @@
[Unit]
-Description=FHEM
+Description=FHEM Home Automation
After=network-online.target
[Service]
-Type=simple
+Type=forking
User=fhem
Group=fhem
WorkingDirectory=/opt/fhem
ExecStart=/opt/fhem/fhem.pl /opt/fhem/fhem.cfg
+Restart=always
[Install]
WantedBy=multi-user.target
diff --git a/app-misc/fhem/metadata.xml b/app-misc/fhem/metadata.xml
index 97fe0546fccc..6801bef65ba4 100644
--- a/app-misc/fhem/metadata.xml
+++ b/app-misc/fhem/metadata.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>conikost@gentoo.org</email>