#!/bin/bash # # Copyright (C) 2006 Brian Brazil # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # set -ex . config IMAGEDIR=`pwd`/images rm -rf $WORKINGDIR mkdir -p $WORKINGDIR cd $WORKINGDIR apt-get source ubiquity$VERSION apt-get --yes build-dep ubiquity$VERSION cd ubiquity-* ######## General patch -p0 < d-i/source/choose-mirror/Mirrors.masterlist.$DISTRONAME_L Site: \${CC}.archive.$DOMAIN Type: Push-Secondary Archive-http: /$DISTRONAME_L/ Archive-architecture: i386 Country: \${UCC} \${CNAME} EOF ######## Apt-setup cd d-i/source/apt-setup/ #Ignore this for now echo -e '#!/bin/sh\ncat $1 > $2' > apt-setup-verify cat < generators/50mirror.$DISTRONAME_L #!/bin/sh set -e . /usr/share/debconf/confmodule file="\$1" db_get mirror/codename codename="\$RET" db_get mirror/protocol protocol="\$RET" db_get mirror/\$protocol/hostname hostname="\$RET" db_get mirror/\$protocol/directory directory="/\${RET#/}" if [ "\$protocol" = http ]; then db_get mirror/\$protocol/proxy proxy="\$RET" if [ -n "\$proxy" ]; then if ! grep -iq "Acquire::\$protocol::Proxy" \$ROOT/etc/apt/apt.conf.new; then echo "Acquire::\$protocol::Proxy \"\$proxy\";" >> \$ROOT/etc/apt/apt.conf.new fi fi fi dists="main universe" #Use similar naming scheme for security sec_host=\${hostname/archive/security} cat > \$file <