Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (30340fd0e589396e04753ad95c79a2838bb3edc9)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (30340fd0e589396e04753ad95c79a2838bb3edc9)
  • Date: Sun, 30 May 2021 13:02:49 +0000

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

ChangeLog | 3 +
net/ifupdown-ng/BUILD | 1
net/ifupdown-ng/CONFLICTS | 2 +
net/ifupdown-ng/DEPENDS | 3 +
net/ifupdown-ng/DETAILS | 15 +++++++++
net/ifupdown-ng/HISTORY | 3 +
net/ifupdown-ng/INSTALL | 4 ++
net/ifupdown-ng/init.d/mountnetwork | 43 +++++++++++++++++++++++++++
net/ifupdown-ng/init.d/mountnetwork.conf | 4 ++
net/ifupdown-ng/init.d/network | 49
+++++++++++++++++++++++++++++++
10 files changed, 127 insertions(+)

New commits:
commit 30340fd0e589396e04753ad95c79a2838bb3edc9
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

ifupdown-ng: new spell, flexible ifup/ifdown implementation

diff --git a/ChangeLog b/ChangeLog
index 2efca8a..e078d94 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2021-05-30 Ismael Luceno <ismael AT sourcemage.org>
+ * net/ifupdown-ng: new spell, flexible ifup/ifdown implementation
+
2021-05-28 Ismael Luceno <ismael AT sourcemage.org>
* video/simplescreenrecorder: new spell, SimpleScreenRecorder

