Update release script for pkgsrc

This commit is contained in:
Arun Thomas 2010-09-10 17:00:30 +00:00
parent d29833c5aa
commit 207e88d3c4
9 changed files with 197 additions and 308 deletions

View File

@ -32,7 +32,7 @@ SUBDIR= aal add_route adduser advent arp ash at autil awk \
truncate tsort ttt tty udpstat umount uname unexpand \ truncate tsort ttt tty udpstat umount uname unexpand \
uniq unstack update urlget uud uue version vol wc \ uniq unstack update urlget uud uue version vol wc \
whereis which who write writeisofs fetch \ whereis which who write writeisofs fetch \
xargs yacc yes zdump zic zmodem pkg_install xargs yacc yes zdump zic zmodem pkg_install pkgin_cd
.if ${ARCH} == "i386" .if ${ARCH} == "i386"
SUBDIR+= atnormalize dosread fdisk loadfont \ SUBDIR+= atnormalize dosread fdisk loadfont \

View File

@ -0,0 +1,4 @@
SCRIPTS= pkgin_cd.sh
MAN=
.include <bsd.prog.mk>

View File

@ -0,0 +1,44 @@
#!/bin/sh
# This script can be used to install packages from the
# the installation CD-ROM.
RC=/usr/etc/rc.package
CDMP=/mnt
CDPACK=${CDMP}/install/packages
PACKSUM=pkg_summary.bz2
cdpackages=""
cdmounted=""
if [ -f "$RC" ]
then . "$RC"
fi
# Is there a usable CD to install packages from?
if [ -n "$cddrive" ]
then pack=${cddrive}p2
umount $pack >/dev/null 2>&1 || true
echo "Checking for CD in $pack."
if mount -r $pack $CDMP 2>/dev/null
then fn="$CDPACK/$PACKSUM"
echo "Found."
cdmounted=1
cdpackages=$fn
if [ ! -f $cdpackages ]
then cdpackages=""
echo "No package summary found on CD in $fn."
exit 1
fi
else echo "Not found."
exit 1
fi
else echo "Don't know where the install CD is. You can set it in $RC."
exit 1
fi
# Set package repo to CD and populate package db
export PKG_REPOS=${CDPACK}
pkgin update
# Run pkgin
pkgin $@

View File

@ -1,12 +1,12 @@
To install the X Window System, run 'packman' with the install CD still To install additional packages, run 'pkgin'. First do a 'pkgin update'
in the drive. To start X Windows after you have installed it, login as to update the list of available packages, and then do a 'pkgin' to get
root and type: 'xdm'. For more information about configuring X Windows, a list of commands. For example, 'pkgin install vim' installs the
see www.minix3.org. 'vim' package, and 'pkgin available' will list all available packages.
If you do not have sufficient memory to run X, standard MINIX 3 supports MINIX 3 supports multiple virtual terminals. Just use ALT+F1, F2, F3
multiple virtual terminals. Just use ALT+F1, F2, F3 and F4 to navigate and F4 to navigate among them.
among them.
To get rid of this message, edit /etc/motd. For more information on how to use MINIX 3, see the wiki:
http://wiki.minix3.org.

View File

@ -1,12 +1,12 @@
To install X Windows, run 'packman' with the install CD still in the To install additional packages, run 'pkgin'. First do a 'pkgin update'
drive. To start X Windows after you have installed it, login as root to update the list of available packages, and then do a 'pkgin' to get
and type: 'xdm'. For more information about configuring X Windows, see a list of commands. For example, 'pkgin install vim' installs the
www.minix3.org. 'vim' package, and 'pkgin available' will list all available packages.
If you do not have sufficient memory to run X Windows, standard MINIX 3 MINIX 3 supports multiple virtual terminals. Just use ALT+F1, F2, F3
supports multiple virtual terminals. Just use ALT+F1, F2, F3 and F4 to and F4 to navigate among them.
navigate among them.
To get rid of this message, edit /etc/motd. For more information on how to use MINIX 3, see the wiki:
http://wiki.minix3.org.

View File

