blob: 1ce4d219a941af725783587b25405f6085eceada (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils fcaps
DESCRIPTION="Simple C NMDC redirector using threads"
HOMEPAGE="http://klondike.es/programas/nmdcredir/"
SRC_URI="http://klondike.es/programas/${PN}/${P}.tar.gz"
#S="${WORKDIR}/${P}"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
FILECAPS=( -g nmdcredir -m 710 -M 710 cap_net_bind_service usr/bin/${PN} )
RDEPEND=""
DEPEND="${RDEPEND}"
pkg_setup() {
#Create the users
enewgroup nmdcredir
enewuser nmdcredir -1 -1 -1 "nmdcredir"
}
src_install() {
dobin ${PN}
fowners root:nmdcredir /usr/bin/${PN}
newinitd "${FILESDIR}/${PN}.init.d" "${PN}"
newconfd "${FILESDIR}/${PN}.conf.d" "${PN}"
if use filecaps; then
ewarn "Using capabilities to allow to listen on ports below 1024"
fi
}
|