diff --git a/net/ifupdown-ng/BUILD b/net/ifupdown-ng/BUILD
new file mode 100755
index 0000000..6dfecc1
--- /dev/null
+++ b/net/ifupdown-ng/BUILD
@@ -0,0 +1 @@
+default_build_make
diff --git a/net/ifupdown-ng/CONFLICTS b/net/ifupdown-ng/CONFLICTS
new file mode 100755
index 0000000..8e0675e
--- /dev/null
+++ b/net/ifupdown-ng/CONFLICTS
@@ -0,0 +1,2 @@
+conflicts ifupdown &&
+conflicts ifupdown-wpa
diff --git a/net/ifupdown-ng/DEPENDS b/net/ifupdown-ng/DEPENDS
new file mode 100755
index 0000000..0bc8025
--- /dev/null
+++ b/net/ifupdown-ng/DEPENDS
@@ -0,0 +1,3 @@
+depends iproute2 &&
+optional_depends dhcpcd '' '' 'for DHCP support' &&
+optional_depends wpa_supplicant '' '' 'for 802.11i (WPA/2/3) support'
diff --git a/net/ifupdown-ng/DETAILS b/net/ifupdown-ng/DETAILS
new file mode 100755
index 0000000..055ee7d
--- /dev/null
+++ b/net/ifupdown-ng/DETAILS
@@ -0,0 +1,15 @@
+ SPELL=ifupdown-ng
+ VERSION=0.11.2
+ SOURCE="$SPELL-$VERSION.tar.gz"
+ SOURCE_URL[0]=https://github.com/$SPELL/$SPELL/archive/refs/tags/$SOURCE
+
SOURCE_HASH=sha512:a10e8aba67082c6fadf64925d6477aae6794f8b989cdabf47f2369ac1accc645e953436ed74c8d06f2ae37ab86746c9c6614aea1c163ad040ada1dbc0dc8ed95
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$SPELL-$VERSION"
+ WEB_SITE="https://github.com/ifupdown-ng/ifupdown-ng";
+ LICENSE[0]="ISC"
+ ENTERED=20210524
+ KEYWORDS=""
+ SHORT="flexible ifup/ifdown implementation"
+cat << EOF
+ifupdown-ng is a network device manager that is largely compatible with
+Debian ifupdown, BusyBox ifupdown and Cumulus Networks' ifupdown2.
+EOF
diff --git a/net/ifupdown-ng/HISTORY b/net/ifupdown-ng/HISTORY
new file mode 100644
index 0000000..b34bfd8
--- /dev/null
+++ b/net/ifupdown-ng/HISTORY
@@ -0,0 +1,3 @@
+2021-05-30 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD, CONFLICTS, DEPENDS, DETAILS, INSTALL, init.d/mountnetwork,
+ init.d/mountnetwork.conf, init.d/network: spell created
diff --git a/net/ifupdown-ng/INSTALL b/net/ifupdown-ng/INSTALL
new file mode 100755
index 0000000..f2ec197
--- /dev/null
+++ b/net/ifupdown-ng/INSTALL
@@ -0,0 +1,4 @@
+default_install &&
+for i in up down query; do
+ ln -sf ifupdown /sbin/if"$i"
+done
diff --git a/net/ifupdown-ng/init.d/mountnetwork
b/net/ifupdown-ng/init.d/mountnetwork
new file mode 100755
index 0000000..730529f
--- /dev/null
+++ b/net/ifupdown-ng/init.d/mountnetwork
@@ -0,0 +1,43 @@
+#!/bin/bash
+
+. /etc/sysconfig/mountnetwork
+
+PROGRAM=/bin/false
+RUNLEVEL=3
+NEEDS="+network"
+PROVIDES="remote_fs"
+
+file_system_list=""
+
+for fs in ${FILESYSTEMS} ; do
+ if [[ $fs == "nfs" ]] ; then
+ NEEDS="$NEEDS +portmap"
+ fi
+ file_system_list="$file_system_list,$fs"
+done
+file_system_list=${file_system_list:1}
+
+. /etc/init.d/smgl_init
+
+start()
+{
+ if [ "$file_system_list" != "" ] ; then
+ required_executable /bin/mount
+
+ echo "Mounting remote filesystems..."
+ mount -a -F -t $file_system_list
+ evaluate_retval
+ fi
+}
+
+stop()
+{
+ if [ "$file_system_list" != "" ] ; then
+ required_executable /bin/umount
+
+ echo "Unmounting remote filesystems..."
+ umount -a -r -t $file_system_list
+ evaluate_retval
+ fi
+}
+
diff --git a/net/ifupdown-ng/init.d/mountnetwork.conf
b/net/ifupdown-ng/init.d/mountnetwork.conf
new file mode 100644
index 0000000..3211ca4
--- /dev/null
+++ b/net/ifupdown-ng/init.d/mountnetwork.conf
@@ -0,0 +1,4 @@
+# A space separated list of network file systems that are to be mounted at
+# boot. Supported values are "cifs", "nfs", "ncpfs", "smbfs" and "9p"
(without
+# the quotes). The /usr hierachy may be loaded through this script.
+FILESYSTEMS="cifs nfs ncpfs smbfs 9p"
diff --git a/net/ifupdown-ng/init.d/network b/net/ifupdown-ng/init.d/network
new file mode 100755
index 0000000..6424812
--- /dev/null
+++ b/net/ifupdown-ng/init.d/network
@@ -0,0 +1,49 @@
+#!/bin/bash
+
+PROGRAM=/bin/false # To get auto_init functionality
+RUNLEVEL=3
+PROVIDES=network
+RECOMMENDED=yes
+
+[ "$USE_SYSLOG" = "yes" ] && NEEDS="+syslog"
+
+. /etc/init.d/smgl_init
+
+required_executable /sbin/ifup
+required_executable /sbin/ifdown
+
+start()
+{
+ # make sure all the interfaces really do come up
+ echo "Starting networking..."
+ /sbin/ifup --force -a
+ evaluate_retval
+}
+
+stop()
+{
+ echo "Stopping networking..."
+ /sbin/ifdown -a
+ evaluate_retval
+}
+
+restart()
+{
+ echo "Restarting ALL interfaces"
+ stop
+ # sleeping for some trickle time
+ sleep 3
+ start
+}
+
+status()
+{
+ exit 0
+}
+
+reload() { exit 3; }
+
+usage()
+{
+ echo "Usage: $0 {start|stop|restart|status} [DEVICE]"
+}



  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (30340fd0e589396e04753ad95c79a2838bb3edc9), Ismael Luceno, 05/30/2021

Archive powered by MHonArc 2.6.24.

Top of Page