@ -7,8 +7,5 @@ can do by typing 'setup' while logged in as root. Then just follow the
on-screen directions. on-screen directions.
After setup is complete, type 'shutdown' and when the boot monitor After setup is complete, type 'shutdown' and when the boot monitor
starts, boot your new system by following the instructions at the end of starts, boot your new system by following the instructions at the end
setup. Keep the CD-ROM in the drive, login as root and type 'packman' of setup.
to begin installing the many software packages available. After you
have installed the packages, type 'xdm' to start X Windows if you have
installed it.

View File

@ -1,131 +0,0 @@
CSSC-1.0.1
PopTart-0.9.7
Xaw3d-1.5
antiword-0.35
apache-1.3.37
apr-0.9.12
apr-util-0.9.12
ascii-3.8
atk-1.9.0
autoconf-2.59
autoconf-2.60
automake-1.9
avra-0.7
bash-3.0
bc-1.06
bchunk-1.2.0
bcrypt-1.1
bison-2.1
catdoc-0.94.2
cpio-2.5
ctags-5.5.4
cvs-1.11.21
dact-0.8.39
diffstat-1.39
diffutils-2.8.1
dungeon-2.7.1
ede-1.1
efltk-2.0.6
elvis
exim-4.66
fb
flawfinder-1.26
flex-2.5.4
flip-1.19
fltk-1.1.7
fltk-2.0.0-5220
gawk-3.1.4
gdbm-1.8.3
gettext-0.14
glib-1.2.10
glib-2.10.0
gnupg-1.4.8
grep-2.5.1a
groff-1.19.2
gv-3.5.8
gzip-1.2.4
gzip-beta-1.3.3
hexcat-0.0.3
irssi-0.8.10
jikes-1.22
john-1.7.2
jpeg-6b
jwm-1.8
kermit-2.1.1
lcrack-20040914
less-3.8.5
lesstif-0.93.96
libiconv-1.9.1
libmcrypt-2.5.7
libpng-1.2.8
libungif-4.1.3
libxml2-2.6.28
links-2.1pre26
lpr
lynx2-8-5
lzo-1.08
lzop-1.01
m4-1.4.3
make-3.80
mdf2iso
mtools-3.9.7
nano-1.3.12
nasm-0.98.38
nawk
ncftp-3.1.9
ncsa_httpd_1.4
ncurses-5.5
neon-0.25.5
nethack-3.4.3-2
netpbm-10.26.30
nomarch-1.3
nrg2iso-0.2
nvi-1.79
openssh-4.3p2
openssl-0.9.8a
patch-2.5.4
pce-0.1.7
pcre-4.5
pdksh-5.2.14
picasm112c
pine-4.64
pkg-config-0.20
prng-3.0.2
pscan-1.1
pstotext-1.9
psutils
python-2.4.3
rcs-5.7
readline-5.1
rman-3.2
robodoc-4.0.18
rsync-2.6.7
screen-4.0.2
sed-3.02
shhmsg-1.4.1
simhv35-2
sip-0.4
slang-1.4.9
slrn-0.9.8.1
sqlite-3.3.17
src2tex-2.12
ssmtp-2.61
subversion-1.4.0
tcl8.4.14
texinfo-4.7
tiff-3.8.2
tk8.4.14
unrtf-0.19.3
unzip-5.52
vice-1.19
vice-1.20
vile-9.4
vim-6.3
wdiff-0.5
webcpp-0.8.4
wget-1.5.3
whichman-2.4
xv-3.10a
zip-2.31
zlib-1.2.3
zsh-4.2.6

View File

