Add win4lin
This commit is contained in:
3
net-misc/ipx-utils/Manifest
Normal file
3
net-misc/ipx-utils/Manifest
Normal file
@@ -0,0 +1,3 @@
|
||||
AUX ipx.confd 552 BLAKE2B e953dfafdec15aed36928133ca9db9bd768112f814534fa1f13ae714af955abf2f7d3ce762e9f4c6f6440f80b2e3726f9d1c435eb8804cb3760e39394deb7be3 SHA512 ba7de25e2ee3b9997d51a4eed0b8eb6ede232b627962cbc0efe6c318c1b34911cb64e4c19786e44800d8b573c8730e355e71f78aaf17391f019cc17a49c6c84d
|
||||
AUX ipx.init 847 BLAKE2B 8814aa5c9bcb2cc4a19cd65c21ec92e9ef10084dffd82cbd794377c3a012ca122d3ddfa78c546565e009bfd6dba0c7e9dd3933458bb35f383501fe2fabd0964d SHA512 f8a9cb8e46988a010bf5df97b6e0e29500319ba91964a81fea515cf70e19f04889a4ad061e2aa79a1b75ba3d1ab2ab0abd89d8ebf4ed626267377bd8d05eb2db
|
||||
EBUILD ipx-utils-9999.ebuild 743 BLAKE2B 2a6e8b89838581ce2ce60ef59629a77998bcb574a75e87e52a2eb978971a01572da0e871c714105204af2191197c527e4aa64295af7e801444f40cf7136a0947 SHA512 67ddbb6bc92e0acd29eb2c3a4d5ecafb7038cf866a97059aa59858fda1178ebb88a55b519cb1ae77ef04d0e4ceff5501d99a6428e967ebe7e385d9fd2f08ebff
|
||||
26
net-misc/ipx-utils/files/ipx.confd
Normal file
26
net-misc/ipx-utils/files/ipx.confd
Normal file
@@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2004 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Config file for /etc/init.d/ipx
|
||||
|
||||
# Automatically selecting a primary interface.
|
||||
IPX_AUTO_PRIMARY=on
|
||||
|
||||
# Automatically creating interfaces.
|
||||
IPX_AUTO_INTERFACE=on
|
||||
|
||||
# Interface to which IPX sockets are bound.
|
||||
IPX_DEVICE=eth0
|
||||
|
||||
# The IPX frame type to use
|
||||
IPX_FRAME=802.2
|
||||
|
||||
# Create a special kind of IPX interface that does not
|
||||
# have a physical device or frame type.
|
||||
IPX_INTERNAL_NET=no
|
||||
|
||||
# Network number
|
||||
IPX_NETNUM=1
|
||||
|
||||
# Node number
|
||||
IPX_NODENUM=1
|
||||
41
net-misc/ipx-utils/files/ipx.init
Normal file
41
net-misc/ipx-utils/files/ipx.init
Normal file
@@ -0,0 +1,41 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
#NB: Config is in /etc/conf.d/ipx
|
||||
|
||||
depend() {
|
||||
use net
|
||||
}
|
||||
|
||||
start() {
|
||||
local retval=0
|
||||
|
||||
ebegin "Bringing IPX up"
|
||||
if [ ${IPX_INTERNAL_NET} = "yes" ]
|
||||
then
|
||||
/sbin/ipx_internal_net add ${IPX_NETNUM} ${IPX_NODENUM}
|
||||
retval=$?
|
||||
else
|
||||
/sbin/ipx_interface add -p ${IPX_DEVICE} \
|
||||
${IPX_FRAME} ${IPX_NETNUM}
|
||||
retval=$?
|
||||
fi
|
||||
|
||||
/sbin/ipx_configure \
|
||||
--auto_primary=${IPX_AUTO_PRIMARY} \
|
||||
--auto_interface=${IPX_AUTO_INTERFACE}
|
||||
retval=$(( $retval + $? ))
|
||||
eend ${retval} "Failed to bring IPX up"
|
||||
}
|
||||
|
||||
stop() {
|
||||
local retval=0
|
||||
|
||||
ebegin "Bringing IPX down"
|
||||
/sbin/ipx_configure --auto_primary=off --auto_interface=off
|
||||
retval=$?
|
||||
/sbin/ipx_interface delall
|
||||
retval=$(( $retval + $? ))
|
||||
eend ${retval} "Failed to down IPX"
|
||||
}
|
||||
36
net-misc/ipx-utils/ipx-utils-9999.ebuild
Normal file
36
net-misc/ipx-utils/ipx-utils-9999.ebuild
Normal file
@@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
EGIT_REPO_URI="https://github.com/pasis/ipx-utils.git"
|
||||
|
||||
inherit autotools git-r3
|
||||
|
||||
DESCRIPTION="The IPX 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"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --bindir="${EPREFIX}"/sbin
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newconfd "${FILESDIR}"/ipx.confd ipx
|
||||
newinitd "${FILESDIR}"/ipx.init ipx
|
||||
default
|
||||
}
|
||||
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user