summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1999-09-11 00:48:37 +0000
committerSatoshi Asami <asami@FreeBSD.org>1999-09-11 00:48:37 +0000
commit632c2ef9056c1712e5d7b740441e8210dffa8fbb (patch)
treeab768b92da33f5eff0f83062abf2bc518e9232f1 /Tools
parentSwitch back dependency to gnuplot, now that chuckr has fixed it. (diff)
Improve snapshot ftp installation. Put hostnames, distributions etc. in
variables instead of command lines. Create /var/db/port.mkversion.
Notes
Notes: svn path=/head/; revision=21642
Diffstat (limited to 'Tools')
-rw-r--r--Tools/portbuild/3/mkbindist23
-rw-r--r--Tools/portbuild/4/mkbindist23
2 files changed, 28 insertions, 18 deletions
diff --git a/Tools/portbuild/3/mkbindist b/Tools/portbuild/3/mkbindist
index dec3c6f10f70..5e953b394f22 100644
--- a/Tools/portbuild/3/mkbindist
+++ b/Tools/portbuild/3/mkbindist
@@ -1,17 +1,21 @@
#!/bin/sh
-ftp=0
-useworld=1
+rel=3.3-19990908-RC
+ftpserver=current.freebsd.org
+ftpdists="bin dict des games compat22"
+ftp=1
+useworld=0
chrootdir=/a/asami/chroot
here=$(pwd)
tmpdir=${here}/tmp
rm -rf ${tmpdir}
mkdir -p ${tmpdir}
if [ "${ftp}" != 0 ]; then
+ rm -rf bindist/ftp
+ mkdir -p bindist/ftp
cd bindist/ftp
- /usr/bin/ftp -a 'ftp://ftp.freebsd.org/pub/FreeBSD/3.0-RELEASE/bin/bin.??'
- /usr/bin/ftp -a 'ftp://ftp.freebsd.org/pub/FreeBSD/3.0-RELEASE/dict/dict.??'
- /usr/bin/ftp -a 'ftp://ftp.freebsd.org/pub/FreeBSD/3.0-RELEASE/des/des.??'
- #ssh -n ftp.freebsd.org cat 'w/3.0-RELEASE/bin/bin.??' | tar -xzpf -
+ for i in ${ftpdists}; do
+ /usr/bin/ftp -a "ftp://${ftpserver}/pub/FreeBSD/snapshots/i386/${rel}/$i/$i.??"
+ done
cd ${here}
fi
cd ${tmpdir}
@@ -22,15 +26,16 @@ if [ "${useworld}" = 1 ]; then
grep -v '^./var/db/pkg' | \
cpio -dump ${tmpdir})
else
- cat ${here}/bindist/ftp/bin.?? | tar --unlink -xzpf -
- cat ${here}/bindist/ftp/dict.?? | tar --unlink -xzpf -
- cat ${here}/bindist/ftp/des.?? | tar --unlink -xzpf -
+ for i in ${ftpdists}; do
+ cat ${here}/bindist/ftp/$i.?? | tar --unlink -xzpf -
+ done
fi
rm -rf $(cat ${here}/bindist/delete)
mkdir -p $(cat ${here}/bindist/dirlist)
(cd ${here}/bindist/files; find -dx . | cpio -dump ${tmpdir})
echo "HAVE_MOTIF=t" >> etc/make.conf
echo "MOTIF_STATIC=t" >> etc/make.conf
+date '+%Y%m%d' > var/db/port.mkversion
if [ -f kernel.GENERIC -a ! -f kernel ]; then
mv kernel.GENERIC kernel
fi
diff --git a/Tools/portbuild/4/mkbindist b/Tools/portbuild/4/mkbindist
index dec3c6f10f70..f10f30c1622e 100644
--- a/Tools/portbuild/4/mkbindist
+++ b/Tools/portbuild/4/mkbindist
@@ -1,17 +1,21 @@
#!/bin/sh
-ftp=0
-useworld=1
+date=19990826
+ftpserver=current.freebsd.org
+ftpdists="bin dict des games compat22"
+ftp=1
+useworld=0
chrootdir=/a/asami/chroot
here=$(pwd)
tmpdir=${here}/tmp
rm -rf ${tmpdir}
mkdir -p ${tmpdir}
if [ "${ftp}" != 0 ]; then
+ rm -rf bindist/ftp
+ mkdir -p bindist/ftp
cd bindist/ftp
- /usr/bin/ftp -a 'ftp://ftp.freebsd.org/pub/FreeBSD/3.0-RELEASE/bin/bin.??'
- /usr/bin/ftp -a 'ftp://ftp.freebsd.org/pub/FreeBSD/3.0-RELEASE/dict/dict.??'
- /usr/bin/ftp -a 'ftp://ftp.freebsd.org/pub/FreeBSD/3.0-RELEASE/des/des.??'
- #ssh -n ftp.freebsd.org cat 'w/3.0-RELEASE/bin/bin.??' | tar -xzpf -
+ for i in ${ftpdists}; do
+ /usr/bin/ftp -a "ftp://${ftpserver}/pub/FreeBSD/snapshots/i386/4.0-${date}-CURRENT/$i/$i.??"
+ done
cd ${here}
fi
cd ${tmpdir}
@@ -22,15 +26,16 @@ if [ "${useworld}" = 1 ]; then
grep -v '^./var/db/pkg' | \
cpio -dump ${tmpdir})
else
- cat ${here}/bindist/ftp/bin.?? | tar --unlink -xzpf -
- cat ${here}/bindist/ftp/dict.?? | tar --unlink -xzpf -
- cat ${here}/bindist/ftp/des.?? | tar --unlink -xzpf -
+ for i in ${ftpdists}; do
+ cat ${here}/bindist/ftp/$i.?? | tar --unlink -xzpf -
+ done
fi
rm -rf $(cat ${here}/bindist/delete)
mkdir -p $(cat ${here}/bindist/dirlist)
(cd ${here}/bindist/files; find -dx . | cpio -dump ${tmpdir})
echo "HAVE_MOTIF=t" >> etc/make.conf
echo "MOTIF_STATIC=t" >> etc/make.conf
+date '+%Y%m%d' > var/db/port.mkversion
if [ -f kernel.GENERIC -a ! -f kernel ]; then
mv kernel.GENERIC kernel
fi