@ -1,117 +1,79 @@
CSSC-1.0.1 9e-1.0
ImageMagick-6.3.1 apr-1.3.9
MPlayer-1.0rc1 apr-util-1.3.9nb1
PopTart-0.9.7 autoconf-2.65nb2
SDL-1.2.13 automake-1.11.1
X11R6.8.2 bash-2.05.2.7nb10
Xaw3d-1.5 bash-4.1nb1
apache-1.3.37
apr-0.9.12
apr-util-0.9.12
ascii-3.8
atk-1.9.0
automake-1.9
avra-0.7
bash-3.0
bc-1.06
bchunk-1.2.0 bchunk-1.2.0
bcrypt-1.1 bcrypt-1.1
binutils-2.16.1 binutils-2.17nb2
bison-2.1 bison-2.4.2nb1
catdoc-0.94.2 curl-7.20.0
cvs-1.11.21 db4-4.8.30
diffutils-2.8.1 diffutils-2.8.1nb4
dungeon-2.7.1 digest-20080510
ede-1.1 doom1-1.8
efltk-2.0.6 expat-2.0.1nb2
emacs-21.4 f2c-20090411nb4
exim-4.66 figlet-2.2.2nb1
fb flex-2.5.35nb1
flawfinder-1.26 gawk-3.1.7
flex-2.5.4 gcc44-4.4.3
fltk-1.1.7 gettext-lib-0.14.6
fltk-2.0.0-5220 gettext-tools-0.14.6nb1
gawk-3.1.4 gmake-3.81
gcc-4.4.3 gmp-5.0.1
gcc-libs grep-2.5.3
gettext-0.14 groff-1.20.1nb2
ghostscript-8.54-gpl gsed-4.2.1
ghostscript-fonts-std-8.11 gtar-base-1.23
glib-1.2.10 gtexinfo-4.12
gnu-coreutils-5.2.1 gzip-1.3.12nb3
gnupg-1.4.8 lcov-1.7
grep-2.5.1a libiberty-1.0nb2
groff-1.19.2 libiconv-1.12nb1
gv-3.5.8 libidn-1.19
gzip-1.2.4 libtool-base-2.2.6bnb4
hexcat-0.0.3 lua-5.1.4nb2
irssi-0.8.10 m4-1.4.14
jikes-1.22 mdf2iso-0.3.0
john-1.7.2 mpfr-2.4.2.3nb1
jpeg-6b naim-0.11.8.3.1
jwm-1.8 nano-2.2.4
kermit-2.1.1 nawk-20050424nb3
lcrack-20040914 ncurses-5.7nb3
less-3.8.5 neon-0.29.3
lesstif-0.93.96 openssh-5.5.1
libiconv-1.9.1 openssl-0.9.8o
libpng-1.2.8 p5-Digest-SHA1-2.12
libxml2-2.6.28 p5-Error-0.17016
links-2.1pre26 p5-enum-1.016nb1
lpr p5-pkgsrc-Dewey-1.1
lynx2-8-5 patch-2.5.4nb2
m4-1.4.3 pax-20080110
make-3.80 pdksh-5.2.14nb5
mdf2iso perl-5.10.1nb1
mtools-3.9.7 pkg-config-0.23nb1
nano-1.3.12 pkg_install-info-4.5nb3
nawk pkg_leaves-1.2
ncftp-3.1.9 pkgdep-1.0
ncurses-5.5 pkgdepgraph-2.8
neon-0.25.5 pkgdiff-0.122
nethack-3.4.3-2 pkgin-0.3.3.1nb1
nomarch-1.3 pkglint-4.93
nvi-1.79 png-1.4.2
openssh-4.3p2 pth-2.0.7
openssl-0.9.8a readline-6.1
patch-2.5.4 rsync-3.0.7
pce-0.1.7 scmgit-base-1.7.0.5
pdksh-5.2.14 sqlite3-3.6.23.1
perl-5.8.7 subversion-base-1.6.9nb1
php-5.2.1 sudo-1.7.2p7
pine-4.64 unzip-6.0
pkg-config-0.20 url2pkg-2.12
psutils vim-7.2.442
python-2.4.3 vim-share-7.2.442
qemu-0.10.5 x11-6.8.2
rcs-5.7 x11-links-0.50
readline-5.1 zip-3.0nb2
rman-3.2
rsync-2.6.7
postgresql-8.4.0
screen-4.0.2
sed-3.02
shhmsg-1.4.1
simhv35-2
sip-0.4
slang-1.4.9
slrn-0.9.8.1
sqlite-3.3.17
ssmtp-2.61
subversion-1.4.0
tcl8.4.14
texinfo-4.7
tiff-3.8.2
tk8.4.14
unrtf-0.19.3
unzip-5.52
vice-1.20
vile-9.4
vim-6.3
webcpp-0.8.4
wget-1.5.3
whichman-2.4
xv-3.10a
zip-2.31
zlib-1.2.3
zsh-4.2.6

