From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RNNzQ-0001TS-Fm for garchives@archives.gentoo.org; Mon, 07 Nov 2011 12:07:48 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AD0AA21C110; Mon, 7 Nov 2011 12:07:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 7C0BA21C110 for ; Mon, 7 Nov 2011 12:07:39 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C42C11B4033 for ; Mon, 7 Nov 2011 12:07:38 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 0589880042 for ; Mon, 7 Nov 2011 12:07:38 +0000 (UTC) From: "Alexis Ballier" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexis Ballier" Message-ID: <2d9090946d3e81a307e0aaf1a9309da4cab837c3.aballier@gentoo> Subject: [gentoo-commits] proj/gentoo-bsd:master commit in: scripts/ X-VCS-Repository: proj/gentoo-bsd X-VCS-Files: scripts/extract-9.0.sh X-VCS-Directories: scripts/ X-VCS-Committer: aballier X-VCS-Committer-Name: Alexis Ballier X-VCS-Revision: 2d9090946d3e81a307e0aaf1a9309da4cab837c3 Date: Mon, 7 Nov 2011 12:07:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: a44540a2-83c6-4074-8341-b83f98262749 X-Archives-Hash: 2531ade861d89decc76fadcb06300162 commit: 2d9090946d3e81a307e0aaf1a9309da4cab837c3 Author: Alexis Ballier gentoo org> AuthorDate: Mon Nov 7 12:07:28 2011 +0000 Commit: Alexis Ballier gentoo org> CommitDate: Mon Nov 7 12:07:28 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoo-bsd.gi= t;a=3Dcommit;h=3D2d909094 add script for extracting 9.0 rc --- scripts/extract-9.0.sh | 44 ++++++++++++++++++++++++++++++++++++++++++= ++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/scripts/extract-9.0.sh b/scripts/extract-9.0.sh new file mode 100755 index 0000000..66265b4 --- /dev/null +++ b/scripts/extract-9.0.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +if [[ $# -lt 1 ]]; then + echo "You must specify the version of the packages to build." + exit 1 +fi + +# These are the base packages recognized by original script: +# base bin contrib crypto etc games gnu include krb5 lib libexec release +# rescue sbin secure share sys tools ubin usbin +# Added cddl and compat. + +if [[ -z $2 ]]; then + dists=3D"bin cddl contrib crypto gnu include lib libexec sbin share usr= .bin usr.sbin sys etc rescue " +else + dists=3D"$2" +fi + +MIRROR=3D${FTPMIRROR:-ftp.FreeBSD.org} +echo "Using mirror ${MIRROR}" + +P=3D$1 +MY_P=3D${P/_rc/-RC} +MY_P=3D${MY_P/_beta/-BETA} +echo "Getting version ${P} [${MY_P}].." +if [[ ${MY_P} =3D=3D ${P} ]]; then + MY_P=3D"${MY_P}-RELEASE" +fi + +echo "Downloading files..." +wget -nv -c "ftp://${MIRROR}/pub/FreeBSD/releases/i386/i386/${MY_P}/MANI= FEST" +wget -nv -c "ftp://${MIRROR}/pub/FreeBSD/releases/i386/i386/${MY_P}/src.= txz" +echo "Done downloading files." + +echo "Repackaging files..." +tar xf src.txz +for i in $dists; do + echo " Repackaging source component: $i" + pushd usr/src > /dev/null + tar cjf ../../freebsd-${i/usr./u}-$P.tar.bz2 $i + popd > /dev/null +done +echo "Done repackaging sources." +exit 0