[Lunar-commits] <moonbase-other> net-tools: moved from core to other

Stefan Wold ratler at lunar-linux.org
Fri Jan 4 12:27:34 CET 2013


commit bd2df8b4dc0aaa29da25235e80c6a8fa19ee6f8b
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Fri, 04 Jan 2013 03:27:34 -0800
URL: https://github.com/lunar-linux/moonbase-other/commit/bd2df8b4dc0aaa29da25235e80c6a8fa19ee6f8b

net-tools: moved from core to other
---
  net/net-tools/BUILD        | +32/-0    
  net/net-tools/CONFIGURE    | +21/-0    
  net/net-tools/DEPENDS      | +4/-0     
  net/net-tools/DETAILS      | +53/-0    
  net/net-tools/POST_INSTALL | +10/-0    
  net/net-tools/ifdown       | +5/-0     
  net/net-tools/ifup         | +5/-0     
  7 files changed, 130 insertions(+)

--- /dev/null
+++ b/net/net-tools/BUILD
@@ -0,0 +1,32 @@
+(
+
+  patch_it $SOURCE2 1 &&
+  patch_it $SOURCE3 0 &&
+  patch_it $SOURCE4 1 &&
+  patch_it $SOURCE5 1 &&
+  sedit "s/-O2/$CFLAGS/" Makefile &&
+  sedit "s/LOPTS = /LOPTS = $LDFLAGS -s/" Makefile &&
+
+  # Do not add debug data to protect against hacking
+  # and stop chkrootkit from reporting false positive
+  sedit "s/-g//" Makefile &&
+
+  if [ -f $CONFIG_CACHE/net-tools.config.h ]; then
+    cp $CONFIG_CACHE/net-tools.config.h config.h
+  else
+    if [ "$(get_module_config AUTOCONF)" == "y" ]; then
+      NET_TOOLS_AUTOCONF=1 ./configure.sh config.in
+    else
+      ./configure.sh config.in
+    fi &&
+    cp config.h $CONFIG_CACHE/net-tools.config.h
+  fi &&
+
+  make            &&
+  prepare_install &&
+
+  make BASEDIR=/ install &&
+  install -m 755 $SCRIPT_DIRECTORY/ifup   /sbin &&
+  install -m 755 $SCRIPT_DIRECTORY/ifdown /sbin
+
+) > $C_FIFO 2>&1
--- /dev/null
+++ b/net/net-tools/CONFIGURE
@@ -0,0 +1,21 @@
+if  !  grep  -q  CONFIGURED  $MODULE_CONFIG;  then
+
+  if  [  -f  $CONFIG_CACHE/net-tools.config.h  ];  then
+    if query  "Reconfigure net-tools?" n; then
+      rm  -f  $CONFIG_CACHE/net-tools.config.h
+      if query "Auto configure net-tools?" y; then
+        echo 'AUTOCONF="y"' >> $MODULE_CONFIG
+      fi
+    fi
+  else
+    if query "Auto configure net-tools?" y; then
+      echo 'AUTOCONF="y"' >> $MODULE_CONFIG
+    fi
+  fi
+
+  if query "Do you want to configure your network?" n; then
+      echo 'RUN_LNET="y"' >>  $MODULE_CONFIG
+  fi
+
+  echo  'CONFIGURED="y"'  >>  $MODULE_CONFIG
+fi
--- /dev/null
+++ b/net/net-tools/DEPENDS
@@ -0,0 +1,4 @@
+#for boot-strapping purposes:
+depends coreutils
+
+optional_depends  "gettext"  ""  ""  "for i18n internationalization support"
--- /dev/null
+++ b/net/net-tools/DETAILS
@@ -0,0 +1,53 @@
+          MODULE=net-tools
+         VERSION=1.60
+          SOURCE=$MODULE-$VERSION.tar.bz2
+         SOURCE2=$MODULE-$VERSION-gcc-3.3-fix1.patch.bz2
+         SOURCE3=gcc34_net-tools_lunar.patch
+     SOURCE4=$MODULE-autoconf.patch.gz
+     SOURCE5=$MODULE-$VERSION-fixes.patch.gz
+   SOURCE_URL[0]=http://www.tazenda.demon.co.uk/phil/net-tools/
+  SOURCE2_URL[0]=$PATCH_URL
+     SOURCE3_URL=$PATCH_URL
+     SOURCE4_URL=$PATCH_URL
+     SOURCE5_URL=$PATCH_URL
+      SOURCE_VFY=sha1:944fb70641505d5d1139dba3aeb81ba124574b83
+     SOURCE2_VFY=sha1:44ee3a0c517a4e67d8d746cd05683bd9f10836b7
+     SOURCE3_VFY=sha1:b23cc7946f2b4e8cfac1adfa6a1ea29e11ba18fa
+     SOURCE4_VFY=sha1:cdd26d5729491a5a12a45b657e6ca4f85cbda7a5
+     SOURCE5_VFY=sha1:61336ad568a415385f24788b30039f746977d28c
+        WEB_SITE=http://www.tazenda.demon.co.uk/phil/net-tools
+      MAINTAINER=kc8apf at kc8apf.net
+         ENTERED=20010922
+         UPDATED=20080303
+           SHORT="net-tools contains essential tools for networking."
+PSAFE=no
+LUNAR_RESTART_SERVICES=off
+cat << EOF
+The Net-tools package contains the arp, hostname, ifconfig, netstat,
+plipconfig rarp, route, and slattach programs.
+
+arp is used to manipulate the kernel's ARP cache, usually to add or
+delete an entry, or to dump the ARP cache.
+
+hostname, with its symlinks domainname, dnsdomainname, nisdomainname,
+ypdomainname, and nodename, is used to set or show the system's hostname
+(or other, depending on the symlink used).
+
+The ifconfig command is the general command used to configure network
+interfaces.
+
+netstat is a multi-purpose tool used to print the network connections,
+routing tables, interface statistics, masquerade connections, and
+multicast memberships.
+
+plipconfig is used to fine-tune the PLIP device parameters, hopefully
+making it faster.
+
+rarp, akin to the arp program, manipulates the system's RARP table.
+
+route is the general utility which is used to manipulate the IP routing
+table.
+
+slattach attaches a network interface to a serial line, i.e.. puts a
+normal terminal line into one of several "network" modes.
+EOF
--- /dev/null
+++ b/net/net-tools/POST_INSTALL
@@ -0,0 +1,10 @@
+# This is going to make the migration to lunar-init way easier
+
+mkdir -p /etc/config.d/{network,bonding}
+mkdir -p /var/run
+
+if [ "$(get_module_config RUN_LNET)" == "y" ]; then
+        unset_module_config RUN_LNET
+        /usr/sbin/lnet || true
+fi
+
--- /dev/null
+++ b/net/net-tools/ifdown
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+INTERFACE="$1"
+shift
+ifconfig $INTERFACE down $*
--- /dev/null
+++ b/net/net-tools/ifup
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+INTERFACE="$1"
+shift
+ifconfig $INTERFACE up $*




More information about the Lunar-commits mailing list