From 0369547701ce21c10c3228e0319b22931b771e4c Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Wed, 7 Jun 2023 21:35:23 +0100 Subject: net-im/jabber-base: new package, add 0.01-r3 --- net-im/jabber-base/jabber-base-0.01-r3.ebuild | 42 +++++++++++++++++++++++++++ net-im/jabber-base/metadata.xml | 14 +++++++++ 2 files changed, 56 insertions(+) create mode 100644 net-im/jabber-base/jabber-base-0.01-r3.ebuild create mode 100644 net-im/jabber-base/metadata.xml (limited to 'net-im') diff --git a/net-im/jabber-base/jabber-base-0.01-r3.ebuild b/net-im/jabber-base/jabber-base-0.01-r3.ebuild new file mode 100644 index 00000000..858d3ba2 --- /dev/null +++ b/net-im/jabber-base/jabber-base-0.01-r3.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Base layout package for various jabber services" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +S="${WORKDIR}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ppc ppc64 sparc x86" + +RDEPEND=" + acct-group/jabber + acct-user/jabber +" + +# This package provides the base layout for all jabber related services. +# Each service should use the user 'jabber' and the group 'jabber. +# +# The base layout contains of the following directories: +# '/etc/jabber/' : All main configuration, by jabber services used, is stored here. +# '(/var)/run/jabber' : All pid files, used by jabber services, are stored here. +# : Please note, that this directory should be +# : created dynamically by each jabber service during startup. +# '/var/log/jabber/' : All log files, used by jabber services, are stored here. +# '/var/spool/jabber' : All (flat) database files, used by jabber services, are stored here. + +src_install() { + local paths=( + "/etc/jabber" + "/var/log/jabber" + "/var/spool/jabber" + ) + + for path in ${paths[@]}; do + keepdir "${path}" + fowners "jabber:jabber" "${path}" + fperms 770 "${path}" + done +} diff --git a/net-im/jabber-base/metadata.xml b/net-im/jabber-base/metadata.xml new file mode 100644 index 00000000..3ee268c5 --- /dev/null +++ b/net-im/jabber-base/metadata.xml @@ -0,0 +1,14 @@ + + + + + conikost@gentoo.org + Conrad Kostecki + + + + This package creates the base layout, + which is used by several jabber services. + See ebuild for more information. + + -- cgit v1.2.3