Skip to content

Commit

Permalink
Merge branch 'ejabberd-cleanup'
Browse files Browse the repository at this point in the history
  • Loading branch information
aidecoe committed Aug 27, 2016
2 parents 0c0afe9 + a1e2f4f commit 8f999d0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 23 deletions.
11 changes: 6 additions & 5 deletions net-im/ejabberd/ejabberd-16.04.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ DEPEND="${CDEPEND}
RDEPEND="${CDEPEND}
captcha? ( media-gfx/imagemagick[truetype,png] )"

DOCS=( README )
PATCHES=( "${FILESDIR}/${P}-ejabberdctl.patch" )

EJABBERD_CERT="${EPREFIX}/etc/ssl/ejabberd/server.pem"
Expand Down Expand Up @@ -114,7 +115,7 @@ ejabberd_cert_exists() {

for cert in $(gawk -- \
'match($0, /^[[:space:]]*certfile: "([^"]+)"/, m) {print m[1];}' \
"${EROOT}${JABBER_ETC}/ejabberd.yml"); do
"${EROOT%/}${JABBER_ETC}/ejabberd.yml"); do
[[ -f ${cert} ]] && return 0
done

Expand All @@ -126,8 +127,8 @@ ejabberd_cert_exists() {
ejabberd_cert_install() {
SSL_ORGANIZATION="${SSL_ORGANIZATION:-ejabberd XMPP Server}"
install_cert "${EJABBERD_CERT%.*}"
chown root:jabber "${EROOT}${EJABBERD_CERT}" || die
chmod 0440 "${EROOT}${EJABBERD_CERT}" || die
chown root:jabber "${EROOT%/}${EJABBERD_CERT}" || die
chmod 0440 "${EROOT%/}${EJABBERD_CERT}" || die
}

# Get path to ejabberd lib directory.
Expand Down Expand Up @@ -224,8 +225,8 @@ src_install() {
fperms 4750 "${epam_path}"
fi

newconfd "${FILESDIR}/${PN}-3.confd" "${PN}"
newinitd "${FILESDIR}/${PN}-3.initd" "${PN}"
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
systemd_dounit "${PN}.service"
systemd_dotmpfilesd "${FILESDIR}/${PN}.tmpfiles.conf"

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/sbin/openrc-run
# Copyright 1999-2013 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

Expand Down
17 changes: 0 additions & 17 deletions net-im/ejabberd/files/ejabberd.service

This file was deleted.

0 comments on commit 8f999d0

Please sign in to comment.