View File

@ -7,13 +7,9 @@ PATH=$PATH:/usr/local/bin
XBIN=usr/xbin XBIN=usr/xbin
SRC=src SRC=src
# size of /tmp during build PACKAGEDIR=/usr/pkgsrc/packages
PACKAGEDIR=/usr/bigports/Packages
PACKAGESOURCEDIR=/usr/bigports/Sources
# List of packages included on installation media # List of packages included on installation media
PACKAGELIST=packages.install PACKAGELIST=packages.install
# List of package source included on installation media
PACKAGESOURCELIST=package_sources.install
secs=`expr 32 '*' 64` secs=`expr 32 '*' 64`
export SHELL=/bin/sh export SHELL=/bin/sh
@ -66,15 +62,14 @@ retrieve()
{ {
dir=$1 dir=$1
list=`pwd`/$2 list=`pwd`/$2
url=http://www.minix3.org/$3 url=${PACKAGEURL}
BIGPORTS=bigports
( (
cd $dir || exit 1 cd $dir || exit 1
echo " * Updating $dir echo " * Updating $dir
from $url from $url
with $list" with $list"
files=`awk <$list '{ print "'$url'/" $1 ".tar.bz2" }'` files=`awk <$list '{ print "'$url'/" $1 ".tgz" }'`
wget -c $url/List $files || true fetch -r $files || true
) )
} }
@ -166,7 +161,6 @@ fitfs()
RELEASEDIR=/usr/r-staging RELEASEDIR=/usr/r-staging
RELEASEMNTDIR=/usr/r RELEASEMNTDIR=/usr/r
RELEASEPACKAGE=${RELEASEDIR}/usr/install/packages RELEASEPACKAGE=${RELEASEDIR}/usr/install/packages
RELEASEPACKAGESOURCES=${RELEASEDIR}/usr/install/package-sources
IMAGE=../boot/cdbootblock IMAGE=../boot/cdbootblock
ROOTIMAGE=rootimage ROOTIMAGE=rootimage
@ -233,11 +227,8 @@ then ZIP=bzip2
fi fi
if [ $PACKAGES -ne 0 ] if [ $PACKAGES -ne 0 ]
then mkdir -p $PACKAGEDIR || true then mkdir -p $PACKAGEDIR/All || true
mkdir -p $PACKAGESOURCEDIR || true retrieve $PACKAGEDIR/All $PACKAGELIST packages/`uname -p`/`uname -r`
rm -f $PACKAGEDIR/List
retrieve $PACKAGEDIR $PACKAGELIST packages/`uname -p`/`uname -r`
retrieve $PACKAGESOURCEDIR $PACKAGESOURCELIST software
fi fi
if [ "$COPY" -ne 1 ] if [ "$COPY" -ne 1 ]
@ -277,7 +268,6 @@ mkdir -p $RELEASEDIR/$XBIN
mkdir -p $RELEASEDIR/usr/bin mkdir -p $RELEASEDIR/usr/bin
mkdir -p $RELEASEDIR/bin mkdir -p $RELEASEDIR/bin
mkdir -p $RELEASEPACKAGE mkdir -p $RELEASEPACKAGE
mkdir -p $RELEASEPACKAGESOURCES
echo " * Transfering bootstrap dirs to $RELEASEDIR" echo " * Transfering bootstrap dirs to $RELEASEDIR"
cp -p /bin/* /usr/bin/* /sbin/* $RELEASEDIR/$XBIN cp -p /bin/* /usr/bin/* /sbin/* $RELEASEDIR/$XBIN
@ -285,29 +275,54 @@ cp -rp /usr/lib $RELEASEDIR/usr
cp -rp /bin/sh /bin/echo $RELEASEDIR/bin cp -rp /bin/sh /bin/echo $RELEASEDIR/bin
cp -rp /usr/bin/make /usr/bin/install /usr/bin/yacc /usr/bin/lex /usr/bin/asmconv $RELEASEDIR/usr/bin cp -rp /usr/bin/make /usr/bin/install /usr/bin/yacc /usr/bin/lex /usr/bin/asmconv $RELEASEDIR/usr/bin
if [ -d $PACKAGEDIR -a -d $PACKAGESOURCEDIR -a -f $PACKAGELIST -a -f $PACKAGESOURCELIST -a $PACKAGES -ne 0 ] if [ -d $PACKAGEDIR -a -f $PACKAGELIST -a $PACKAGES -ne 0 ]
then echo " * Transfering $PACKAGEDIR to $RELEASEPACKAGE"
: >$RELEASEPACKAGE/List
for p in `cat $PACKAGELIST`
do if [ -f $PACKAGEDIR/$p.tar.bz2 ]
then then
cp $PACKAGEDIR/$p.tar.bz2 $RELEASEPACKAGE/ index=pkg_summary
grep "^$p|" $PACKAGEDIR/List >>$RELEASEPACKAGE/List || echo "$p not found in List" indexpath=$PACKAGEDIR/.index
if [ ! -d $indexpath ]
then mkdir $indexpath
fi
if [ ! -d $indexpath ]
then echo "Couldn't create $indexpath."
exit 1
fi
echo "" >$PACKAGEDIR/All/$index
echo " * Transfering $PACKAGEDIR to $RELEASEPACKAGE"
for p in `cat $PACKAGELIST`
do if [ -f $PACKAGEDIR/All/$p.tgz ]
then
# Copy package and create package's index
(
cd $PACKAGEDIR/All
cp $p.tgz $RELEASEPACKAGE/
f=$p.tgz
indexname=$indexpath/$f.$index
pkg_info -X $f >$indexname
if [ ! -f $indexname ]
then echo Missing $indexname.
exit 1
fi
if [ "`wc -l $indexname`" -lt 3 ]
then $indexname is too short.
rm $indexname
exit 1
fi
cat $indexname >>$PACKAGEDIR/All/$index
)
else else
echo "Can't copy $PACKAGEDIR/$p.tar.bz2. Missing." echo "Can't copy $PACKAGEDIR/$p.tgz. Missing."
fi fi
done done
echo " * Transfering $PACKAGESOURCEDIR to $RELEASEPACKAGESOURCES" bzip2 -f $PACKAGEDIR/All/$index
for p in `cat $PACKAGESOURCELIST` cp $PACKAGEDIR/All/$index.bz2 $RELEASEPACKAGE/
do
if [ -f $PACKAGESOURCEDIR/$p.tar.bz2 ]
then
cp $PACKAGESOURCEDIR/$p.tar.bz2 $RELEASEPACKAGESOURCES/
else
echo "Can't copy $PACKAGESOURCEDIR/$p.tar.bz2. Missing."
fi
done
fi fi
# Make sure compilers and libraries are root-owned # Make sure compilers and libraries are root-owned
@ -377,12 +392,10 @@ cp chrootmake.sh $RELEASEDIR/usr/$SRC/tools/chrootmake.sh
echo " * Make hierarchy" echo " * Make hierarchy"
chroot $RELEASEDIR "PATH=/$XBIN sh -x /usr/$SRC/tools/chrootmake.sh etcfiles" || exit 1 chroot $RELEASEDIR "PATH=/$XBIN sh -x /usr/$SRC/tools/chrootmake.sh etcfiles" || exit 1
if [ "$COPY" -ne 1 ] for p in $PREINSTALLED_PACKAGES
then for p in $PREINSTALLED_PACKAGES
do echo " * Pre-installing: $p from $url" do echo " * Pre-installing: $p from $url"
pkg_add -P $RELEASEDIR $PACKAGEURL/$p pkg_add -P $RELEASEDIR $PACKAGEURL/$p
done done
fi
echo " * Chroot build" echo " * Chroot build"
chroot $RELEASEDIR "PATH=/$XBIN MAKEMAP=$MAKEMAP sh -x /usr/$SRC/tools/chrootmake.sh" || exit 1 chroot $RELEASEDIR "PATH=/$XBIN MAKEMAP=$MAKEMAP sh -x /usr/$SRC/tools/chrootmake.sh" || exit 1