Skip to content

Commit

Permalink
Update OpenBSD patches to 6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sonertari committed Dec 2, 2019
1 parent 27d64a5 commit 68873ca
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 107 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
--- list.orig 2018-10-27 02:53:00.453192386 +0300
+++ list 2018-05-20 23:18:36.849487904 +0300
@@ -69,6 +69,7 @@
--- list.orig Thu Nov 28 15:15:10 2019
+++ list Thu Nov 28 15:17:45 2019
@@ -104,6 +104,7 @@
COPY ${CURDIR}/../../miniroot/master.passwd etc/master.passwd
SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
COPY ${DESTDIR}/etc/signify/openbsd-${REV}-base.pub etc/signify/openbsd-${REV}-base.pub
+COPY /etc/signify/utmfw-${REV}.pub etc/signify/utmfw-${REV}.pub
COPY ${DESTDIR}/etc/signify/openbsd-${OSrev}-base.pub etc/signify/openbsd-${OSrev}-base.pub
+COPY /etc/signify/utmfw-${OSrev}.pub etc/signify/utmfw-${OSrev}.pub
COPY ${CURDIR}/../../miniroot/protocols etc/protocols
COPY ${CURDIR}/../../miniroot/services etc/services
TERMCAP vt100,vt220,dumb usr/share/misc/termcap
8 changes: 4 additions & 4 deletions openbsd/utmfw/distrib/miniroot/patch-dot_profile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- dot.profile.orig Mon Oct 29 20:04:02 2018
+++ dot.profile Mon Oct 29 20:09:47 2018
@@ -100,13 +100,13 @@
--- dot.profile.orig Sun Apr 28 01:08:58 2019
+++ dot.profile Thu Nov 28 15:26:43 2019
@@ -103,13 +103,13 @@
fi

while :; do
Expand All @@ -17,7 +17,7 @@
else
# User has made a choice; stop the read timeout.
[[ -n $timer_pid ]] && kill $timer_pid 2>/dev/null
@@ -114,9 +114,7 @@
@@ -117,9 +117,7 @@
fi

case $REPLY in
Expand Down
34 changes: 17 additions & 17 deletions openbsd/utmfw/distrib/miniroot/patch-install_sub
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- install.sub.orig Sat Sep 22 12:12:36 2018
+++ install.sub Sun Oct 28 02:00:20 2018
@@ -1235,7 +1235,7 @@
--- install.sub.orig Tue Oct 1 05:11:41 2019
+++ install.sub Thu Nov 28 15:32:42 2019
@@ -1243,7 +1243,7 @@

# Set up IPv4 and IPv6 interface configuration.
configure_ifs() {
Expand All @@ -9,16 +9,16 @@

# Always need lo0 configured.
ifconfig lo0 inet 127.0.0.1/8
@@ -1243,6 +1243,8 @@
@@ -1251,6 +1251,8 @@
# In case of restart, delete previous default gateway config.
rm -f /tmp/i/mygate

+ _iflist=$(get_ifs)
+
while :; do
# Discover last configured vlan interface and increment it's
# Discover last configured vlan interface and increment its
# minor for the next offered vlan interface.
@@ -1251,7 +1253,7 @@
@@ -1259,7 +1261,7 @@

ask_which "network interface" "do you wish to configure" \
"\$(get_ifs) vlan${_vi:-0}" \
Expand All @@ -27,7 +27,7 @@
[[ $resp == done ]] && break

_if=$resp
@@ -1281,10 +1283,12 @@
@@ -1289,10 +1291,12 @@
if [[ -f $_hn ]]; then
chmod 640 $_hn
: ${_first:=$_if}
Expand All @@ -41,7 +41,7 @@
done
}

@@ -1542,8 +1546,9 @@
@@ -1550,8 +1554,9 @@
# Try to prefetch and control checksum of the set files.
# Use dummy for loop as combined assignment and do { ... } while(0).
for _issue in ''; do
Expand All @@ -52,16 +52,16 @@

if ! $_srclocal; then
! _tmpfs_list=$(prefetcharea_fs_list) &&
@@ -1586,7 +1591,7 @@
# The bsd.rd only download/verify/install assumes that the sets
@@ -1594,7 +1599,7 @@
# The bsd.rd only download/verify/install assumes the sets
# location of the next release. So use the right signature file.
$UPGRADE_BSDRD &&
- PUB_KEY=/mnt/etc/signify/openbsd-$((VERSION + 1))-base.pub
+ PUB_KEY=/mnt/etc/signify/utmfw-$((VERSION + 1)).pub

# Verify signature file with public keys.
! unpriv -f "$_cfile" \
@@ -1633,7 +1638,7 @@
@@ -1643,7 +1648,7 @@

