From 508121866cb41a655efd19a0e12a5aa91a0dce7a Mon Sep 17 00:00:00 2001 From: Jay Larson Date: Tue, 27 Mar 2018 09:17:00 -0500 Subject: [PATCH] The following changes were made: * Added dash as dependency * Added URL * Added REPO * Moved usher from bash to /bin/sh * Removed TARGET from usher * Tweaked SRC Makefile to work with /bin/sh --- Makefile | 7 ++++--- SNAP/usher | 6 +++--- SRC/iftools/Makefile | 3 ++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 4e4a9d4..eba7167 100644 --- a/Makefile +++ b/Makefile @@ -8,13 +8,14 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -DEPENDS = dhclient,iproute2 +DEPENDS = dash,dhclient,iproute2 ARCH = none -URL = +URL = http://snaplinux.org/ +REPO = core BRIEF = Scripts for starting and stopping network interfaces DESC = Scripts which use the iproute2 tools for automatically starting and \ stopping network devices during startup. -SNAPVER = 0 +SNAPVER = 1 ARCHIVE := SRCDIR := $(PWD)/SRC/iftools diff --git a/SNAP/usher b/SNAP/usher index c3e5c44..8ae1796 100755 --- a/SNAP/usher +++ b/SNAP/usher @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -e @@ -7,8 +7,8 @@ case $1 in exit 0 ;; postinst) - if [ ! -f ${TARGET}/etc/network.conf ]; then - cp ${TARGET}/usr/share/iftools/network.conf ${TARGET}/etc/network.conf + if [ ! -f /etc/network.conf ]; then + cp /usr/share/iftools/network.conf /etc/network.conf fi ;; prerm) diff --git a/SRC/iftools/Makefile b/SRC/iftools/Makefile index 00f0a8f..838384e 100644 --- a/SRC/iftools/Makefile +++ b/SRC/iftools/Makefile @@ -2,7 +2,8 @@ dirs: install -d -v -m 755 $(DESTDIR)/etc/init.d install -d -v -m 755 $(DESTDIR)/etc/network.d install -d -v -m 755 $(DESTDIR)/usr/share/iftools - install -d -v -m 755 $(DESTDIR)/usr/share/man/man{5,8} + install -d -v -m 755 $(DESTDIR)/usr/share/man/man5 + install -d -v -m 755 $(DESTDIR)/usr/share/man/man8 install -d -v -m 755 $(DESTDIR)/sbin files: