You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.2 KiB
56 lines
1.2 KiB
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
6 years ago
|
|
||
5 years ago
|
inherit systemd user
|
||
6 years ago
|
|
||
|
DESCRIPTION="Another (RFC1413 compliant) ident daemon"
|
||
|
HOMEPAGE="https://oidentd.janikrabe.com/"
|
||
5 years ago
|
SRC_URI="https://files.janikrabe.com/pub/${PN}/releases/${PV}/${P}.tar.xz"
|
||
6 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||
|
IUSE="debug ipv6 masquerade selinux"
|
||
|
|
||
|
DEPEND="masquerade? (
|
||
|
net-libs/libnetfilter_conntrack
|
||
|
sys-libs/libcap-ng )"
|
||
|
|
||
|
RDEPEND="${DEPEND}
|
||
|
selinux? ( sec-policy/selinux-oident )"
|
||
|
|
||
|
pkg_setup() {
|
||
|
enewgroup oidentd
|
||
|
enewuser oidentd -1 -1 -1 oidentd
|
||
|
}
|
||
|
|
||
5 years ago
|
src_prepare() {
|
||
|
sed -i '/ExecStart/ s|$| -u oidentd -g oidentd|' contrib/systemd/*.service || die
|
||
|
|
||
|
default
|
||
|
}
|
||
|
|
||
6 years ago
|
src_configure() {
|
||
|
local myconf=(
|
||
|
$(use_enable debug)
|
||
|
$(use_enable ipv6)
|
||
5 years ago
|
$(use_enable masquerade libnfct)
|
||
6 years ago
|
$(use_enable masquerade masq)
|
||
|
$(use_enable masquerade nat)
|
||
|
)
|
||
|
econf "${myconf[@]}"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
|
||
|
newinitd "${FILESDIR}"/${PN}-2.0.7-init ${PN}
|
||
|
newconfd "${FILESDIR}"/${PN}-2.2.2-confd ${PN}
|
||
|
|
||
5 years ago
|
systemd_dounit contrib/systemd/${PN}@.service
|
||
|
systemd_dounit contrib/systemd/${PN}.socket
|
||
|
systemd_dounit contrib/systemd/${PN}.service
|
||
6 years ago
|
}
|