1 |
commit: d421912e48f7264ac8c4b828a29a691eb049eea4 |
2 |
Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com> |
3 |
AuthorDate: Tue Sep 17 17:54:58 2019 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 12 09:14:43 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d421912e |
7 |
|
8 |
app-misc/fhem: drop user eclass |
9 |
|
10 |
Dropped user eclass in favour of acct-* packages. |
11 |
|
12 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
13 |
Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com> |
14 |
Closes: https://github.com/gentoo/gentoo/pull/12954 |
15 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
16 |
|
17 |
app-misc/fhem/fhem-5.9-r1.ebuild | 103 +++++++++++++++++++++++++++++++++++++++ |
18 |
1 file changed, 103 insertions(+) |
19 |
|
20 |
diff --git a/app-misc/fhem/fhem-5.9-r1.ebuild b/app-misc/fhem/fhem-5.9-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..7d804c1d86e |
23 |
--- /dev/null |
24 |
+++ b/app-misc/fhem/fhem-5.9-r1.ebuild |
25 |
@@ -0,0 +1,103 @@ |
26 |
+# Copyright 1999-2019 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=7 |
30 |
+ |
31 |
+inherit systemd |
32 |
+ |
33 |
+DESCRIPTION="A GPL'd perl server for house automation" |
34 |
+HOMEPAGE="https://www.fhem.de/" |
35 |
+SRC_URI="https://www.fhem.de/${P}.tar.gz" |
36 |
+ |
37 |
+KEYWORDS="~amd64 ~x86" |
38 |
+LICENSE="GPL-2+" |
39 |
+SLOT="0" |
40 |
+IUSE="doc" |
41 |
+ |
42 |
+RDEPEND=" |
43 |
+ acct-group/fhem |
44 |
+ acct-user/fhem |
45 |
+ dev-perl/Crypt-CBC |
46 |
+ dev-perl/Device-SerialPort |
47 |
+ dev-perl/Digest-CRC |
48 |
+ dev-perl/JSON |
49 |
+" |
50 |
+ |
51 |
+DEPEND="media-gfx/pngcrush" |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ default |
55 |
+ |
56 |
+ # Allow install path to be set by DESTDIR in Makefile |
57 |
+ sed -i -e 's,^\(BINDIR=\),\1'\$\(DESTDIR\)',' Makefile || die |
58 |
+ |
59 |
+ # Remove docs in Makefile, as they will be installed manually |
60 |
+ sed -i -e 's/docs//g' Makefile || die |
61 |
+ sed -i -e '/README_DEMO.txt/d' Makefile || die |
62 |
+ |
63 |
+ # Remove manpage in Makefile, as it will be installed manually |
64 |
+ sed -i -e '/fhem.pl.1/d' Makefile || die |
65 |
+ |
66 |
+ # Remove lcd4linux binaries, as they are provied by app-misc/lcd4linux |
67 |
+ rm -r contrib/lcd4linux || die |
68 |
+ |
69 |
+ # Remove log dir, as it will be replaced with a symlink |
70 |
+ rm -r log || die |
71 |
+ |
72 |
+ # Fix fhemicon_darksmall.png, as it reports "broken IDAT window length" |
73 |
+ # Reported to Upstream: https://forum.fhem.de/index.php/topic,86238.0.html |
74 |
+ pngcrush -fix -force -ow www/images/default/fhemicon_darksmall.png || die |
75 |
+ |
76 |
+ cp "${FILESDIR}"/fhem.cfg fhem.cfg || die |
77 |
+} |
78 |
+ |
79 |
+src_compile() { |
80 |
+ : |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ local DOCS=( |
85 |
+ "CHANGED" |
86 |
+ "HISTORY" |
87 |
+ "MAINTAINER.txt" |
88 |
+ "README.SVN" |
89 |
+ "README_DEMO.txt" |
90 |
+ "docs"/*.txt |
91 |
+ "docs"/*.patch |
92 |
+ "docs"/*.pdf |
93 |
+ "docs/changelog" |
94 |
+ "docs/copyright" |
95 |
+ "docs/dotconfig" |
96 |
+ "docs/fhem.odg.readme" |
97 |
+ "docs/LIESMICH.update-thirdparty" |
98 |
+ "docs"/README* |
99 |
+ "docs/X10" |
100 |
+ ) |
101 |
+ |
102 |
+ if use doc; then |
103 |
+ local DOCS+=( "docs/X10" ) |
104 |
+ local HTML_DOCS=( "docs/"*.eps "docs/"*.html "docs"/*.jpg "docs"/*.js "docs"/*.odg "docs/"*.png "docs/km271" ) |
105 |
+ fi |
106 |
+ |
107 |
+ diropts -o fhem -g fhem |
108 |
+ keepdir "/var/lib/fhem" |
109 |
+ keepdir "/var/log/fhem" |
110 |
+ diropts |
111 |
+ |
112 |
+ dosym ../../var/lib/fhem /opt/fhem/data |
113 |
+ dosym ../../var/log/fhem /opt/fhem/log |
114 |
+ |
115 |
+ default |
116 |
+ |
117 |
+ newinitd "${FILESDIR}"/fhem.initd fhem |
118 |
+ |
119 |
+ systemd_dounit "${FILESDIR}"/fhem.service |
120 |
+ systemd_newtmpfilesd "${FILESDIR}"/fhem.tmpfiles fhem.conf |
121 |
+ |
122 |
+ newman docs/fhem.man fhem.pl.1 |
123 |
+ |
124 |
+ echo 'CONFIG_PROTECT="/opt/fhem /var/lib/fhem"' > "${T}"/99fhem || die |
125 |
+ doenvd "${T}"/99fhem |
126 |
+ |
127 |
+ fowners fhem:fhem /opt/fhem/fhem.cfg |
128 |
+} |