This commit is contained in:
Mario Fetka
2026-05-06 09:27:49 +02:00
parent 7e87386a55
commit 170ce3bbb5
7 changed files with 172 additions and 32 deletions

View File

@@ -3,60 +3,67 @@
EAPI=8
EGIT_REPO_URI="https://github.com/pasis/ipx-utils.git"
inherit autotools systemd
inherit autotools git-r3 systemd
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://gitea.disconnected-by-peer.at/mars_nwe/ipx-utils.git"
KEYWORDS="~amd64"
else
SRC_URI="https://gitea.disconnected-by-peer.at/mars_nwe/ipx-utils/releases/download/v${PV}/${P}.tar.xz"
KEYWORDS="~amd64"
fi
DESCRIPTION="IPX protocol utilities"
HOMEPAGE="https://github.com/pasis/ipx-utils"
HOMEPAGE="https://gitea.disconnected-by-peer.at/mars_nwe/ipx-utils"
LICENSE="ipx-utils GPL-2" # GPL-2 only for init script
SLOT="0"
KEYWORDS="~amd64"
DEPEND="virtual/libintl"
RDEPEND="
net-misc/ipx-modules
${DEPEND}
net-misc/ipx-modules
"
BDEPEND="
dev-build/autoconf
dev-build/automake
dev-build/libtool
sys-devel/gettext
"
DOCS=( AUTHORS ChangeLog INSTALL NEWS README )
src_prepare() {
default
eapply "${FILESDIR}/ipx-utils-1.2-build-samples.patch"
eautoreconf
default
if [[ ${PV} == 9999 ]]; then
eautoreconf
fi
}
src_configure() {
econf --bindir="${EPREFIX}/sbin"
econf \
--sbindir="${EPREFIX}/usr/sbin" \
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
}
src_install() {
default
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"
# Upstream installs the systemd unit, /etc/conf.d/ipx, and the
# /usr/libexec/ipx wrapper scripts from release tarballs and live git.
# Keep installing the OpenRC init script from FILESDIR for Gentoo.
if [[ -f ${FILESDIR}/ipx.init ]]; then
newinitd "${FILESDIR}/ipx.init" ipx
fi
}
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"
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"
}