63 lines
1.3 KiB
Bash
63 lines
1.3 KiB
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
EGIT_REPO_URI="https://github.com/pasis/ipx-utils.git"
|
|
|
|
inherit autotools git-r3 systemd
|
|
|
|
DESCRIPTION="IPX protocol utilities"
|
|
HOMEPAGE="https://github.com/pasis/ipx-utils"
|
|
|
|
LICENSE="ipx-utils GPL-2" # GPL-2 only for init script
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
RDEPEND="
|
|
net-misc/ipx-modules
|
|
"
|
|
|
|
BDEPEND="
|
|
dev-build/autoconf
|
|
dev-build/automake
|
|
dev-build/libtool
|
|
"
|
|
|
|
DOCS=( AUTHORS ChangeLog INSTALL NEWS README )
|
|
|
|
src_prepare() {
|
|
default
|
|
eapply "${FILESDIR}/ipx-utils-1.2-build-samples.patch"
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
econf --bindir="${EPREFIX}/sbin"
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
newconfd "${FILESDIR}/ipx.confd" ipx
|
|
newinitd "${FILESDIR}/ipx.init" ipx
|
|
|
|
exeinto /usr/libexec/ipx
|
|
newexe "${FILESDIR}/network-start.sh" network-start.sh
|
|
newexe "${FILESDIR}/network-stop.sh" network-stop.sh
|
|
|
|
systemd_dounit "${FILESDIR}/ipx.service"
|
|
}
|
|
|
|
pkg_postinst() {
|
|
elog "IPX support was removed from the upstream Linux kernel in 4.18."
|
|
elog "For newer kernels, build the external IPX kernel module sources:"
|
|
elog " https://github.com/pasis/ipx"
|
|
elog
|
|
elog "OpenRC:"
|
|
elog " rc-update add ipx default"
|
|
elog
|
|
elog "systemd:"
|
|
elog " systemctl enable --now ipx.service"
|
|
}
|