Browse Source

consolidate patches, cleanup dist.sh

OPENBSD_5_7
Brent Cook 10 years ago
parent
commit
659bb3d7a2
10 changed files with 10 additions and 10 deletions
  1. +1
    -2
      dist.sh
  2. +0
    -0
      patches/client.patch
  3. +0
    -0
      patches/config.patch
  4. +0
    -0
      patches/imsg.patch
  5. +0
    -0
      patches/ntp.patch
  6. +0
    -0
      patches/ntpd.patch
  7. +0
    -0
      patches/parse.patch
  8. +0
    -0
      patches/server.patch
  9. +0
    -0
      patches/util.patch
  10. +9
    -8
      update.sh

+ 1
- 2
dist.sh View File

@ -1,7 +1,6 @@
#!/bin/sh
set -e
rm -f man/*.1 man/*.3
./autogen.sh
./configure --enable-libtls
./configure
make distcheck

client.patch → patches/client.patch View File


config.patch → patches/config.patch View File


compat/imsg.patch → patches/imsg.patch View File


ntp.patch → patches/ntp.patch View File


ntpd.patch → patches/ntpd.patch View File


parse.patch → patches/parse.patch View File


server.patch → patches/server.patch View File


util.patch → patches/util.patch View File


+ 9
- 8
update.sh View File

@ -18,6 +18,7 @@ fi
# setup source paths
dir=`pwd`
patches=$dir/patches
libc_inc=$dir/openbsd/src/include
libc_src=$dir/openbsd/src/lib/libc
libcrypto_src=$dir/openbsd/src/lib/libcrypto
@ -32,7 +33,7 @@ cp $libc_inc/sha2.h include/sha2_openbsd.h
cp $libutil_src/imsg.h include/
cp $libutil_src/imsg.c compat/
cp $libutil_src/imsg-buffer.c compat/
(cd compat; $PATCH < imsg.patch)
(cd compat; $PATCH < $patches/imsg.patch)
for i in explicit_bzero.c strlcpy.c strlcat.c strndup.c strnlen.c; do
$CP $libc_src/string/$i compat
@ -55,10 +56,10 @@ for i in client.c config.c control.c log.c ntp.c ntp.h ntp_dns.c ntp_msg.c \
echo Copying `basename $i`
$CP $ntpd_src/$i .
done
$PATCH < client.patch
$PATCH < config.patch
$PATCH < ntp.patch
$PATCH < ntpd.patch
$PATCH < parse.patch
$PATCH < server.patch
$PATCH < util.patch
$PATCH < $patches/client.patch
$PATCH < $patches/config.patch
$PATCH < $patches/ntp.patch
$PATCH < $patches/ntpd.patch
$PATCH < $patches/parse.patch
$PATCH < $patches/server.patch
$PATCH < $patches/util.patch

Loading…
Cancel
Save