[[ -n $_unver ]] && : ${_issue:="Unverified sets:" ${_unver% }}
if [[ -n $_issue ]] &&
Expand All @@ -70,7 +70,7 @@
[[ -d $_tmpsrc ]] && rm -rf "$_tmpsrc"
$AI && exit 1
return
@@ -2055,20 +2060,6 @@
@@ -2092,20 +2097,6 @@
ask_yn "Start sshd(8) by default?" yes
START_SSHD=$resp

Expand All @@ -91,7 +91,7 @@
if [[ -n $CDEV ]]; then
_d=${CPROM:-$CDEV}
[[ -n $CONSOLE ]] && _cdef=yes
@@ -2099,6 +2090,9 @@
@@ -2136,6 +2127,9 @@
;;
root|daemon|operator|bin|build|sshd|www|nobody|ftp)
;;
Expand All @@ -101,15 +101,15 @@
[a-z]*([-a-z0-9_]))
((${#resp} <= 31)) && break
;;
@@ -2897,7 +2891,6 @@
@@ -2941,7 +2935,6 @@
questions

# Gather information for setting up the initial user account.
- user_setup
ask_root_sshd

# Set TZ variable based on zonefile and user selection.
@@ -3263,7 +3256,7 @@
@@ -3360,7 +3353,7 @@
INSTALL_METHOD=
NIFS=0
export PS1="$MODE# "
Expand All @@ -118,7 +118,7 @@
ROOTDEV=
ROOTDISK=
SETDIR="$VNAME/$ARCH"
@@ -3302,14 +3295,14 @@
@@ -3399,14 +3392,14 @@
# Selected sets will be installed in the order they are listed in $ALLSETS.
# Ensure that siteXX.tgz is the *last* set listed so its contents overwrite
# the contents of the other sets, not the other way around.
Expand All @@ -137,4 +137,4 @@
+ SANESETS="${MDSANESETS:-bsd bsd.mp} base${VERSION}.tgz xbase${VERSION}.tgz xfont${VERSION}.tgz site${VERSION}.tgz"
fi

# Prepare COLUMNS sanely.
# Prepare COLUMNS sanely.
10 changes: 0 additions & 10 deletions openbsd/utmfw/distrib/ramdisk/patch-list

This file was deleted.

4 changes: 2 additions & 2 deletions openbsd/utmfw/sbin/disklabel/patch-editor_c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- editor.c.orig Fri Nov 29 22:00:03 2019
+++ editor.c Fri Nov 29 22:04:51 2019
--- editor.c.orig Fri Nov 29 22:09:57 2019
+++ editor.c Fri Nov 29 22:10:40 2019
@@ -88,24 +88,20 @@

/* entries for swap and var are changed by editor_allocspace() */
Expand Down
4 changes: 2 additions & 2 deletions openbsd/utmfw/usr.bin/newsyslog/patch-newsyslog_c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- newsyslog.c.orig 2018-10-27 02:55:45.190636143 +0300
+++ newsyslog.c 2018-10-27 02:33:58.807187015 +0300
--- newsyslog.c.orig Fri Jun 28 16:35:02 2019
+++ newsyslog.c Thu Nov 28 15:42:06 2019
@@ -144,7 +144,7 @@
char *conf = CONF; /* Configuration file to use */
time_t timenow;
Expand Down
20 changes: 0 additions & 20 deletions openbsd/utmfw/usr.sbin/relayd/patch-relay_c

This file was deleted.

27 changes: 0 additions & 27 deletions openbsd/utmfw/usr.sbin/relayd/patch-relay_http_c

This file was deleted.

14 changes: 0 additions & 14 deletions openbsd/utmfw/usr.sbin/relayd/patch-relayd_h

This file was deleted.

12 changes: 6 additions & 6 deletions openbsd/utmfw/usr.sbin/syslogd/patch-syslogd_c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- syslogd.c.orig 2018-10-27 02:58:05.163862868 +0300
+++ syslogd.c 2018-10-27 02:46:40.433861902 +0300
@@ -1677,6 +1677,9 @@
--- syslogd.c.orig Fri Jul 5 16:23:27 2019
+++ syslogd.c Thu Nov 28 15:43:32 2019
@@ -1689,6 +1689,9 @@

struct timeval now;

Expand All @@ -10,7 +10,7 @@
/*
* Log a message to the appropriate log files, users, etc. based on
* the priority.
@@ -1802,6 +1805,43 @@
@@ -1815,6 +1818,43 @@
}
prog[i] = 0;

Expand Down Expand Up @@ -54,7 +54,7 @@
/* log the message to the particular outputs */
if (!Initialized) {
f = &consfile;
@@ -1815,7 +1855,7 @@
@@ -1828,7 +1868,7 @@
f->f_type = F_CONSOLE;
}
init_dropped++;
Expand All @@ -63,7 +63,7 @@
}
SIMPLEQ_FOREACH(f, &Files, f_next) {
/* skip messages that are incorrect priority */
@@ -1887,6 +1927,9 @@
@@ -1900,6 +1940,9 @@
if (f->f_quick)
break;
}
Expand Down

0 comments on commit 68873ca

Please sign in to comment.