1 |
commit: 218c53485e762e30b6968e7e26e4ec47352316f0 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 27 13:33:55 2015 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 27 13:34:12 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=218c5348 |
7 |
|
8 |
net-im/jabber-base: EAPI bump |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
net-im/jabber-base/jabber-base-0.01-r1.ebuild | 52 +++++++++++++++++++++++++++ |
13 |
1 file changed, 52 insertions(+) |
14 |
|
15 |
diff --git a/net-im/jabber-base/jabber-base-0.01-r1.ebuild b/net-im/jabber-base/jabber-base-0.01-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..1b6320c |
18 |
--- /dev/null |
19 |
+++ b/net-im/jabber-base/jabber-base-0.01-r1.ebuild |
20 |
@@ -0,0 +1,52 @@ |
21 |
+# Copyright 1999-2015 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+ |
27 |
+inherit eutils user |
28 |
+ |
29 |
+DESCRIPTION="Jabber servers and transports layout package" |
30 |
+SRC_URI="" |
31 |
+HOMEPAGE="https://www.gentoo.org/" |
32 |
+ |
33 |
+LICENSE="GPL-2" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd" |
36 |
+IUSE="" |
37 |
+ |
38 |
+DEPEND="" |
39 |
+ |
40 |
+S="${WORKDIR}" |
41 |
+ |
42 |
+#Info for people working in jabber related packages |
43 |
+ |
44 |
+#/etc/jabber/ for configuration files |
45 |
+#/var/run/jabber/ for the pid files |
46 |
+#/var/spool/jabber/ for the flat files databases (actually there must be a ewarn |
47 |
+#at end of ebuild telling user to creat /var/spool/jabber/JID, as some transports fail to start if |
48 |
+#the directory is not there, even if they have permissions to creat it) |
49 |
+#/var/log/jabber/ for the log files |
50 |
+ |
51 |
+#for the python based transports with no install script: |
52 |
+#they must inherit python and be installed in: |
53 |
+#$(python_get_sitedir)/$package-name |
54 |
+ |
55 |
+#the user should be the one created here username=group=jabber |
56 |
+ |
57 |
+src_install() { |
58 |
+ keepdir /etc/jabber |
59 |
+ keepdir /var/run/jabber |
60 |
+ keepdir /var/spool/jabber |
61 |
+ keepdir /var/log/jabber |
62 |
+} |
63 |
+ |
64 |
+pkg_postinst() { |
65 |
+ # Users should not be created in src_install see bug #124680 |
66 |
+ # Add our default jabber group and user |
67 |
+ enewgroup jabber |
68 |
+ enewuser jabber -1 -1 -1 jabber |
69 |
+ # We can't use fowners & fperms convenience wrappers as we are outside the sandbox |
70 |
+ chown jabber:jabber /etc/jabber /var/log/jabber /var/spool/jabber /var/run/jabber |
71 |
+ chmod 770 /etc/jabber /var/log/jabber /var/spool/jabber /var/run/jabber |
72 |
+} |