# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit autotools 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://gitea.disconnected-by-peer.at/mars_nwe/ipx-utils" LICENSE="ipx-utils GPL-2" # GPL-2 only for init script SLOT="0" DEPEND="virtual/libintl" RDEPEND=" ${DEPEND} net-misc/ipx-modules " BDEPEND=" sys-devel/gettext " DOCS=( AUTHORS ChangeLog INSTALL NEWS README ) src_prepare() { default if [[ ${PV} == 9999 ]]; then eautoreconf fi } src_configure() { econf \ --sbindir="${EPREFIX}/usr/sbin" \ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" } src_install() { default # 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" }