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.
72 lines
1.5 KiB
72 lines
1.5 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
4 years ago
|
|
||
3 years ago
|
inherit readme.gentoo-r1 systemd toolchain-funcs
|
||
4 years ago
|
|
||
|
DESCRIPTION="Linux IPv6 Router Advertisement Daemon"
|
||
|
HOMEPAGE="http://v6web.litech.org/radvd/"
|
||
|
SRC_URI="http://v6web.litech.org/radvd/dist/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="BSD"
|
||
|
SLOT="0"
|
||
3 years ago
|
KEYWORDS="amd64 arm arm64 ~hppa ppc ~ppc64 sparc x86"
|
||
4 years ago
|
IUSE="kernel_FreeBSD selinux test"
|
||
|
RESTRICT="!test? ( test )"
|
||
|
|
||
4 years ago
|
BDEPEND="virtual/pkgconfig"
|
||
4 years ago
|
CDEPEND="dev-libs/libdaemon"
|
||
3 years ago
|
DEPEND="
|
||
|
${CDEPEND}
|
||
4 years ago
|
sys-devel/bison
|
||
|
sys-devel/flex
|
||
3 years ago
|
test? ( dev-libs/check )
|
||
|
"
|
||
|
RDEPEND="
|
||
|
${CDEPEND}
|
||
|
acct-group/radvd
|
||
|
acct-user/radvd
|
||
4 years ago
|
selinux? ( sec-policy/selinux-radvd )
|
||
|
"
|
||
|
|
||
3 years ago
|
DOCS=( CHANGES README TODO radvd.conf.example )
|
||
4 years ago
|
|
||
|
src_configure() {
|
||
|
econf --with-pidfile=/run/radvd/radvd.pid \
|
||
|
--with-systemdsystemunitdir=no \
|
||
|
$(use_with test check)
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
emake AR="$(tc-getAR)"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
|
||
3 years ago
|
docinto html
|
||
4 years ago
|
dodoc INTRO.html
|
||
4 years ago
|
|
||
|
newinitd "${FILESDIR}"/${PN}-2.15.init ${PN}
|
||
|
newconfd "${FILESDIR}"/${PN}.conf ${PN}
|
||
|
|
||
|
systemd_dounit "${FILESDIR}"/${PN}.service
|
||
|
|
||
|
if use kernel_FreeBSD ; then
|
||
3 years ago
|
sed -e \
|
||
4 years ago
|
's/^SYSCTL_FORWARD=.*$/SYSCTL_FORWARD=net.inet6.ip6.forwarding/g' \
|
||
3 years ago
|
-i "${D}"/etc/init.d/${PN} || die
|
||
4 years ago
|
fi
|
||
|
|
||
|
readme.gentoo_create_doc
|
||
|
}
|
||
|
|
||
|
DISABLE_AUTOFORMATTING=1
|
||
4 years ago
|
DOC_CONTENTS="Please create a configuration file ${ROOT}/etc/radvd.conf.
|
||
|
See ${ROOT}/usr/share/doc/${PF} for an example.
|
||
4 years ago
|
|
||
|
grsecurity users should allow a specific group to read /proc
|
||
|
and add the radvd user to that group, otherwise radvd may
|
||
|
segfault on startup."
|