summaryrefslogtreecommitdiffstats
path: root/source/n/network-scripts/network-scripts.SlackBuild
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2023-06-26 19:44:44 +0000
committer Eric Hameleers <alien@slackware.com>2023-06-26 22:33:45 +0200
commit96932c6fb502dda1cc152b746c6adf67070362fc (patch)
tree5ec00550f7474cf30f2af9f287067e36626fd471 /source/n/network-scripts/network-scripts.SlackBuild
parentb011dd2b8ab21afd5f028dae6ad8e04427524c5f (diff)
downloadcurrent-96932c6fb502dda1cc152b746c6adf67070362fc.tar.gz
current-96932c6fb502dda1cc152b746c6adf67070362fc.tar.xz
Mon Jun 26 19:44:44 UTC 202320230626194444
ap/vim-9.0.1667-x86_64-1.txz: Upgraded. This fixes a rare divide-by-zero bug that could cause vim to crash. In an interactive program such as vim, I can't really see this qualifying as a security issue, but since it was brought up as such on LQ we'll just go along with it this time. :) Thanks to marav for the heads-up. (* Security fix *) l/freetype-2.13.1-x86_64-2.txz: Rebuilt. The profile scripts still mentioned three options to choose from when there are now only two. This has been fixed. Thanks to burdi01. l/gegl-0.4.46-x86_64-1.txz: Upgraded. l/imagemagick-7.1.1_12-x86_64-1.txz: Upgraded. l/librsvg-2.56.1-x86_64-1.txz: Upgraded. l/openexr-3.1.9-x86_64-1.txz: Upgraded. l/pipewire-0.3.72-x86_64-1.txz: Upgraded. n/network-scripts-15.0-noarch-19.txz: Rebuilt. This update fixes a bug and adds a new feature: Re-add support for the DHCP_IPADDR parameter from rc.inet1.conf. Expand the help text for DHCP_IPADDR in rc.inet1.conf. Add support for a DHCP_OPTS parameter. Thanks to ljb643 and Darren 'Tadgy' Austin. xap/vim-gvim-9.0.1667-x86_64-1.txz: Upgraded.
Diffstat (limited to '')
-rwxr-xr-xsource/n/network-scripts/network-scripts.SlackBuild28
1 files changed, 27 insertions, 1 deletions
diff --git a/source/n/network-scripts/network-scripts.SlackBuild b/source/n/network-scripts/network-scripts.SlackBuild
index 585374dae..71c0b7000 100755
--- a/source/n/network-scripts/network-scripts.SlackBuild
+++ b/source/n/network-scripts/network-scripts.SlackBuild
@@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=network-scripts
VERSION=${VERSION:-15.0}
ARCH=noarch
-BUILD=${BUILD:-18}
+BUILD=${BUILD:-19}
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
@@ -104,5 +104,31 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
rm -f sbin/netconfig.orig
) || exit 1
+# Temporarily rename these files so that we can patch them:
+mv $PKG/etc/rc.d/rc.inet1.new $PKG/etc/rc.d/rc.inet1
+mv $PKG/etc/rc.d/rc.inet1.conf.new $PKG/etc/rc.d/rc.inet1.conf
+
+# Re-add support for the DHCP_IPADDR parameter from rc.inet1.conf:
+( cd $PKG/etc/rc.d
+ cat $CWD/0003-76218fa6e7c097c875af2a29cc7670995bef2ae4.patch | patch -p1 --verbose || exit 1
+ rm -f etc/rc.d/rc.inet1.orig
+) || exit 1
+
+# Expand the help text for DHCP_IPADDR in rc.inet1.conf:
+( cd $PKG/etc/rc.d
+ cat $CWD/0004-8f43a741a36e59b8a9560ff2c4f3e5da2b8dd72b.patch | patch -p1 --verbose || exit 1
+ rm -f etc/rc.d/rc.inet1.conf.orig
+) || exit 1
+
+# Add support for a DHCP_OPTS parameter:
+( cd $PKG/etc/rc.d
+ cat $CWD/0005-5925f2bcc500f5198b5c00ab4e635a59bef7a413.patch | patch -p1 --verbose || exit 1
+ rm -f etc/rc.d/rc.inet1.orig
+) || exit 1
+
+# Rename the files back to .new:
+mv $PKG/etc/rc.d/rc.inet1 $PKG/etc/rc.d/rc.inet1.new
+mv $PKG/etc/rc.d/rc.inet1.conf $PKG/etc/rc.d/rc.inet1.conf.new
+
cd $PKG
/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz