CDDIR=PACKAGES
MP=/mnt
CDPACK=${MP}/install/packages
+CDSRC=${MP}/install/package-sources
+SRC=/usr/bigports
if [ -f "$RC" ]
then . "$RC"
if [ "$y" = y -o "$y" = Y ]
then echo "Extracting $CDPACK/$package .."
cat $package | packit -
+ srcname="`echo $package | sed 's/.tar.bz/-src.tar.bz'`"
+ srcarc="$CDSRC/$srcname"
+ if [ -f "$srcarc" ]
+ then echo -n "Install its source (y/N) ? "
+ read y
+ if [ "$y" = y -o "$y" = Y ]
+ then echo "Installing $srcarc into $SRC."
+ ( cd /usr/bigports && smallbunzip2 "$srcarc" | tar xf - )
+ fi
+ fi
fi
done
else echo "CD mount failed - skipping CD packages."
775 root uucp /usr/spool/locks
700 daemon daemon /usr/spool/lpd
755 root operator /usr/spool/mail
+755 bin operator /usr/bigports
755 bin operator /usr/src
1777 root operator /usr/tmp
755 root operator /var
#!/bin/sh
PACKAGEDIR=/usr/bigports/Packages
+PACKAGESOURCEDIR=/usr/bigports/Sources
secs=`expr 32 '*' 64`
make_hdimage()
COPYITEMS="usr/bin bin usr/lib"
RELEASEDIR=/usr/r
RELEASEPACKAGE=${RELEASEDIR}/usr/install/packages
+RELEASEPACKAGESOURCES=${RELEASEDIR}/usr/install/package-sources
IMAGE=cdfdimage
ROOTIMAGE=rootimage
CDFILES=/usr/tmp/cdreleasefiles
IMGBZ=${IMG}.bz2
echo "Making $IMGBZ"
-USRMB=128
+USRMB=150
USRBLOCKS="`expr $USRMB \* 1024 \* 1024 / $BS`"
USRSECTS="`expr $USRMB \* 1024 \* 2`"
mkdir -p $RELEASEDIR/tmp
mkdir -p $RELEASEDIR/usr/tmp
mkdir -p $RELEASEPACKAGE
+mkdir -p $RELEASEPACKAGESOURCES
echo " * Transfering $COPYITEMS to $RELEASEDIR"
( cd / && tar cf - $COPYITEMS ) | ( cd $RELEASEDIR && tar xf - ) || exit 1
-if [ -d $PACKAGEDIR ]
-then echo " * Transfering $PACKAGEDIR to $RELEASEPACKAGE"
- cp $PACKAGEDIR/* $RELEASEPACKAGE/
+if [ -d $PACKAGEDIR -a -d $PACKAGESOURCEDIR ]
+then echo " * Indexing packages"
( cd $PACKAGEDIR
- for p in *.tar.bz
- do descr="../`echo $p | sed 's/.tar.bz//'`/.descr"
- if [ -f "$descr" ]
- then printf "%-27s %s\n" "$p" "`cat $descr`"
- fi
- done >List
+ for p in *.tar.bz
+ do descr="../`echo $p | sed 's/.tar.bz//'`/.descr"
+ if [ -f "$descr" ]
+ then printf "%-32s %s\n" "$p" "`cat $descr`"
+ fi
+ done >List
)
+ echo " * Transfering $PACKAGEDIR to $RELEASEPACKAGE"
+ cp $PACKAGEDIR/* $RELEASEPACKAGE/
+ echo " * Transfering $PACKAGESOURCEDIR to $RELEASEPACKAGESOURCES"
+ cp $PACKAGESOURCEDIR/* $RELEASEPACKAGESOURCES/
fi
# Make sure compilers and libraries are bin-owned