/[gentoo-x86]/net-im/jabber-base/jabber-base-0.01.ebuild
Gentoo

Contents of /net-im/jabber-base/jabber-base-0.01.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sat Sep 1 22:50:36 2012 UTC (22 months, 1 week ago) by blueness
Branch: MAIN
Changes since 1.10: +3 -3 lines
Stable ppc, bug #427714

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-im/jabber-base/jabber-base-0.01.ebuild,v 1.10 2011/12/13 12:52:16 naota Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Jabber servers and transports layout package"
8 SRC_URI=""
9 HOMEPAGE="http://www.gentoo.org/"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="alpha amd64 arm hppa ~ia64 ppc sparc x86 ~x86-fbsd"
14 IUSE=""
15
16 DEPEND=""
17
18 S="${WORKDIR}"
19
20 #Info for people working in jabber related packages
21
22 #/etc/jabber/ for configuration files
23 #/var/run/jabber/ for the pid files
24 #/var/spool/jabber/ for the flat files databases (actually there must be a ewarn
25 #at end of ebuild telling user to creat /var/spool/jabber/JID, as some transports fail to start if
26 #the directory is not there, even if they have permissions to creat it)
27 #/var/log/jabber/ for the log files
28
29 #for the python based transports with no install script:
30 #they must inherit python and be installed in:
31 #$(python_get_sitedir)/$package-name
32
33 #the user should be the one created here username=group=jabber
34
35 src_install() {
36 keepdir /etc/jabber
37 keepdir /var/run/jabber
38 keepdir /var/spool/jabber
39 keepdir /var/log/jabber
40 }
41
42 pkg_postinst() {
43 # Users should not be created in src_install see bug #124680
44 # Add our default jabber group and user
45 enewgroup jabber
46 enewuser jabber -1 -1 -1 jabber
47 # We can't use fowners & fperms convenience wrappers as we are outside the sandbox
48 chown jabber:jabber /etc/jabber /var/log/jabber /var/spool/jabber /var/run/jabber
49 chmod 770 /etc/jabber /var/log/jabber /var/spool/jabber /var/run/jabber
50 }

  ViewVC Help
Powered by ViewVC 1.1.20