Adding live-package 0.99.9-1.

This commit is contained in:
Daniel Baumann 2007-09-23 10:04:23 +02:00
parent 873a8ac3d1
commit fe7102be0c
11 changed files with 102 additions and 9 deletions

View File

@ -1,3 +1,12 @@
2006-10-01 Daniel Baumann <daniel@debian.org>
* Added multiple repositories.
* Using LIVE_PROXY_* also for bootstraping.
2006-09-27 Daniel Baumann <daniel@debian.org>
* Changing manpage section.
2006-09-26 Daniel Baumann <daniel@debian.org>
* Added default flavour hooks.

View File

@ -30,8 +30,10 @@ install:
install -m 0644 doc/*.txt $(DESTDIR)/usr/share/doc/live-package
@# Install manpages
install -d -m 0755 $(DESTDIR)/usr/share/man/man8
install -m 0644 doc/man/*.8 $(DESTDIR)/usr/share/man/man8
install -d -m 0755 $(DESTDIR)/usr/share/man/man1
install -m 0644 doc/man/*.1 $(DESTDIR)/usr/share/man/man1
install -d -m 0755 $(DESTDIR)/usr/share/man/man5
install -m 0644 doc/man/*.5 $(DESTDIR)/usr/share/man/man5
uninstall:
# Uninstalling make-live
@ -48,6 +50,6 @@ uninstall:
rm -rf $(DESTDIR)/usr/share/doc/live-package
@# Remove manpages
rm -f $(DESTDIR)/usr/share/man/man8/make-live.*
rm -f $(DESTDIR)/usr/share/man/man1/make-live.*
reinstall: uninstall install

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
live-package (0.99.9-1) unstable; urgency=medium
* New upstream release:
- adds support for custom repositories (Closes: #387068).
- using proxy for chroot creating too (Closes: #390378).
-- Daniel Baumann <daniel@debian.org> Mon, 2 Oct 2006 00:00:00 +0200
live-package (0.99.8-1) unstable; urgency=medium
* New upstream release.

View File

@ -1,4 +1,4 @@
.TH MAKE-LIVE 8 "Mon, 4 Sep 2006" "0.99" "Debian Live framework"
.TH MAKE-LIVE 1 "Mon, 4 Sep 2006" "0.99" "Debian Live framework"
.SH NAME
make-live \- utility to build Debian Live systems

View File

@ -1,4 +1,4 @@
.TH MAKE-LIVE.CONF 8 "Mon, 4 Sep 2006" "0.99" "Debian Live framework"
.TH MAKE-LIVE.CONF 5 "Mon, 4 Sep 2006" "0.99" "Debian Live framework"
.SH NAME
make-live.conf \- configuration file for make-live(8)

View File

@ -63,6 +63,28 @@
# Chroots http_proxy (Default: empty)
#LIVE_PROXY_HTTP=""
# Custom repositories (Default: none)
#LIVE_REPOSITORIES=""
# Custom repository list
LIVE_REPOSITORY_bpo="http://www.backports.org/debian/"
LIVE_REPOSITORY_KEY_bpo="http://backports.org/debian/archive.key"
LIVE_REPOSITORY_KEYRING_bpo=""
LIVE_REPOSITORY_DISTRIBUTION=""
LIVE_REPOSITORY_SECTIONS_bpo="main contrib non-free"
LIVE_REPOSITORY_edu="http://ftp.skolelinux.org/skolelinux/"
LIVE_REPOSITORY_KEY_edu=""
LIVE_REPOSITORY_KEYRING_edu="debian-edu-archive-keyring"
LIVE_REPOSITORY_DISTRIBUTION_edu="etch-test"
LIVE_REPOSITORY_SECTIONS_edu="local"
LIVE_REPOSITORY_duo="http://ftp.debian-unofficial.org/debian/"
LIVE_REPOSITORY_KEY_duo="http://ftp-master.debian-unofficial.org/key_2006.asc"
LIVE_REPOSITORY_KEYRING_duo=""
LIVE_REPOSITORY_DISTRIBUTION=""
LIVE_REPOSITORY_SECTIONS_duo="main contrib non-free restricted"
# Debian section (Default: main)
#LIVE_SECTION="main"

View File

@ -1,4 +1,4 @@
# /usr/share/make-live/lists/minimal - package list for make-live(8)
# Minimal
eject nvi sudo
eject vim-tiny sudo

View File

@ -28,7 +28,7 @@ set -e
BASE="/usr/share/make-live"
CONFIG="/etc/make-live.conf"
PROGRAM="`basename ${0}`"
VERSION="0.99.8"
VERSION="0.99.9"
CODENAME_OLDSTABLE="woody"
CODENAME_STABLE="sarge"
@ -41,7 +41,7 @@ do
. "${SCRIPT}"
done
USAGE="Usage: ${PROGRAM} [-a|--architecture ARCHITECTURE] [-b|--bootappend KERNEL_PARAMETER|\"KERNEL_PARAMETERS\"] [--config FILE] [-c|--chroot DIRECTORY] [-d|--distribution DISTRIBUTION] [--disable-generic-indices] [--enable-generic-indices] [--filesystem FILESYSTEM] [-f|--flavour BOOTSTRAP_FLAVOUR] [--hook COMMAND|\"COMMANDS\"] [--include-chroot FILE|DIRECTORY] [--include-image FILE|DIRECTORY] [-k|--kernel KERNEL_FLAVOUR] [--manifest PACKAGE] [-m|--mirror URL] [--mirror-security URL] [--packages PACKAGE|\"PACKAGES\"] [-p|--package-list LIST|FILE] [--proxy-ftp URL] [--proxy-http URL] [-r|--root DIRECTORY] [-s|--section SECTION|\"SECTIONS\"] [--server-address HOSTNAME|IP] [--server-path DIRECTORY] [--templates DIRECTORY] [-t|--type TYPE]"
USAGE="Usage: ${PROGRAM} [-a|--architecture ARCHITECTURE] [-b|--bootappend KERNEL_PARAMETER|\"KERNEL_PARAMETERS\"] [--config FILE] [-c|--chroot DIRECTORY] [-d|--distribution DISTRIBUTION] [--disable-generic-indices] [--enable-generic-indices] [--filesystem FILESYSTEM] [-f|--flavour BOOTSTRAP_FLAVOUR] [--hook COMMAND|\"COMMANDS\"] [--include-chroot FILE|DIRECTORY] [--include-image FILE|DIRECTORY] [-k|--kernel KERNEL_FLAVOUR] [--manifest PACKAGE] [-m|--mirror URL] [--mirror-security URL] [--packages PACKAGE|\"PACKAGES\"] [-p|--package-list LIST|FILE] [--proxy-ftp URL] [--proxy-http URL] [--repositories NAME] [-r|--root DIRECTORY] [-s|--section SECTION|\"SECTIONS\"] [--server-address HOSTNAME|IP] [--server-path DIRECTORY] [--templates DIRECTORY] [-t|--type TYPE]"
Help ()
{
@ -81,6 +81,7 @@ Help ()
echo " --mirror-security: specifies debian security mirror."
echo " --packages: specifies aditional packages."
echo " -p, --package-list: specifies additonal package list."
echo " --repositories: specifies custom repositories."
echo " -r, --root: specifies build root."
echo " --proxy-ftp: specifies \${ftp_proxy}."
echo " --proxy-http: specifies \${http_proxy}."
@ -158,7 +159,7 @@ Configuration ()
Main ()
{
ARGUMENTS="`getopt --longoptions root:,type:,architecture:,bootappend:,config:,chroot:,distribution:,filesystem:,flavour:,hook:,include-chroot:,include-image:,kernel:,manifest:,mirror:,mirror-security:,output:,packages:,package-list:,proxy-ftp:,proxy-http:,section:,server-address:,server-path:,templates:,with-generic-indices,without-generic-indices,with-source,without-source,help,usage,version --name=${PROGRAM} --options r:t:a:b:c:d:f:k:m:o:p:s:huv --shell sh -- "${@}"`"
ARGUMENTS="`getopt --longoptions root:,type:,architecture:,bootappend:,config:,chroot:,distribution:,filesystem:,flavour:,hook:,include-chroot:,include-image:,kernel:,manifest:,mirror:,mirror-security:,output:,packages:,package-list:,proxy-ftp:,proxy-http:,repositories:,section:,server-address:,server-path:,templates:,with-generic-indices,without-generic-indices,with-source,without-source,help,usage,version --name=${PROGRAM} --options r:t:a:b:c:d:f:k:m:o:p:s:huv --shell sh -- "${@}"`"
if [ "${?}" != "0" ]
then
@ -254,6 +255,10 @@ Main ()
LIVE_PROXY_HTTP="${2}"; shift 2
;;
--repositories)
LIVE_REPOSITORIES="${2}"; shift 2
;;
-s|--section)
LIVE_SECTION="${2}"; shift 2
;;

View File

@ -13,6 +13,17 @@ Bootstrap ()
{
if [ ! -f "${LIVE_ROOT}"/.stage/bootstrap ]
then
# Use proxy
if [ -n "${LIVE_PROXY_FTP}" ] && [ -z "${ftp_proxy}" ]
then
export ftp_proxy="${LIVE_PROXY_FTP}"
fi
if [ -n "${LIVE_PROXY_HTTP}" ] && [ -z "${http_proxy}" ]
then
export http_proxy="${LIVE_PROXY_HTTP}"
fi
# Create chroot directory
if [ ! -d "${LIVE_CHROOT}" ]
then

View File

@ -36,6 +36,22 @@ Chroot ()
if [ "${LIVE_FLAVOUR}" != "minimal" ]
then
Chroot_exec "apt-get install --yes --force-yes debian-archive-keyring"
for NAME in ${LIVE_REPOSITORIES}
do
eval REPOSITORY_KEY="$`echo LIVE_REPOSITORY_KEY_$NAME`"
eval REPOSITORY_KEYRING="$`echo LIVE_REPOSITORY_KEYRING_$NAME`"
if [ -n "${REPOSITORY_KEYRING}" ]
then
Chroot_exec "apt-get install ${REPOSITORY_KEYRING}"
elif [ -n "${REPOSITORY_KEY}" ]
then
Chroot_exec "wget ${REPOSITORY_KEY}"
Chroot_exec "apt-key add `basename ${REPOSITORY_KEY}`"
Chroot_exec "rm -f `basename ${REPOSITORY_KEY}`"
fi
done
fi
fi

View File

@ -93,6 +93,25 @@ EOF
;;
esac
# Add custom repositories
echo "" >> "${LIVE_CHROOT}"/etc/apt/sources.list
echo "# Custom repositories" >> "${LIVE_CHROOT}"/etc/apt/sources.list
for NAME in ${LIVE_REPOSITORIES}
do
eval REPOSITORY="$`echo LIVE_REPOSITORY_$NAME`"
eval REPOSITORY_DISTRIBUTION="$`echo LIVE_REPOSITORY_DISTRIBUTION_$NAME`"
eval REPOSITORY_SECTIONS="$`echo LIVE_REPOSITORY_SECTIONS_$NAME`"
# Configure /etc/apt/sources.list
if [ -n "${REPOSITORY_DISTRIBUTION}" ]
then
echo "deb ${REPOSITORY} ${REPOSITORY_DISTRIBUTION} ${REPOSITORY_SECTIONS}" >> "${LIVE_CHROOT}"/etc/apt/sources.list
else
echo "deb ${REPOSITORY} ${LIVE_DISTRIBUTION} ${REPOSITORY_SECTIONS}" >> "${LIVE_CHROOT}"/etc/apt/sources.list
fi
done
# Update indices
Chroot_exec "apt-get update"
@ -192,6 +211,7 @@ Linuximage ()
then
mv "${LIVE_CHROOT}"/boot/vmlinuz-* "${LIVE_ROOT}"/binary/isolinux/vmlinuz
mv "${LIVE_CHROOT}"/boot/initrd.img-* "${LIVE_ROOT}"/binary/isolinux/initrd.gz
rm -f "${LIVE_CHROOT}"/vmlinuz "${LIVE_CHROOT}"/initrd.img
else
cp "${LIVE_CHROOT}"/boot/vmlinuz-* "${LIVE_ROOT}"/binary/isolinux/vmlinuz
cp "${LIVE_CHROOT}"/boot/initrd.img-* "${LIVE_ROOT}"/binary/isolinux/initrd.gz