logo

widrop

[mirror] WiDrop distribution, now defunct
commit: c3359550b155b82918e3fe4c7d86360dd4a38d0c
Author: Mathieu Goessens <geb@breizh-entropy.org>
Date:   Sun, 16 Dec 2012 17:35:58 +0000

Initial commit

Diffstat:

A.gitignore4++++
AREADME28++++++++++++++++++++++++++++
Asrc/TODO3+++
Asrc/emdebian/build.sh34++++++++++++++++++++++++++++++++++
Asrc/emdebian/config/fstab8++++++++
Asrc/emdebian/config/hostname1+
Asrc/emdebian/config/interfaces12++++++++++++
Asrc/emdebian/dist2++
Asrc/emdebian/flavors/common/config/fstab8++++++++
Asrc/emdebian/flavors/common/config/hostname1+
Asrc/emdebian/flavors/common/config/interfaces12++++++++++++
Asrc/emdebian/flavors/common/setup.sh25+++++++++++++++++++++++++
Asrc/emdebian/flavors/debian/multistrap.conf25+++++++++++++++++++++++++
Asrc/emdebian/flavors/debian/setup.sh25+++++++++++++++++++++++++
Asrc/emdebian/flavors/emdebian/multistrap.conf33+++++++++++++++++++++++++++++++++
Asrc/emdebian/flavors/emdebian/setup.sh25+++++++++++++++++++++++++
Asrc/emdebian/flavors/nslu2/multistrap.conf19+++++++++++++++++++
Asrc/emdebian/flavors/nslu2/setup.sh25+++++++++++++++++++++++++
Asrc/emdebian/flavors/old/mulistrap.conf41+++++++++++++++++++++++++++++++++++++++++
Asrc/emdebian/flavors/old/setup.sh25+++++++++++++++++++++++++
Asrc/emdebian/flavors/rpi/multistrap.conf25+++++++++++++++++++++++++
Asrc/emdebian/flavors/rpi/setup.sh25+++++++++++++++++++++++++
Asrc/emdebian/old/multistrap.conf.old41+++++++++++++++++++++++++++++++++++++++++
Asrc/emdebian/old/multistrap.patch26++++++++++++++++++++++++++
Asrc/emdebian/old/multistrap.patch.README3+++
Asrc/gpg/build.sh25+++++++++++++++++++++++++
Asrc/gpg/dist2++
Asrc/gpg/pubkey.gpg30++++++++++++++++++++++++++++++
Asrc/gpg/sign.sh4++++
Asrc/live/.build/bootstrap0
Asrc/live/.build/bootstrap_cache.restore0
Asrc/live/.build/bootstrap_cache.save0
Asrc/live/.build/chroot_apt0
Asrc/live/.build/chroot_archives0
Asrc/live/.build/chroot_debianchroot0
Asrc/live/.build/chroot_dpkg0
Asrc/live/.build/chroot_hostname0
Asrc/live/.build/chroot_hosts0
Asrc/live/.build/chroot_linux-image0
Asrc/live/.build/chroot_package-lists.install0
Asrc/live/.build/chroot_preseed0
Asrc/live/.build/chroot_resolv0
Asrc/live/.build/chroot_sysv-rc0
Asrc/live/.build/chroot_upstart0
Asrc/live/build.sh3+++
Asrc/live/config/archives/your-repository.list.chroot1+
Asrc/live/config/binary154+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Asrc/live/config/bootstrap137+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Asrc/live/config/chroot49+++++++++++++++++++++++++++++++++++++++++++++++++
Asrc/live/config/common144+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Asrc/live/config/package-lists/widrop.list.chroot1+
Asrc/live/config/source9+++++++++
Asrc/pkg/TODO2++
Asrc/pkg/Tree49+++++++++++++++++++++++++++++++++++++++++++++++++
Asrc/pkg/build.sh17+++++++++++++++++
Asrc/pkg/dist2++
Asrc/pkg/list10++++++++++
Asrc/pkg/widrop-apache2/DEBIAN/control13+++++++++++++
Asrc/pkg/widrop-apache2/etc/lighttpd/lighttpd.conf54++++++++++++++++++++++++++++++++++++++++++++++++++++++
Asrc/pkg/widrop-common/DEBIAN/control11+++++++++++
Asrc/pkg/widrop-common/DEBIAN/postinst18++++++++++++++++++
Asrc/pkg/widrop-common/etc/network/interfaces20++++++++++++++++++++
Asrc/pkg/widrop-common/usr/share/pam-configs/widrop6++++++
Asrc/pkg/widrop-dnsmasq/DEBIAN/control13+++++++++++++
Asrc/pkg/widrop-dnsmasq/etc/dnsmasq.d/widrop6++++++
Asrc/pkg/widrop-firmwares/DEBIAN/control10++++++++++
Asrc/pkg/widrop-hostapd/DEBIAN/control12++++++++++++
Asrc/pkg/widrop-hostapd/etc/hostapd.conf17+++++++++++++++++
Asrc/pkg/widrop-iptables/DEBIAN/control13+++++++++++++
Asrc/pkg/widrop-iptables/etc/iptables.sh5+++++
Asrc/pkg/widrop-iptables/etc/network/if-up.d/widrop2++
Asrc/pkg/widrop-keyring/DEBIAN/control9+++++++++
Asrc/pkg/widrop-lighttpd/DEBIAN/control13+++++++++++++
Asrc/pkg/widrop-lighttpd/DEBIAN/postinst14++++++++++++++
Asrc/pkg/widrop-lighttpd/etc/lighttpd/conf-available/00-widrop.conf31+++++++++++++++++++++++++++++++
Asrc/pkg/widrop-pureftpd/DEBIAN/control13+++++++++++++
Asrc/pkg/widrop/DEBIAN/config23+++++++++++++++++++++++
Asrc/pkg/widrop/DEBIAN/control11+++++++++++
Asrc/pkg/widrop/DEBIAN/postinst5+++++
Asrc/pkg/widrop/DEBIAN/templates17+++++++++++++++++
80 files changed, 1451 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1,4 @@ +dist/emdebian/* +dist/gpg/* +dist/live/* +dist/pkg/* diff --git a/README b/README @@ -0,0 +1,28 @@ +This is a widrop distribution. + +== Contents == + +- Debian packages sources and distribution. +- Debian live build scripts and distribution. +- Emdebian build scripts and distribution. + +== Requirements == + +Both packages, debian-live, and emdebian scripts targets wheezy. + +For emdebian you will also need: +- multistrap as an advanced debootstrap tool (allow you to mix repos etc) +- qemu-static for cross plateform script execution. +- binfmt for automatic cross plateform execution. + +For debian-live you will need: +live-* + +For packages you will need: +TODO + +Both Debian-live and emdebian depends of the setup of a local debian repo. +An Url http://localhost/~widrop/dist/pkg is hardcoded in the configs: +* in src/live/config/archives/your-repository.list.chroot for debian-live +* in src/multistrap.conf for emdebian +Setup is easy as copying (or linking) dist directory to /home/widrop/public_html/ diff --git a/src/TODO b/src/TODO @@ -0,0 +1,3 @@ +== Live == +* True repo on config/archives/your-repository.list.chroot +* True repo on config/archives/your-repository.list.binary diff --git a/src/emdebian/build.sh b/src/emdebian/build.sh @@ -0,0 +1,34 @@ +#!/bin/sh + +echo WIP +echo use multistrap -f flavors/$name/multistrap.conf + +exit 0 + +#fuser -k -n tcp 80 +#fuser -k -n tcp 22 +#fuser -k -n udp 53 + +/usr/sbin/multistrap -f multistrap.conf dist + +cp config/interfaces dist/etc/network/interfaces +cp config/hostname dist/etc/hostname +cp config/fstab dist/etc/fstab + +# dropbear +mknod -m 644 dist/dev/random c 1 8 +mknod -m 644 dist/dev/urandom c 1 9 + +# linux +cp config/fstab dist/etc/mtab + +cp /usr/bin/qemu-arm-static dist/usr/bin +mkdir dist/proc +mount -o bind /proc dist/proc +chroot dist dpkg --configure -a +umount dist/proc +rm dist/usr/bin/qemu-arm-static + +du -sh dist + + diff --git a/src/emdebian/config/fstab b/src/emdebian/config/fstab @@ -0,0 +1,8 @@ +# /etc/fstab: static file system information. +# +# <file system> <mount point> <type> <options> <dump> <pass> +proc /proc proc defaults 0 0 +/dev/sda1 none swap sw 0 0 +/dev/sda2 / ext3 errors=remount-ro 0 1 +/dev/sda3 /srv ext3 defaults,async,noatime,data=writeback,commit=15 0 2 + diff --git a/src/emdebian/config/hostname b/src/emdebian/config/hostname @@ -0,0 +1 @@ +widrop diff --git a/src/emdebian/config/interfaces b/src/emdebian/config/interfaces @@ -0,0 +1,12 @@ +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +# The loopback network interface +auto lo +iface lo inet loopback + +# The primary network interface +allow-hotplug eth0 +iface eth0 inet dhcp + + diff --git a/src/emdebian/dist b/src/emdebian/dist @@ -0,0 +1 @@ +../../dist/emdebian+ \ No newline at end of file diff --git a/src/emdebian/flavors/common/config/fstab b/src/emdebian/flavors/common/config/fstab @@ -0,0 +1,8 @@ +# /etc/fstab: static file system information. +# +# <file system> <mount point> <type> <options> <dump> <pass> +proc /proc proc defaults 0 0 +/dev/sda1 none swap sw 0 0 +/dev/sda2 / ext3 errors=remount-ro 0 1 +/dev/sda3 /srv ext3 defaults,async,noatime,data=writeback,commit=15 0 2 + diff --git a/src/emdebian/flavors/common/config/hostname b/src/emdebian/flavors/common/config/hostname @@ -0,0 +1 @@ +widrop diff --git a/src/emdebian/flavors/common/config/interfaces b/src/emdebian/flavors/common/config/interfaces @@ -0,0 +1,12 @@ +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +# The loopback network interface +auto lo +iface lo inet loopback + +# The primary network interface +allow-hotplug eth0 +iface eth0 inet dhcp + + diff --git a/src/emdebian/flavors/common/setup.sh b/src/emdebian/flavors/common/setup.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +#fuser -k -n tcp 80 +#fuser -k -n tcp 22 +#fuser -k -n udp 53 + +cp config/interfaces dist/etc/network/interfaces +cp config/hostname dist/etc/hostname +cp config/fstab dist/etc/fstab + +# dropbear +mknod -m 644 dist/dev/random c 1 8 +mknod -m 644 dist/dev/urandom c 1 9 + +# linux +cp config/fstab dist/etc/mtab + +cp /usr/bin/qemu-arm-static dist/usr/bin +mkdir dist/proc +mount -o bind /proc dist/proc +chroot dist dpkg --configure -a +umount dist/proc +rm dist/usr/bin/qemu-arm-static + +du -sh dist diff --git a/src/emdebian/flavors/debian/multistrap.conf b/src/emdebian/flavors/debian/multistrap.conf @@ -0,0 +1,25 @@ +[General] +arch= +cleanup=true +noauth=true +unpack=true +aptsources=Debian Widrop +debootstrap=Debian Widrop +directory=./dist/debian +setupscript=./flavors/debian/setup.sh + +[Debian] +packages=apt +source=http://ftp.fr.debian.org/debian +keyring=debian-archive-keyring +suite=wheezy +components=main contrib non-free +omitdebsrc=true + +[Widrop] +packages=widrop widrop-firmwares +source=http://localhost/~geb/dist/pkg +suite= +components=./ +omitdebsrc=true + diff --git a/src/emdebian/flavors/debian/setup.sh b/src/emdebian/flavors/debian/setup.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +#fuser -k -n tcp 80 +#fuser -k -n tcp 22 +#fuser -k -n udp 53 + +cp config/interfaces dist/etc/network/interfaces +cp config/hostname dist/etc/hostname +cp config/fstab dist/etc/fstab + +# dropbear +mknod -m 644 dist/dev/random c 1 8 +mknod -m 644 dist/dev/urandom c 1 9 + +# linux +cp config/fstab dist/etc/mtab + +cp /usr/bin/qemu-arm-static dist/usr/bin +mkdir dist/proc +mount -o bind /proc dist/proc +chroot dist dpkg --configure -a +umount dist/proc +rm dist/usr/bin/qemu-arm-static + +du -sh dist diff --git a/src/emdebian/flavors/emdebian/multistrap.conf b/src/emdebian/flavors/emdebian/multistrap.conf @@ -0,0 +1,33 @@ +[General] +arch= +cleanup=true +noauth=true +unpack=true +aptsources=Debian Grip Widrop +debootstrap=Debian Grip Widrop +directory=./dist/emdebian +setupscript=./flavors/emdebian/setup.sh + +[Debian] +packages= +source=http://ftp.fr.debian.org/debian +keyring=debian-archive-keyring +suite=wheezy +components=main contrib non-free +omitdebsrc=true + +[Grip] +packages=apt +keyring=emdebian-archive-keyring +source=http://www.emdebian.org/grip +suite=wheezy-grip +omitdebsrc=true +components=main + +[Widrop] +packages=widrop widrop-firmwares +source=http://localhost/~geb/dist/pkg +suite= +components=./ +omitdebsrc=true + diff --git a/src/emdebian/flavors/emdebian/setup.sh b/src/emdebian/flavors/emdebian/setup.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +#fuser -k -n tcp 80 +#fuser -k -n tcp 22 +#fuser -k -n udp 53 + +cp config/interfaces dist/etc/network/interfaces +cp config/hostname dist/etc/hostname +cp config/fstab dist/etc/fstab + +# dropbear +mknod -m 644 dist/dev/random c 1 8 +mknod -m 644 dist/dev/urandom c 1 9 + +# linux +cp config/fstab dist/etc/mtab + +cp /usr/bin/qemu-arm-static dist/usr/bin +mkdir dist/proc +mount -o bind /proc dist/proc +chroot dist dpkg --configure -a +umount dist/proc +rm dist/usr/bin/qemu-arm-static + +du -sh dist diff --git a/src/emdebian/flavors/nslu2/multistrap.conf b/src/emdebian/flavors/nslu2/multistrap.conf @@ -0,0 +1,19 @@ +[General] +include=./flavors/emdebian/multistrap.conf +arch=armel +aptsources=Debian Grip Widrop +debootstrap=Debian Grip Widrop +directory=./dist/nslu2 +setupscript=flavors/nslu2/setup.sh + +#[Debian] +#packages= + +[Grip] +packages=apt linux-image-ixp4xx nslu2-utils apex-nslu2 flash-kernel slugimage busybox dash pdksh busybox-syslogd dropbear +keyring=emdebian-archive-keyring +source=http://www.emdebian.org/grip +suite=wheezy-grip +omitdebsrc=true +components=main + diff --git a/src/emdebian/flavors/nslu2/setup.sh b/src/emdebian/flavors/nslu2/setup.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +#fuser -k -n tcp 80 +#fuser -k -n tcp 22 +#fuser -k -n udp 53 + +cp config/interfaces dist/etc/network/interfaces +cp config/hostname dist/etc/hostname +cp config/fstab dist/etc/fstab + +# dropbear +mknod -m 644 dist/dev/random c 1 8 +mknod -m 644 dist/dev/urandom c 1 9 + +# linux +cp config/fstab dist/etc/mtab + +cp /usr/bin/qemu-arm-static dist/usr/bin +mkdir dist/proc +mount -o bind /proc dist/proc +chroot dist dpkg --configure -a +umount dist/proc +rm dist/usr/bin/qemu-arm-static + +du -sh dist diff --git a/src/emdebian/flavors/old/mulistrap.conf b/src/emdebian/flavors/old/mulistrap.conf @@ -0,0 +1,41 @@ +[General] +arch=armel +cleanup=true +noauth=false +unpack=true +explicitsuite=true +aptsources=Debian Grip Firmware Kernel +debootstrap=Debian Grip Firmware Kernel +defaultrelease=stable +directory=/home/geb/widrop/emdebian/dist +setupscript=/home/geb/widrop/emdebian/setup.sh + +[Debian] +packages=netbase +source=http://ftp.fr.debian.org/debian +keyring=debian-archive-keyring +suite=stable +omitdebsrc=true + +[Grip] +packages=lighttpd dnsmasq vsftpd openbsd-inetd php5-cgi hostapd dash pdksh busybox-syslogd busybox nslu2-utils apex-nslu2 flash-kernel slugimage dropbear mount psmisc nano less procps net-tools grep tar isc-dhcp-client usbutils +keyring=emdebian-archive-keyring +source=http://www.emdebian.org/grip +suite=stable +omitdebsrc=true +components=main + +[Firmware] +packages= firmware-ralink ixp4xx-microcode +source=http://ftp.fr.debian.org/debian +keyring=debian-archive-keyring +suite=stable +components=non-free +omitdebsrc=true + +[Kernel] +packages=linux-image-3.0.0-2-ixp4xx firmware-linux-free initramfs-tools klibc-utils udev libklibc libudev0 linux-base +source=http://ftp.fr.debian.org/debian +keyring=debian-archive-keyring +suite=unstable +omitdebsrc=true diff --git a/src/emdebian/flavors/old/setup.sh b/src/emdebian/flavors/old/setup.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +#fuser -k -n tcp 80 +#fuser -k -n tcp 22 +#fuser -k -n udp 53 + +cp config/interfaces dist/etc/network/interfaces +cp config/hostname dist/etc/hostname +cp config/fstab dist/etc/fstab + +# dropbear +mknod -m 644 dist/dev/random c 1 8 +mknod -m 644 dist/dev/urandom c 1 9 + +# linux +cp config/fstab dist/etc/mtab + +cp /usr/bin/qemu-arm-static dist/usr/bin +mkdir dist/proc +mount -o bind /proc dist/proc +chroot dist dpkg --configure -a +umount dist/proc +rm dist/usr/bin/qemu-arm-static + +du -sh dist diff --git a/src/emdebian/flavors/rpi/multistrap.conf b/src/emdebian/flavors/rpi/multistrap.conf @@ -0,0 +1,25 @@ +[General] +# Don't use includes +#include=flavors/emdebian/multistrap.conf +arch=armhf +aptsources=rpi Widrop +debootstrap=rpi Widrop +directory=./dist/rpi +setupscript=flavors/rpi/setup.sh +noauth=true + +[rpi] +packages=apt busybox dash pdksh busybox-syslogd dropbear +#keyring=raspbian-archive-keyring +source=http://archive.raspbian.org/raspbian +suite=wheezy +omitdebsrc=true +components=main contrib non-free rpi + +[Widrop] +packages=widrop +source=http://localhost/~geb/dist/pkg +suite= +components=./ +omitdebsrc=true + diff --git a/src/emdebian/flavors/rpi/setup.sh b/src/emdebian/flavors/rpi/setup.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +#fuser -k -n tcp 80 +#fuser -k -n tcp 22 +#fuser -k -n udp 53 + +cp config/interfaces dist/etc/network/interfaces +cp config/hostname dist/etc/hostname +cp config/fstab dist/etc/fstab + +# dropbear +mknod -m 644 dist/dev/random c 1 8 +mknod -m 644 dist/dev/urandom c 1 9 + +# linux +cp config/fstab dist/etc/mtab + +cp /usr/bin/qemu-arm-static dist/usr/bin +mkdir dist/proc +mount -o bind /proc dist/proc +chroot dist dpkg --configure -a +umount dist/proc +rm dist/usr/bin/qemu-arm-static + +du -sh dist diff --git a/src/emdebian/old/multistrap.conf.old b/src/emdebian/old/multistrap.conf.old @@ -0,0 +1,41 @@ +[General] +arch=armel +cleanup=true +noauth=false +unpack=true +explicitsuite=true +aptsources=Debian Grip Firmware Kernel +debootstrap=Debian Grip Firmware Kernel +defaultrelease=stable +directory=/home/geb/widrop/emdebian/dist +setupscript=/home/geb/widrop/emdebian/setup.sh + +[Debian] +packages=netbase +source=http://ftp.fr.debian.org/debian +keyring=debian-archive-keyring +suite=stable +omitdebsrc=true + +[Grip] +packages=lighttpd dnsmasq vsftpd openbsd-inetd php5-cgi hostapd dash pdksh busybox-syslogd busybox nslu2-utils apex-nslu2 flash-kernel slugimage dropbear mount psmisc nano less procps net-tools grep tar isc-dhcp-client usbutils +keyring=emdebian-archive-keyring +source=http://www.emdebian.org/grip +suite=stable +omitdebsrc=true +components=main + +[Firmware] +packages= firmware-ralink ixp4xx-microcode +source=http://ftp.fr.debian.org/debian +keyring=debian-archive-keyring +suite=stable +components=non-free +omitdebsrc=true + +[Kernel] +packages=linux-image-3.0.0-2-ixp4xx firmware-linux-free initramfs-tools klibc-utils udev libklibc libudev0 linux-base +source=http://ftp.fr.debian.org/debian +keyring=debian-archive-keyring +suite=unstable +omitdebsrc=true diff --git a/src/emdebian/old/multistrap.patch b/src/emdebian/old/multistrap.patch @@ -0,0 +1,26 @@ +39c39 +< %foreignpkgs /; +--- +> %foreignpkgs $defaultrelease /; +326c326,331 +< $config_str .= " -o Dir::Etc=${dir}${etcdir} -o APT::Default-Release=stable"; +--- +> $config_str .= " -o Dir::Etc=${dir}${etcdir}"; +> $config_str .= " -o APT::Default-Release=$defaultrelease" +> if (defined $defaultrelease); +> $config_str .= " -o APT::Default-Release=*" +> if (not defined $defaultrelease); +> +946a952,956 +> +> # install required only from default release. Maybe should we use an option for that +> @lists=grep(/_$defaultrelease$/, readdir (PKGS)) +> if (defined $defaultrelease); +> +1113a1124,1125 +> $defaultrelease = $keys{$section}{'defaultrelease'} +> if (defined $keys{$section}{'defaultrelease'} and (not defined $defaultrelease)); +1408a1421,1423 +> } +> if (defined $defaultrelease) { +> printf ("defaultrelease:\t\t"._g("Default release: '%s'\n"), $defaultrelease); diff --git a/src/emdebian/old/multistrap.patch.README b/src/emdebian/old/multistrap.patch.README @@ -0,0 +1,3 @@ + +This is a patch for multistrap to allow pinning (installing packages from different distribution suites). +It is no more necessary, as we now target wheezy. It has been keep here mostly for historical purpose. diff --git a/src/gpg/build.sh b/src/gpg/build.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +path=~/.widrop-gpg + +echo path=$path + +[[ ! -d $path ]] && ( + echo Widrop: Creating the dir $path + mkdir $path + chmod 700 $path + ) + +[[ ! -f $path/pubring.gpg || ! -f $path/secring.gpg ]] && ( + echo Widrop: Creating gpg keys + gpg --homedir $path --gen-key + key=$(gpg --homedir ~/.widrop-gpg --list-keys 2>/dev/null | grep pub | awk '{print $2}' | awk -F"/" '{print $2}') + echo Widrop: key $key generated + echo Widrop: Creating revocation key + gpg --homedir $path --armor --output $path/revoke.gpg --gen-revoke $key + echo Widrop: Exporting public key + gpg --homedir $path --export -armor --output $path/pubkey.gpg + cp $path/pubkey.gpg dist/ + echo Widrop: done + ) + diff --git a/src/gpg/dist b/src/gpg/dist @@ -0,0 +1 @@ +../../dist/gpg+ \ No newline at end of file diff --git a/src/gpg/pubkey.gpg b/src/gpg/pubkey.gpg @@ -0,0 +1,30 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1.4.11 (GNU/Linux) + +mQENBFCj0+QBCADQMcXbMhueffY+RNpY4YUAXrtpEzMFRvSQGPHIzUIcAoRHqV5F +9b1V8yil9375wTnEHmKvLzlgjukct9fNfhzuv0u+luSXZz4ffR52HqdTet5HpQiS +k6Xa4KbYk1HfyuniExp4IDDHkyrpVDkJw9x0YzMVAzuAwsv20OBmIXD6RM/NSGcJ +nhlIWs3EzIfmdvfGGZm4ohoqRZeql86N7t9iDk2AzbQAaUvyq9Spcy1QJ4I27/yf +04Tcu7cx7UbZ+aQwvilB/Ukf2mzHWeTXdDDGMkPjj2A3io2LT2YnG2wQyKj9XARi +z0q7RdCIAFjNqhMRCmf78VmmXTQ8QTiCZsRlABEBAAG0CnplZnplZnplZnqJATgE +EwECACIFAlCj0+QCGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEPwTSApY +ExW0bWEH/0gMV2wgGPIIYQyNGO1vBt668a3loGCqLlMd7RFS5pIhNb6ikGuP7upl +nyEN9zSlIki7SmH7CQPbWuUijYPK1ibH2G0vaYRaDSxqE9DhSdxNET7IJr7E4tki +UEgcHje6VZy0CPos4eSGQ1brDGPwJL+pHHu+Uh/IFkWfiD58O9yRluOr7MIjNSq/ +fI8JULvsbCWVVNEota1VfuLRJJKuVpIpvo99Pkv+DmW0Zl1blVymc8CTnnIUR2Za +D7NouvAjulWNCCkxhnWk604qKBj6DXNXHixxTQzsiGBbVMk27XEY2a3xjs8nhKYy +UHDgLmNMXRjrVyj3Juc4IATdwo/KSsK5AQ0EUKPT5AEIAOEkdkCVXYh7TTDNJRRB +U71KvLWxnmFMvtss47viadcLkQXqcxPFOgoCmwKnGTS5N1gu9436S0Br5JhvofCC +7pKREkMYZX4oJo0GGZC2X6YLRzwSxdK+x8JVwid1IYr2pQkpkW+DXSyL8a3xqWlx +kEjDnmCUK/Pnp7LTRjLVyt5JgVZh/UgWe0ZmOjj2invRA2HTSxUigH7S0MQko3Xa +3mNHbVQht+ju0TA9vnmPguV9ubBnR6SmpWUjCqbbDyQdJAw8ilY9edjyZZ1bGqI4 +ffYFqHp2dNVFArIIviEiHYtuyERW1k+urkMfDnK0DlopAXcPVvNWPUQG+59EN2VW +vCEAEQEAAYkBHwQYAQIACQUCUKPT5AIbDAAKCRD8E0gKWBMVtG99CACEG/cVFrqQ +RtCCgk1MCTAiOfbXl8F7SrKg9XWy0GjQpcC9d9p0O7SC4iKD1iBN5I5m9PnVaJae +vqmYUB+aCM1QRmeya8S0VOm8R7P/qMdPlJfHzYcmP0l0T/VVMUGWMBRVeE1FL6tj +dBqGdD4gXZHc1VhR2o6Khz/UV+Ly97fB89kv9mAzaYpTOGyBdwGpTvjDE45JzW8O +eBIRRRFIU7FeA2Y7kS+DQNcqUPFy/t8zfZU5Rqc/Z/kqOsayKEEnhGa4+X+ePqJB +Di2PEOACOcUxnVrPW0D0dImzh4KIuzI6Jo+HyRvC+VZtmMJfT5MaTB9cur9dOUQ0 +HvP5FTwTQYGU +=W6Us +-----END PGP PUBLIC KEY BLOCK----- diff --git a/src/gpg/sign.sh b/src/gpg/sign.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +path=~/.widrop-gpg +gpg --homedir $path --armor --output ../pkg/dist/Release.gpg --detach-sign ../pkg/dist/Release diff --git a/src/live/.build/bootstrap b/src/live/.build/bootstrap diff --git a/src/live/.build/bootstrap_cache.restore b/src/live/.build/bootstrap_cache.restore diff --git a/src/live/.build/bootstrap_cache.save b/src/live/.build/bootstrap_cache.save diff --git a/src/live/.build/chroot_apt b/src/live/.build/chroot_apt diff --git a/src/live/.build/chroot_archives b/src/live/.build/chroot_archives diff --git a/src/live/.build/chroot_debianchroot b/src/live/.build/chroot_debianchroot diff --git a/src/live/.build/chroot_dpkg b/src/live/.build/chroot_dpkg diff --git a/src/live/.build/chroot_hostname b/src/live/.build/chroot_hostname diff --git a/src/live/.build/chroot_hosts b/src/live/.build/chroot_hosts diff --git a/src/live/.build/chroot_linux-image b/src/live/.build/chroot_linux-image diff --git a/src/live/.build/chroot_package-lists.install b/src/live/.build/chroot_package-lists.install diff --git a/src/live/.build/chroot_preseed b/src/live/.build/chroot_preseed diff --git a/src/live/.build/chroot_resolv b/src/live/.build/chroot_resolv diff --git a/src/live/.build/chroot_sysv-rc b/src/live/.build/chroot_sysv-rc diff --git a/src/live/.build/chroot_upstart b/src/live/.build/chroot_upstart diff --git a/src/live/build.sh b/src/live/build.sh @@ -0,0 +1,3 @@ +#!/bin/sh +sudo lb clean +sudo lb build diff --git a/src/live/config/archives/your-repository.list.chroot b/src/live/config/archives/your-repository.list.chroot @@ -0,0 +1 @@ +deb http://localhost/~widrop/dist/pkg ./ diff --git a/src/live/config/binary b/src/live/config/binary @@ -0,0 +1,154 @@ +# config/binary - options for live-build(7), binary stage + +# $LB_BINARY_FILESYSTEM: set image filesystem +# (Default: fat16) +LB_BINARY_FILESYSTEM="fat16" + +# $LB_BINARY_IMAGES: set image type +# (Default: iso-hybrid) +LB_BINARY_IMAGES="iso-hybrid" + +# $LB_APT_INDICES: set apt/aptitude generic indices +# (Default: true) +LB_APT_INDICES="true" + +# $LB_BOOTAPPEND_LIVE: set boot parameters +# (Default: empty) +LB_BOOTAPPEND_LIVE="" + +# $LB_BOOTAPPEND_INSTALL: set boot parameters +# (Default: empty) +LB_BOOTAPPEND_INSTALL="" + +# $LB_BOOTAPPEND_FAILSAFE: set boot parameters +# (Default: empty) +LB_BOOTAPPEND_FAILSAFE="memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal" + +# $LB_BOOTLOADER: set bootloader +# (Default: syslinux) +LB_BOOTLOADER="syslinux" + +# $LB_CHECKSUMS: set checksums +# (Default: sha256) +LB_CHECKSUMS="sha256" + +# $LB_COMPRESSION: set compression +# (Default: gzip) +LB_COMPRESSION="gzip" + +# ${LB_BUILD_WITH_CHROOT: control if we build binary images chrooted +# (Default: true) +# DO NEVER, *NEVER*, *N*E*V*E*R* SET THIS OPTION to false. +LB_BUILD_WITH_CHROOT="true" + +# $LB_DEBIAN_INSTALLER: set debian-installer +# (Default: false) +LB_DEBIAN_INSTALLER="false" + +# $LB_DEBIAN_INSTALLER_DISTRIBUTION: set debian-installer suite +# (Default: empty) +LB_DEBIAN_INSTALLER_DISTRIBUTION="wheezy" + +# $LB_DEBIAN_INSTALLER_PRESEEDFILE: set debian-installer preseed filename/url +# (Default: ) +LB_DEBIAN_INSTALLER_PRESEEDFILE="" + +# $LB_DEBIAN_INSTALLER_GUI: toggle use of GUI debian-installer +# (Default: true) +LB_DEBIAN_INSTALLER_GUI="true" + +# $LB_GRUB_SPLASH: set custom grub splash +# (Default: empty) +LB_GRUB_SPLASH="" + +# $LB_HDD_LABEL: set hdd label +# (Default: DEBIAN_LIVE) +LB_HDD_LABEL="DEBIAN_LIVE" + +# $LB_HDD_SIZE: set hdd filesystem size +# (Default: 10000) +LB_HDD_SIZE="10000" + +# $LB_ISO_APPLICATION: set iso author +# (Default: Debian Live) +LB_ISO_APPLICATION="Debian Live" + +# $LB_ISO_PREPARER: set iso preparer +# (Default: live-build 3.0~a51-1; http://packages.qa.debian.org/live-build) +LB_ISO_PREPARER="live-build 3.0~a51-1; http://packages.qa.debian.org/live-build" + +# $LB_ISO_PUBLISHER: set iso publisher +# (Default: Debian Live project; http://live.debian.net/; debian-live@lists.debian.org) +LB_ISO_PUBLISHER="Debian Live project; http://live.debian.net/; debian-live@lists.debian.org" + +# $LB_ISO_VOLUME: set iso volume (max 32 chars) +# (Default: Debian wheezy 20121104-17:32) +LB_ISO_VOLUME="Debian wheezy 20121104-17:32" + +# $LB_JFFS2_ERASEBLOCK: set jffs2 eraseblock size +# (Default: unset) +LB_JFFS2_ERASEBLOCK="" + +# $LB_MEMTEST: set memtest +# (Default: memtest86+) +LB_MEMTEST="memtest86+" + +# $LB_WIN32_LOADER: set win32-loader +# (Default: false) +LB_WIN32_LOADER="false" + +# $LB_NET_ROOT_FILESYSTEM: set netboot filesystem +# (Default: nfs) +LB_NET_ROOT_FILESYSTEM="nfs" + +# $LB_NET_ROOT_MOUNTOPTIONS: set nfsopts +# (Default: empty) +LB_NET_ROOT_MOUNTOPTIONS="" + +# $LB_NET_ROOT_PATH: set netboot server directory +# (Default: /srv/debian-live) +LB_NET_ROOT_PATH="/srv/debian-live" + +# $LB_NET_ROOT_SERVER: set netboot server address +# (Default: 192.168.1.1) +LB_NET_ROOT_SERVER="192.168.1.1" + +# $LB_NET_COW_FILESYSTEM: set net client cow filesystem +# (Default: nfs) +LB_NET_COW_FILESYSTEM="nfs" + +# $LB_NET_COW_MOUNTOPTIONS: set cow mount options +# (Default: empty) +LB_NET_COW_MOUNTOPTIONS="" + +# $LB_NET_COW_PATH: set cow directory +# (Default: ) +LB_NET_COW_PATH="" + +# $LB_NET_COW_SERVER: set cow server +# (Default: ) +LB_NET_COW_SERVER="" + +# $LB_NET_TARBALL: set net tarball +# (Default: true) +LB_NET_TARBALL="true" + +# $LB_FIRMWARE_BINARY: include firmware packages in debian-installer +# (Default: true) +LB_FIRMWARE_BINARY="true" + +# $LB_FIRMWARE_CHROOT: include firmware packages in debian-installer +# (Default: true) +LB_FIRMWARE_CHROOT="true" + +# $LB_SWAP_FILE_PATH: set swap file path +# (Default: ) +LB_SWAP_FILE_PATH="" + +# $LB_SWAP_FILE_SIZE: set swap file size +# (Default: 512) +LB_SWAP_FILE_SIZE="512" + +# $LB_SYSLINUX_THEME: set syslinux theme package +# (Default: live-build) +LB_SYSLINUX_THEME="live-build" diff --git a/src/live/config/bootstrap b/src/live/config/bootstrap @@ -0,0 +1,137 @@ +# config/bootstrap - options for live-build(7), bootstrap stage + +# $LB_ARCHITECTURES: select chroot architectures +# (Default: autodetected) +LB_ARCHITECTURES="i386" + +# $LB_BOOTSTRAP_INCLUDE: include packages on base +# (Default: empty) +LB_BOOTSTRAP_INCLUDE="" + +# $LB_BOOTSTRAP_EXCLUDE: exclude packages on base +# (Default: empty) +LB_BOOTSTRAP_EXCLUDE="" + +# $LB_BOOTSTRAP_FLAVOUR: select flavour to use +# (Default: empty) +LB_BOOTSTRAP_FLAVOUR="" + +# $LB_BOOTSTRAP_KEYRING: set distribution keyring +# (Default: empty) +LB_BOOTSTRAP_KEYRING="" + +# $LB_DISTRIBUTION: select distribution to use +# (Default: wheezy) +LB_DISTRIBUTION="wheezy" + +# $LB_PARENT_DISTRIBUTION: select parent distribution to use +# (Default: wheezy) +LB_PARENT_DISTRIBUTION="wheezy" + +# $LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION: select parent distribution for debian-installer to use +# (Default: wheezy) +LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION="wheezy" + +# $LB_PARENT_MIRROR_BOOTSTRAP: set parent mirror to bootstrap from +# (Default: http://ftp.debian.org/debian/) +LB_PARENT_MIRROR_BOOTSTRAP="http://ftp.debian.org/debian/" + +# $LB_PARENT_MIRROR_CHROOT: set parent mirror to fetch packages from +# (Default: http://ftp.debian.org/debian/) +LB_PARENT_MIRROR_CHROOT="http://ftp.debian.org/debian/" + +# $LB_PARENT_MIRROR_CHROOT_SECURITY: set security parent mirror to fetch packages from +# (Default: http://security.debian.org/) +LB_PARENT_MIRROR_CHROOT_SECURITY="http://security.debian.org/" + +# $LB_PARENT_MIRROR_CHROOT_VOLATILE: set volatile parent mirror to fetch packages from +# (Default: http://ftp.debian.org/debian/) +LB_PARENT_MIRROR_CHROOT_VOLATILE="http://ftp.debian.org/debian/" + +# $LB_PARENT_MIRROR_CHROOT_BACKPORTS: set backports parent mirror to fetch packages from +# (Default: http://backports.debian.org/debian-backports/) +LB_PARENT_MIRROR_CHROOT_BACKPORTS="http://backports.debian.org/debian-backports/" + +# $LB_PARENT_MIRROR_BINARY: set parent mirror which ends up in the image +# (Default: http://cdn.debian.net/debian/) +LB_PARENT_MIRROR_BINARY="http://cdn.debian.net/debian/" + +# $LB_PARENT_MIRROR_BINARY_SECURITY: set security parent mirror which ends up in the image +# (Default: http://security.debian.org/) +LB_PARENT_MIRROR_BINARY_SECURITY="http://security.debian.org/" + +# $LB_PARENT_MIRROR_BINARY_VOLATILE: set volatile parent mirror which ends up in the image +# (Default: http://cdn.debian.net/debian/) +LB_PARENT_MIRROR_BINARY_VOLATILE="http://cdn.debian.net/debian/" + +# $LB_PARENT_MIRROR_BINARY_BACKPORTS: set backports parent mirror which ends up in the image +# (Default: http://backports.debian.org/debian-backports/) +LB_PARENT_MIRROR_BINARY_BACKPORTS="http://backports.debian.org/debian-backports/" + +# $LB_PARENT_MIRROR_DEBIAN_INSTALLER: set debian-installer parent mirror +# (Default: http://ftp.debian.org/debian/) +LB_PARENT_MIRROR_DEBIAN_INSTALLER="http://ftp.debian.org/debian/" + +# $LB_MIRROR_BOOTSTRAP: set mirror to bootstrap from +# (Default: http://ftp.fr.debian.org) +LB_MIRROR_BOOTSTRAP="http://ftp.fr.debian.org" + +# $LB_MIRROR_CHROOT: set mirror to fetch packages from +# (Default: http://ftp.debian.org/debian/) +LB_MIRROR_CHROOT="http://ftp.debian.org/debian/" + +# $LB_MIRROR_CHROOT_SECURITY: set security mirror to fetch packages from +# (Default: http://security.debian.org/) +LB_MIRROR_CHROOT_SECURITY="http://security.debian.org/" + +# $LB_MIRROR_CHROOT_VOLATILE: set volatile mirror to fetch packages from +# (Default: http://ftp.debian.org/debian/) +LB_MIRROR_CHROOT_VOLATILE="http://ftp.debian.org/debian/" + +# $LB_MIRROR_CHROOT_BACKPORTS: set backports mirror to fetch packages from +# (Default: http://backports.debian.org/debian-backports/) +LB_MIRROR_CHROOT_BACKPORTS="http://backports.debian.org/debian-backports/" + +# $LB_MIRROR_BINARY: set mirror which ends up in the image +# (Default: http://cdn.debian.net/debian/) +LB_MIRROR_BINARY="http://cdn.debian.net/debian/" + +# $LB_MIRROR_BINARY_SECURITY: set security mirror which ends up in the image +# (Default: http://security.debian.org/) +LB_MIRROR_BINARY_SECURITY="http://security.debian.org/" + +# $LB_MIRROR_BINARY_VOLATILE: set volatile mirror which ends up in the image +# (Default: http://cdn.debian.net/debian/) +LB_MIRROR_BINARY_VOLATILE="http://cdn.debian.net/debian/" + +# $LB_MIRROR_BINARY_BACKPORTS: set backports mirror which ends up in the image +# (Default: http://backports.debian.org/debian-backports/) +LB_MIRROR_BINARY_BACKPORTS="http://backports.debian.org/debian-backports/" + +# $LB_MIRROR_DEBIAN_INSTALLER: set debian-installer mirror +# (Default: http://ftp.fr.debian.org) +LB_MIRROR_DEBIAN_INSTALLER="http://ftp.debian.org/debian/" + +# $LB_ARCHIVES: enable available third-party archives +# (Default: empty) +LB_ARCHIVES="" + +# $LB_ARCHIVE_AREAS: select archive areas to use +# (Default: main) +LB_ARCHIVE_AREAS="main" + +# $LB_PARENT_ARCHIVE_AREAS: select archive areas to use +# (Default: main) +LB_PARENT_ARCHIVE_AREAS="main" + +# $LB_BOOTSTRAP_QEMU_ARCHITECTURES: architectures to use foreign bootstrap +# (Default: ) +LB_BOOTSTRAP_QEMU_ARCHITECTURES="" + +# $LB_BOOTSTRAP_QEMU_EXCLUDE: packages to exclude during foreign bootstrap +# (Default: ) +LB_BOOTSTRAP_QEMU_EXCLUDE="" + +# $LB_BOOTSTRAP_QEMU_STATIC: static qemu binary for foreign bootstrap +# (Default: ) +LB_BOOTSTRAP_QEMU_STATIC="" diff --git a/src/live/config/chroot b/src/live/config/chroot @@ -0,0 +1,49 @@ +# config/chroot - options for live-build(7), chroot stage + +# $LB_CHROOT_FILESYSTEM: set chroot filesystem +# (Default: squashfs) +LB_CHROOT_FILESYSTEM="squashfs" + +# $LB_UNION_FILESYSTEM: set union filesystem +# (Default: aufs) +LB_UNION_FILESYSTEM="aufs" + +# $LB_EXPOSED_ROOT: expose root as read only +# (Default: false) +LB_EXPOSED_ROOT="false" + +# $LB_HOOKS: set hook commands +# (Default: empty) +LB_HOOKS="" + +# $LB_INTERACTIVE: set interactive build +# (Default: false) +LB_INTERACTIVE="false" + +# $LB_KEYRING_PACKAGES: set keyring packages +# (Default: empty) +LB_KEYRING_PACKAGES="debian-archive-keyring" + +# $LB_LINUX_FLAVOURS: set kernel flavour to use +# (Default: autodetected) +LB_LINUX_FLAVOURS="486 686-pae" + +# $LB_LINUX_PACKAGES: set kernel packages to use +# (Default: autodetected) +LB_LINUX_PACKAGES="linux-image" + +# $LB_PACKAGE_LISTS: set package list to install +# (Default: standard) +LB_PACKAGE_LISTS="standard" + +# $LB_SECURITY: enable security updates +# (Default: false) +LB_SECURITY="false" + +# $LB_VOLATILE: enable volatile updates +# (Default: false) +LB_VOLATILE="false" + +# $LB_BACKPORTS: enable backports updates +# (Default: false) +LB_BACKPORTS="false" diff --git a/src/live/config/common b/src/live/config/common @@ -0,0 +1,144 @@ +# config/common - common options for live-build(7) + +# LB_CONFIG_VERSION: internal version of the configuration file format +LB_CONFIG_VERSION="3.0~a51" + +# $LB_APT: set package manager +# (Default: apt) +LB_APT="apt" + +# $LB_APT_FTP_PROXY: set apt/aptitude ftp proxy +# (Default: autodetected or empty) +LB_APT_FTP_PROXY="" + +# $LB_APT_HTTP_PROXY: set apt/aptitude http proxy +# (Default: autodetected or empty) +LB_APT_HTTP_PROXY="" + +# $LB_APT_PIPELINE: set apt/aptitude pipeline depth +# (Default: ) +LB_APT_PIPELINE="" + +# $LB_APT_RECOMMENDS: set apt/aptitude recommends +# (Default: true) +LB_APT_RECOMMENDS="true" + +# $LB_APT_SECURE: set apt/aptitude security +# (Default: true) +LB_APT_SECURE="true" + +# $LB_APT_SOURCE_ARCHIVES: set apt/aptitude source entries in sources.list +# (Default: true) +LB_APT_SOURCE_ARCHIVES="true" + +# $LB_BOOTSTRAP: set bootstrap program +# (Default: debootstrap) +LB_BOOTSTRAP="debootstrap" + +# $LB_CACHE: control cache +# (Default: true) +LB_CACHE="true" + +# $LB_CACHE_INDICES: control if downloaded package indices should be cached +# (Default: false) +LB_CACHE_INDICES="false" + +# $LB_CACHE_PACKAGES: control if downloaded packages files should be cached +# (Default: true) +LB_CACHE_PACKAGES="true" + +# $LB_CACHE_STAGES: control if completed stages should be cached +# (Default: bootstrap) +LB_CACHE_STAGES="bootstrap" + +# $LB_DEBCONF_FRONTEND: set debconf(1) frontend to use +# (Default: noninteractive) +LB_DEBCONF_FRONTEND="noninteractive" + +# $LB_DEBCONF_NOWARNINGS: set debconf(1) warnings +# (Default: yes) +LB_DEBCONF_NOWARNINGS="yes" + +# $LB_DEBCONF_PRIORITY: set debconf(1) priority to use +# (Default: critical) +LB_DEBCONF_PRIORITY="critical" + +# $LB_INITRAMFS: set initramfs hook +# (Default: live-boot) +LB_INITRAMFS="live-boot" + +# $LB_INITRAMFS_COMPRESSION: set initramfs compression +# (Default: gzip) +LB_INITRAMFS_COMPRESSION="gzip" + +# $LB_INITSYSTEM: set init system +# (Default: sysvinit) +LB_INITSYSTEM="sysvinit" + +# $LB_FDISK: set fdisk program +# (Default: autodetected) +LB_FDISK="fdisk.distrib" + +# $LB_LOSETUP: set losetup program +# (Default: autodetected) +LB_LOSETUP="losetup" + +# $LB_MODE: set distribution mode +# (Default: debian) +LB_MODE="debian" + +# $LB_SYSTEM: set system type +# (Default: live) +LB_SYSTEM="live" + +# $LB_ROOT_COMMAND: use sudo or equivalent +# (Default: empty) +#LB_ROOT_COMMAND="sudo" + +# $LB_USE_FAKEROOT: use fakeroot/fakechroot +# (Default: false) +LB_USE_FAKEROOT="false" + +# $LB_TASKSEL: set tasksel program +# (Default: apt) +LB_TASKSEL="apt" + +# $LB_INCLUDES: set includes +# (Default: /usr/share/live/build/includes) +LB_INCLUDES="/usr/share/live/build/includes" + +# $LB_TEMPLATES: set templates +# (Default: /usr/share/live/build/templates) +LB_TEMPLATES="/usr/share/live/build/templates" + +# live-build options + +# $_BREAKPOINTS: enable breakpoints +# (Default: false) +#_BREAKPOINTS="false" + +# $_DEBUG: enable debug +# (Default: false) +#_DEBUG="false" + +# $_COLOR: enable color +# (Default: false) +#_COLOR="false" + +# $_FORCE: enable force +# (Default: false) +#_FORCE="false" + +# $_QUIET: enable quiet +# (Default: false) +_QUIET="false" + +# $_VERBOSE: enable verbose +# (Default: false) +#_VERBOSE="false" + +# Internal stuff (FIXME) +APT_OPTIONS="--yes" +APTITUDE_OPTIONS="--assume-yes" +GZIP_OPTIONS="-6 --rsyncable" +ISOHYBRID_OPTIONS="" diff --git a/src/live/config/package-lists/widrop.list.chroot b/src/live/config/package-lists/widrop.list.chroot @@ -0,0 +1 @@ +widrop diff --git a/src/live/config/source b/src/live/config/source @@ -0,0 +1,9 @@ +# config/source - options for live-build(7), source stage + +# $LB_SOURCE: set source option +# (Default: false) +LB_SOURCE="false" + +# $LB_SOURCE_IMAGES: set image type +# (Default: tar) +LB_SOURCE_IMAGES="tar" diff --git a/src/pkg/TODO b/src/pkg/TODO @@ -0,0 +1,2 @@ +debconf +lighty-remove-mod in postrm diff --git a/src/pkg/Tree b/src/pkg/Tree @@ -0,0 +1,49 @@ +widrop [Pkg] ++-- widrop-ap [Task] + +--- widrop-hostapd [Pkg] + +--- hostapd [Pkg] + +--- [config] ++--- widrop-iptables [Pkg] + +--- iptables [Pkg] + +--- [config] ++--- widrop-dhcp [Task] + +--- widrop-dnsmasqd [Pkg] + +--- dnsmasqd [Pkg] + +--- [config] ++--- widrop-dns [Task] + +--- widrop-dnsmasqd [Pkg] + +--- dnsmasqd [Pkg] + +--- [config] ++-- widrop-ftp [Task] + +--- widrop-pureftpd [Pkg] + +--- pureftpd [Pkg] + +--- [config] ++-- widrop-http [Task] + +--- widrop-lighttpd [Pkg] + +--- lighttpd [Pkg] + +--- [config] + +--- (Or) widrop-apache2 [Pkg,TODO] + +--- apache2 [Pkg] + +--- [config] [TODO] ++--- widrop-user [Task] + +--- widrop-common [Pkg] + +--- [config] ++--- widrop-interfaces [Task] + +--- widrop-commob [Pkg] + +--- [Config] ++--- [Suggests] widrop-firmwares [Pkg] + +--- firmware-atheros [Pkg] + +--- firmware-brcm80211 [Pkg] + +--- firmware-ipw2x00 [Pkg] + +--- firmware-iwlwifi [Pkg] + +--- firmware-libertas [Pkg] + +--- firmware-linux [Pkg] + +--- firmware-linux-nonfree [Pkg] + +--- firmware-ralink [Pkg] + +--- firmware-realtek [Pkg] + +--- firmware-b43-installer [Pkg] + +--- atmel-firmware [Pkg] + +--- zd1211-firmware [Pkg] ++-- widrop-artwork [Pkg,TODO] ++-- widrop-scripts [Pkg,TODO] ++-- [Rec] widrop-keyring [Pkg,TODO] diff --git a/src/pkg/build.sh b/src/pkg/build.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +for x in $(cat list); do + dpkg -b $x dist/$x.deb; +done; + +cd dist; +dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz; +cd .. + +cat > dist/Release <<EOF +Archive: stable +Component: main, contrib, non-free +Origin: Widrop +Label: Widrop +Architecture: all +EOF diff --git a/src/pkg/dist b/src/pkg/dist @@ -0,0 +1 @@ +../../dist/pkg+ \ No newline at end of file diff --git a/src/pkg/list b/src/pkg/list @@ -0,0 +1,10 @@ +widrop +widrop-common +widrop-firmwares +widrop-dnsmasq +widrop-hostapd +widrop-iptables +widrop-lighttpd +widrop-pureftpd +widrop-apache2 +widrop-keyring diff --git a/src/pkg/widrop-apache2/DEBIAN/control b/src/pkg/widrop-apache2/DEBIAN/control @@ -0,0 +1,13 @@ +Package: widrop-apache2 +Version: 0.1-2011101501 +Section: admin +Priority: optional +Architecture: all +Essential: no +Installed-Size: 0 +Maintainer: Mathieu Goessens <mathieu@breizh-entropy.org> +Conflicts: widrop-lighttpd +Provides: widrop-http +Pre-depends: apache2 +Description: This is the widrop apache2 module. + It provide a HTTP server diff --git a/src/pkg/widrop-apache2/etc/lighttpd/lighttpd.conf b/src/pkg/widrop-apache2/etc/lighttpd/lighttpd.conf @@ -0,0 +1,54 @@ +server.modules = ( +# "mod_access", +# "mod_alias", +# "mod_compress", +# "mod_redirect", +# "mod_rewrite", + "mod_cgi" +) + +server.document-root = "/srv/" +server.upload-dirs = ( "/var/cache/lighttpd/uploads" ) +server.errorlog = "/var/log/lighttpd/error.log" +server.pid-file = "/var/run/lighttpd.pid" +server.username = "www-data" +server.groupname = "www-data" + +index-file.names = ( "index.php", "index.html", + "index.htm", "default.htm", + " index.lighttpd.html" ) + +#url.access-deny = ( "~", ".inc" ) + +static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) + +include_shell "/usr/share/lighttpd/use-ipv6.pl" + +dir-listing.encoding = "utf-8" +server.dir-listing = "enable" + +#compress.cache-dir = "/var/cache/lighttpd/compress/" +#compress.filetype = ( "application/x-javascript", "text/css", "text/html", "text/plain" ) + +include_shell "/usr/share/lighttpd/create-mime.assign.pl" +include_shell "/usr/share/lighttpd/include-conf-enabled.pl" + +server.error-handler-404 = "/" + +dir-listing.show-readme="enable" +dir-listing.show-header="enable" +dir-listing.hide-readme-file="enable" +dir-listing.hide-header-file="enable" + +server.max-keep-alive-requests = 0 +server.max-keep-alive-idle = 0 +server.max-read-idle = 0 +server.max-write-idle = 0 +server.max-worker = 0 +server.max-fds = 50 +server.max-connections = 5 + +cgi.assign = ( + ".php" => "/usr/bin/php5-cgi", + ".php5" => "/usr/bin/php5-cgi" + ) diff --git a/src/pkg/widrop-common/DEBIAN/control b/src/pkg/widrop-common/DEBIAN/control @@ -0,0 +1,11 @@ +Package: widrop-common +Version: 0.1-2011101501 +Section: admin +Priority: optional +Architecture: all +Essential: no +Installed-Size: 0 +Maintainer: Mathieu Goessens <mathieu@breizh-entropy.org> +Provides: widrop-common, widrop-interfaces, widrop-user +Description: This is the widrop common module + It provides common config files. diff --git a/src/pkg/widrop-common/DEBIAN/postinst b/src/pkg/widrop-common/DEBIAN/postinst @@ -0,0 +1,18 @@ +#!/bin/sh + +case $1 in + + "configure") + echo Creating widrop user + getent group widrop >/dev/null 2>&1 || + addgroup widrop + + getent passwd widrop >/dev/null 2>&1 || + adduser --disabled-password widrop --ingroup widrop --gecos widrop + + echo Allowing password-less authentification + pam-auth-update --package + ;; +esac + +exit 0 diff --git a/src/pkg/widrop-common/etc/network/interfaces b/src/pkg/widrop-common/etc/network/interfaces @@ -0,0 +1,20 @@ +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +# The loopback network interface +auto lo +iface lo inet loopback + +# The primary network interface +allow-hotplug eth0 +iface eth0 inet dhcp + +auto wlan0 +iface wlan0 inet static + address 10.42.0.1 + netmask 255.255.255.0 +# post-up /etc/init.d/hostapd restart + hostapd /etc/hostapd.conf + post-up /etc/init.d/dnsmasq restart + post-up /etc/iptables.sh + diff --git a/src/pkg/widrop-common/usr/share/pam-configs/widrop b/src/pkg/widrop-common/usr/share/pam-configs/widrop @@ -0,0 +1,6 @@ +Name: Widrop password-less authentification +Default: yes +Priority: 512 +Auth-Type: Primary +Auth: + sufficient pam_succeed_if.so user ingroup widrop diff --git a/src/pkg/widrop-dnsmasq/DEBIAN/control b/src/pkg/widrop-dnsmasq/DEBIAN/control @@ -0,0 +1,13 @@ +Package: widrop-dnsmasq +Version: 0.1-2011101501 +Section: admin +Priority: optional +Architecture: all +Essential: no +Installed-Size: 0 +Maintainer: Mathieu Goessens <mathieu@breizh-entropy.org> +Conflicts: widrop-isc-dhcp-server, widrop-bind9 +Provides: widrop-dhcp, widrop-dns +Pre-depends: dnsmasq +Description: This is the widrop dnsmasq module. + It provide both a DHCP server and a DNS one diff --git a/src/pkg/widrop-dnsmasq/etc/dnsmasq.d/widrop b/src/pkg/widrop-dnsmasq/etc/dnsmasq.d/widrop @@ -0,0 +1,6 @@ +filterwin2k +no-resolv +interface=wlan0 +no-hosts +dhcp-range=10.42.0.2,10.42.0.254,1h +address=/#/10.42.0.1 diff --git a/src/pkg/widrop-firmwares/DEBIAN/control b/src/pkg/widrop-firmwares/DEBIAN/control @@ -0,0 +1,10 @@ +Package: widrop-firmwares +Version: 0.1-2011101501 +Section: admin +Priority: optional +Architecture: all +Essential: no +Installed-Size: 0 +Depends: firmware-atheros, firmware-brcm80211, firmware-ipw2x00, firmware-iwlwifi, firmware-libertas, firmware-linux, firmware-linux-nonfree, firmware-ralink, firmware-realtek, firmware-b43-installer, atmel-firmware, zd1211-firmware +Maintainer: Mathieu Goessens <mathieu@breizh-entropy.org> +Description: This is the main widrop package. diff --git a/src/pkg/widrop-hostapd/DEBIAN/control b/src/pkg/widrop-hostapd/DEBIAN/control @@ -0,0 +1,12 @@ +Package: widrop-hostapd +Version: 0.1-2011101501 +Section: admin +Priority: optional +Architecture: all +Essential: no +Installed-Size: 0 +Maintainer: Mathieu Goessens <mathieu@breizh-entropy.org> +Provides: widrop-ap +Pre-depends: hostapd +Description: This is the widrop hostapd module. + It provide an Access point. diff --git a/src/pkg/widrop-hostapd/etc/hostapd.conf b/src/pkg/widrop-hostapd/etc/hostapd.conf @@ -0,0 +1,17 @@ +interface=wlan0 +driver=nl80211 +ctrl_interface=/var/run/hostapd +ctrl_interface_group=root +ssid=widrop +country_code=FR +hw_mode=g +dtim_period=2 +channel=6 +beacon_int=100 +supported_rates=10 20 55 110 60 90 120 180 240 360 480 540 +max_num_sta=255 +logger_syslog=1 +logger_syslog_level=2 +logger_stdout=-1 +logger_stdout_level=0 + diff --git a/src/pkg/widrop-iptables/DEBIAN/control b/src/pkg/widrop-iptables/DEBIAN/control @@ -0,0 +1,13 @@ +Package: widrop-iptables +Version: 0.1-2011101501 +Section: admin +Priority: optional +Architecture: all +Essential: no +Depends: widrop-common, iptables +Installed-Size: 0 +Maintainer: Mathieu Goessens <mathieu@breizh-entropy.org> +Provides: widrop-iptables +Pre-depends: iptables +Description: This is the widrop iptables module. + It provide widrop firewall rules. diff --git a/src/pkg/widrop-iptables/etc/iptables.sh b/src/pkg/widrop-iptables/etc/iptables.sh @@ -0,0 +1,5 @@ +#!/bin/sh +echo -n Enabling iptables rules... +iptables -t nat -F PREROUTING +iptables -t nat -A PREROUTING -p tcp -m tcp -s 10.42.0.0/24 ! -d 10.42.0.1 --dport 80 -j REDIRECT --to-port 80 \ +&& echo ok || echo Error diff --git a/src/pkg/widrop-iptables/etc/network/if-up.d/widrop b/src/pkg/widrop-iptables/etc/network/if-up.d/widrop @@ -0,0 +1,2 @@ +#!/bin/sh +/etc/iptables.sh diff --git a/src/pkg/widrop-keyring/DEBIAN/control b/src/pkg/widrop-keyring/DEBIAN/control @@ -0,0 +1,9 @@ +Package: widrop-keyring +Version: 0.1-2011101501 +Section: admin +Priority: optional +Architecture: all +Essential: no +Installed-Size: 0 +Maintainer: Mathieu Goessens <mathieu@breizh-entropy.org> +Description: This is the widrop apt signing key. diff --git a/src/pkg/widrop-lighttpd/DEBIAN/control b/src/pkg/widrop-lighttpd/DEBIAN/control @@ -0,0 +1,13 @@ +Package: widrop-lighttpd +Version: 0.1-2011101501 +Section: admin +Priority: optional +Architecture: all +Essential: no +Installed-Size: 0 +Maintainer: Mathieu Goessens <mathieu@breizh-entropy.org> +Conflicts: widrop-apache2 +Provides: widrop-http +Pre-depends: lighttpd +Description: This is the widrop lighttpd module. + It provide a HTTP server diff --git a/src/pkg/widrop-lighttpd/DEBIAN/postinst b/src/pkg/widrop-lighttpd/DEBIAN/postinst @@ -0,0 +1,14 @@ +#!/bin/bash + +case $1 in + + "configure") + echo Configuring lighttpd for widrop + [[ -f /etc/lighttpd/conf-enabled/00-widrop.conf ]] || ( + lighty-enable-mod widrop + /etc/init.d/lighttpd force-reload + ) + ;; +esac + +exit 0 diff --git a/src/pkg/widrop-lighttpd/etc/lighttpd/conf-available/00-widrop.conf b/src/pkg/widrop-lighttpd/etc/lighttpd/conf-available/00-widrop.conf @@ -0,0 +1,31 @@ +# +# HACK: as we cannot change the document root, we rewrite every url to use a vhost +# +server.modules += ( "mod_rewrite" ) + +$HTTP["host"] != "widrop" { + url.redirect = ( + "" => "http://widrop/" + ) +} + +$HTTP["host"] =~ "widrop" { + server.document-root = "/home/widrop" +} + +# +# Widrop specific conf +# + +# Redirect 404 to the home +server.error-handler-404 = "/" + +# Activate directory listing +dir-listing.encoding = "utf-8" +server.dir-listing = "enable" +dir-listing.show-readme="enable" +dir-listing.show-header="enable" +dir-listing.hide-dotfiles = "enable" +#dir-listing.external-css = "path" + + diff --git a/src/pkg/widrop-pureftpd/DEBIAN/control b/src/pkg/widrop-pureftpd/DEBIAN/control @@ -0,0 +1,13 @@ +Package: widrop-pureftpd +Version: 0.1-2011101501 +Section: admin +Priority: optional +Architecture: all +Essential: no +Depends: widrop-common, pure-ftpd +Installed-Size: 0 +Maintainer: Mathieu Goessens <mathieu@breizh-entropy.org> +Provides: widrop-ftp +Pre-depends: pure-ftpd +Description: This is the widrop pure-ftpd module. + It provides the widrop FTP server. diff --git a/src/pkg/widrop/DEBIAN/config b/src/pkg/widrop/DEBIAN/config @@ -0,0 +1,23 @@ +#!/bin/sh +set -e +. /usr/share/debconf/confmodule + +random_ssid=$(head -c 3 /dev/urandom |hexdump -e '"%x"') +db_set ssid "Widrop_$random_ssid" +db_input high ssid || true +db_go || true + +while [ -z $random_chan ] || [ $random_chan -lt 1 ] || [ $random_chan -gt 11 ]; do + random_chan=$( expr $(dd if=/dev/urandom count=1 2> /dev/null | cksum | cut -f1 -d" ") % 11 + 1 ) + db_set channel $random_chan + db_input high channel || true + db_go || true + db_get channel || true + random_chan=$RET; +done + +db_set interface "wlan0" +db_input high interface || true +db_go || true + +exit 0 diff --git a/src/pkg/widrop/DEBIAN/control b/src/pkg/widrop/DEBIAN/control @@ -0,0 +1,11 @@ +Package: widrop +Version: 0.1-2011101501 +Section: admin +Priority: optional +Architecture: all +Essential: no +Installed-Size: 0 +Depends: widrop-ap, widrop-ftp, widrop-http, widrop-dns, widrop-dhcp, widrop-iptables, widrop-interfaces, widrop-user +Suggests: widrop-firmwares +Maintainer: Mathieu Goessens <mathieu@breizh-entropy.org> +Description: This is the main widrop package. diff --git a/src/pkg/widrop/DEBIAN/postinst b/src/pkg/widrop/DEBIAN/postinst @@ -0,0 +1,5 @@ +#!/bin/sh +set -e +. /usr/share/debconf/confmodule + +exit 0 diff --git a/src/pkg/widrop/DEBIAN/templates b/src/pkg/widrop/DEBIAN/templates @@ -0,0 +1,17 @@ +Template: ssid +Type: string +Default: Widrop +Description: The SSID used by widrop. + This is the name of the SSID used by widrop. + +Template: channel +Type: string +default: 11 +Description: The channel used by widrop. + This is the channel used by widrop. Need to be between 1 and 11. + +Template: interface +Type: string +default: wlan0 +Description: The network interface used by widrop. + This is the network interface used by widrop.