1 |
commit: 0363f00331c4ea0e2a664303569adc8ec66ddf7e |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 11 22:06:52 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 11 22:28:52 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0363f003 |
7 |
|
8 |
net-im/jabber-base: bump to EAPI=7, migrate to GLEP 81 |
9 |
|
10 |
Also dropping '/var/run/jabber' from default install, since this |
11 |
directory should be created by each jabber service upon start. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/432462 |
14 |
Closes: https://bugs.gentoo.org/520552 |
15 |
Closes: https://bugs.gentoo.org/670286 |
16 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
17 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
18 |
|
19 |
net-im/jabber-base/jabber-base-0.01-r2.ebuild | 42 +++++++++++++++++++++++++++ |
20 |
1 file changed, 42 insertions(+) |
21 |
|
22 |
diff --git a/net-im/jabber-base/jabber-base-0.01-r2.ebuild b/net-im/jabber-base/jabber-base-0.01-r2.ebuild |
23 |
new file mode 100644 |
24 |
index 00000000000..eba2cc85d74 |
25 |
--- /dev/null |
26 |
+++ b/net-im/jabber-base/jabber-base-0.01-r2.ebuild |
27 |
@@ -0,0 +1,42 @@ |
28 |
+# Copyright 1999-2020 Gentoo Authors |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+ |
31 |
+EAPI=7 |
32 |
+ |
33 |
+DESCRIPTION="Base layout package for various jabber services" |
34 |
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" |
35 |
+S="${WORKDIR}" |
36 |
+ |
37 |
+LICENSE="GPL-2+" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ acct-group/jabber |
43 |
+ acct-user/jabber |
44 |
+" |
45 |
+ |
46 |
+# This package provides the base layout for all jabber related services. |
47 |
+# Each service should use the user 'jabber' and the group 'jabber. |
48 |
+# |
49 |
+# The base layout contains of the following directories: |
50 |
+# '/etc/jabber/' : All main configuration, by jabber services used, is stored here. |
51 |
+# '(/var)/run/jabber' : All pid files, used by jabber services, are stored here. |
52 |
+# : Please note, that this directory should be |
53 |
+# : created dynamically by each jabber service during startup. |
54 |
+# '/var/log/jabber/' : All log files, used by jabber services, are stored here. |
55 |
+# '/var/spool/jabber' : All (flat) database files, used by jabber services, are stored here. |
56 |
+ |
57 |
+src_install() { |
58 |
+ local paths=( |
59 |
+ "/etc/jabber" |
60 |
+ "/var/log/jabber" |
61 |
+ "/var/spool/jabber" |
62 |
+ ) |
63 |
+ |
64 |
+ for path in ${paths[@]}; do |
65 |
+ keepdir "${path}" |
66 |
+ fowners "jabber:jabber" "${path}" |
67 |
+ fperms 770 "${path}" |
68 |
+ done |
69 |
+} |