add samples

This commit is contained in:
Mario Fetka
2026-04-19 23:08:28 +02:00
parent 22dcfb823b
commit a1490efb03
8 changed files with 458 additions and 136 deletions

View File

@@ -1,36 +1,62 @@
# Copyright 1999-2022 Gentoo Authors
# 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
inherit autotools git-r3 systemd
DESCRIPTION="The IPX Utilities"
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"
IUSE=""
RDEPEND="net-misc/ipx-modules"
RDEPEND="
net-misc/ipx-modules
"
BDEPEND="
dev-build/autoconf
dev-build/automake
dev-build/libtool
"
DOCS=( AUTHORS ChangeLog INSTALL NEWS README )
src_prepare() {
default
eautoreconf
default
eapply "${FILESDIR}/ipx-utils-1.2-build-samples.patch"
eautoreconf
}
src_configure() {
econf --bindir="${EPREFIX}"/sbin
econf --bindir="${EPREFIX}/sbin"
}
src_install() {
newconfd "${FILESDIR}"/ipx.confd ipx
newinitd "${FILESDIR}"/ipx.init ipx
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"
}
pkg_postinst() {
elog "IPX support was removed in Linux 4.18. For newer kernels build the ipx module from sources: https://github.com/pasis/ipx"
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"
}