From: Ben Gras Date: Wed, 15 Mar 2006 17:02:46 +0000 (+0000) Subject: Dinks for the (source/binary) package scripts X-Git-Tag: v3.1.2a~221 X-Git-Url: http://zhaoyanbai.com/repos/icons/debian/static/howto.html?a=commitdiff_plain;h=84ba9dd4d33345d4f02c3e0308148bb74f4e3b27;p=minix.git Dinks for the (source/binary) package scripts --- diff --git a/commands/scripts/packme.sh b/commands/scripts/packme.sh index ba6fe0404..908bb9f59 100644 --- a/commands/scripts/packme.sh +++ b/commands/scripts/packme.sh @@ -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." diff --git a/etc/mtree/minix.tree b/etc/mtree/minix.tree index f387ac553..4ffad4121 100644 --- a/etc/mtree/minix.tree +++ b/etc/mtree/minix.tree @@ -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 diff --git a/tools/release.sh b/tools/release.sh index 9a6c15534..d20751c02 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -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