diff options
author | Matt Housh <jaeger@crux.nu> | 2007-10-14 11:14:33 -0500 |
---|---|---|
committer | Matt Housh <jaeger@crux.nu> | 2007-10-14 11:14:33 -0500 |
commit | e9feb1887286de284d66429de22ae8f59422f2ea (patch) | |
tree | 9d8373ef95508322b2a7880573735dcf1a3872f7 /ports | |
parent | dff527121a473de7fdde21cf39a0bc4f3d0eaee9 (diff) | |
download | iso-e9feb1887286de284d66429de22ae8f59422f2ea.tar.gz iso-e9feb1887286de284d66429de22ae8f59422f2ea.tar.xz |
initial import of new iso from svn export
Diffstat (limited to 'ports')
-rwxr-xr-x | ports/checkdups | 11 | ||||
-rwxr-xr-x | ports/gen-mirror | 28 | ||||
-rwxr-xr-x | ports/gen-pkglist | 18 |
3 files changed, 57 insertions, 0 deletions
diff --git a/ports/checkdups b/ports/checkdups new file mode 100755 index 0000000..28ea4e7 --- /dev/null +++ b/ports/checkdups @@ -0,0 +1,11 @@ +#!/bin/sh + +echo "Checking for duplicate packages..." + +DUPS="`find . -name \"*.pkg.tar.gz\" | cut -d/ -f2- | cut -d# -f1 | uniq -d | cut -d/ -f-2`" + +if [ ! -z "$DUPS" ] +then + echo "Duplicate(s) found:" + echo $DUPS +fi diff --git a/ports/gen-mirror b/ports/gen-mirror new file mode 100755 index 0000000..b769909 --- /dev/null +++ b/ports/gen-mirror @@ -0,0 +1,28 @@ +#!/bin/sh +# +# gen-mirror - generate a directory tree for upload to a netinst mirror +# + +usage () { + echo "usage: create a new mirror in <dir> like so:" + echo "" + echo "$0 <dir>" +} + +if [ -z "$1" ] +then + usage + exit +else + echo -n "Generating package list... " + ./gen-pkglist + echo "done." + + mkdir -p "$1"/crux/{core,opt,xorg} + cp -v core/*/*.pkg.tar.gz "$1"/crux/core/ + cp -v opt/*/*.pkg.tar.gz "$1"/crux/opt/ + cp -v xorg/*/*.pkg.tar.gz "$1"/crux/xorg/ + cp -v packages.lst MD5SUMS "$1"/crux/ + + echo "$1 is ready to upload to your netinst mirror." +fi diff --git a/ports/gen-pkglist b/ports/gen-pkglist new file mode 100755 index 0000000..2b20c21 --- /dev/null +++ b/ports/gen-pkglist @@ -0,0 +1,18 @@ +#!/bin/sh + +COLLECTIONS="core opt xorg" + +:>packages.lst + +for COLL in $COLLECTIONS +do + find $COLL -name "*.pkg.tar.gz" | sed -e 's|/| |g' >> packages.lst.$$ +done +sort < packages.lst.$$ > packages.lst +rm -f packages.lst.$$ + +:>MD5SUMS +for COLL in $COLLECTIONS +do + md5sum ./$COLL/*/*.pkg.tar.gz >> MD5SUMS +done |