Dinks for the (source/binary) package scripts
This commit is contained in:
parent
7f861650b0
commit
84ba9dd4d3
3 changed files with 29 additions and 10 deletions
|
@ -6,6 +6,8 @@ RC=/usr/etc/rc.package
|
|||
CDDIR=PACKAGES
|
||||
MP=/mnt
|
||||
CDPACK=${MP}/install/packages
|
||||
CDSRC=${MP}/install/package-sources
|
||||
SRC=/usr/bigports
|
||||
|
||||
if [ -f "$RC" ]
|
||||
then . "$RC"
|
||||
|
@ -27,6 +29,16 @@ then pack=${cddrive}p2
|
|||
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."
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
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
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
PACKAGEDIR=/usr/bigports/Packages
|
||||
PACKAGESOURCEDIR=/usr/bigports/Sources
|
||||
secs=`expr 32 '*' 64`
|
||||
|
||||
make_hdimage()
|
||||
|
@ -73,6 +74,7 @@ usr=/dev/c0d7p0s2
|
|||
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
|
||||
|
@ -122,7 +124,7 @@ fi
|
|||
IMGBZ=${IMG}.bz2
|
||||
echo "Making $IMGBZ"
|
||||
|
||||
USRMB=128
|
||||
USRMB=150
|
||||
|
||||
USRBLOCKS="`expr $USRMB \* 1024 \* 1024 / $BS`"
|
||||
USRSECTS="`expr $USRMB \* 1024 \* 2`"
|
||||
|
@ -232,21 +234,25 @@ mount $TMPDISK $RELEASEDIR/usr || exit
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue