summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2002-07-22 00:24:51 +0000
committerMartin Schlemmer <azarah@gentoo.org>2002-07-22 00:24:51 +0000
commit7a3784c88cc2c488747d3cb5ae4849ad0cb76a3d (patch)
treeefc034d2d0c1c63e36d26b8a4305ceb9605a0b74 /net-misc/ipx-utils/files
parentversion bumped (diff)
downloadgentoo-2-7a3784c88cc2c488747d3cb5ae4849ad0cb76a3d.tar.gz
gentoo-2-7a3784c88cc2c488747d3cb5ae4849ad0cb76a3d.tar.bz2
gentoo-2-7a3784c88cc2c488747d3cb5ae4849ad0cb76a3d.zip
Initial release
Diffstat (limited to 'net-misc/ipx-utils/files')
-rw-r--r--net-misc/ipx-utils/files/digest-ipx-utils-1.11
-rw-r--r--net-misc/ipx-utils/files/ipx-utils-1.1-gentoo.diff24
-rw-r--r--net-misc/ipx-utils/files/ipx.confd42
-rw-r--r--net-misc/ipx-utils/files/ipx.init44
4 files changed, 111 insertions, 0 deletions
diff --git a/net-misc/ipx-utils/files/digest-ipx-utils-1.1 b/net-misc/ipx-utils/files/digest-ipx-utils-1.1
new file mode 100644
index 000000000000..dda49eb20af9
--- /dev/null
+++ b/net-misc/ipx-utils/files/digest-ipx-utils-1.1
@@ -0,0 +1 @@
+MD5 300bdb7e4c8ed31d510c4781c0ae3969 ipx-1.1.tar.gz 8177
diff --git a/net-misc/ipx-utils/files/ipx-utils-1.1-gentoo.diff b/net-misc/ipx-utils/files/ipx-utils-1.1-gentoo.diff
new file mode 100644
index 000000000000..0d7b4a53d000
--- /dev/null
+++ b/net-misc/ipx-utils/files/ipx-utils-1.1-gentoo.diff
@@ -0,0 +1,24 @@
+--- Makefile.orig Fri Jul 19 21:31:42 2002
++++ Makefile Fri Jul 19 21:33:05 2002
+@@ -10,17 +10,9 @@
+ install: $(UTILS)
+ for i in $(UTILS); \
+ do \
+- install --strip $$i /sbin; \
+- install $$i.8 /usr/man/man8; \
++ install --strip $$i ${DESTDIR}/sbin; \
++ install $$i.8 ${DESTDIR}/usr/share/man/man8; \
+ done
+- install init.ipx /etc/rc.d/init.d/ipx
+- install -m 0644 config.ipx /etc/sysconfig/ipx
+- rm -f /etc/rc.d/rc2.d/S15ipx
+- ln -sf /etc/rc.d/init.d/ipx /etc/rc.d/rc2.d/S15ipx
+- rm -f /etc/rc.d/rc3.d/S15ipx
+- ln -sf /etc/rc.d/init.d/ipx /etc/rc.d/rc3.d/S15ipx
+- rm -f /etc/rc.d/rc5.d/S15ipx
+- ln -sf /etc/rc.d/init.d/ipx /etc/rc.d/rc5.d/S15ipx
+- rm -f /etc/rc.d/rc6.d/K55ipx
+- ln -sf /etc/rc.d/init.d/ipx /etc/rc.d/rc6.d/K55ipx
++# install init.ipx /etc/rc.d/init.d/ipx
++# install -m 0644 config.ipx /etc/sysconfig/ipx
+
diff --git a/net-misc/ipx-utils/files/ipx.confd b/net-misc/ipx-utils/files/ipx.confd
new file mode 100644
index 000000000000..ebe98d6460ec
--- /dev/null
+++ b/net-misc/ipx-utils/files/ipx.confd
@@ -0,0 +1,42 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ipx-utils/files/ipx.confd,v 1.1 2002/07/22 00:24:51 azarah Exp $
+
+# 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
+
diff --git a/net-misc/ipx-utils/files/ipx.init b/net-misc/ipx-utils/files/ipx.init
new file mode 100644
index 000000000000..3af5e8e02d31
--- /dev/null
+++ b/net-misc/ipx-utils/files/ipx.init
@@ -0,0 +1,44 @@
+#!/sbin/runscript
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ipx-utils/files/ipx.init,v 1.1 2002/07/22 00:24:51 azarah Exp $
+
+#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
+
+ 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"
+}
+