Gentoo Archives: gentoo-commits

From: "Amadeusz Piotr Żołnowski" <aidecoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-erlang/epam/
Date: Sat, 27 May 2017 20:55:09
Message-Id: 1495918500.1f644f26d001988885f7945480d1584e8faad8e3.aidecoe@gentoo
1 commit: 1f644f26d001988885f7945480d1584e8faad8e3
2 Author: Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 27 14:30:34 2017 +0000
4 Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org>
5 CommitDate: Sat May 27 20:55:00 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f644f26
7
8 dev-erlang/epam: Add SUID bit for epam binary
9
10 Gentoo-Bug: 612608
11 Package-Manager: Portage-2.3.5, Repoman-2.3.2
12
13 dev-erlang/epam/epam-1.0.0-r1.ebuild | 35 +++++++++++++++++++++++++++++++++++
14 1 file changed, 35 insertions(+)
15
16 diff --git a/dev-erlang/epam/epam-1.0.0-r1.ebuild b/dev-erlang/epam/epam-1.0.0-r1.ebuild
17 new file mode 100644
18 index 00000000000..58d8b83046a
19 --- /dev/null
20 +++ b/dev-erlang/epam/epam-1.0.0-r1.ebuild
21 @@ -0,0 +1,35 @@
22 +# Copyright 1999-2017 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +REBAR_APP_SRC=src/p1_pam.app.src
28 +
29 +inherit rebar user
30 +
31 +DESCRIPTION="epam for ejabberd to help with PAM authentication support"
32 +HOMEPAGE="https://github.com/processone/epam"
33 +SRC_URI="https://github.com/processone/${PN}/archive/${PV}.tar.gz
34 + -> ${P}.tar.gz"
35 +
36 +LICENSE="GPL-2"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
39 +
40 +DEPEND=">=dev-lang/erlang-17.1
41 + sys-libs/pam"
42 +RDEPEND="${DEPEND}"
43 +
44 +DOCS=( README.md )
45 +
46 +pkg_setup() {
47 + enewgroup "${PN}"
48 +}
49 +
50 +src_install() {
51 + rebar_src_install
52 +
53 + local epam_path="$(get_erl_libs)/${P}/priv/bin/epam"
54 + fowners root:"${PN}" "${epam_path}"
55 + fperms 4750 "${epam_path}"
56 +}