123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #!/bin/sh
- #
- # .---. . .
- # | | |
- # |--- .--. .-. .-. .-.| .-. .--.--. |.-. .-. .--. .-.
- # | | (.-' (.-' ( | ( )| | | | )( )| | (.-'
- # ' ' --' --' -' - -' ' ' -' -' -' ' - --'
- #
- # Freedom in the Cloud
- #
- # Apply patches to vmdebootstrap. Based on a script from freedom-maker
- #
- # License
- # =======
- #
- # This program is free software: you can redistribute it and/or modify
- # it under the terms of the GNU Affero General Public License as published by
- # the Free Software Foundation, either version 3 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 Affero General Public License for more details.
- #
- # You should have received a copy of the GNU Affero General Public License
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
-
- PROJECT_NAME='freedombone'
-
- export TEXTDOMAIN=${PROJECT_NAME}-image-vmdebootstrap
- export TEXTDOMAINDIR="/usr/share/locale"
-
- mkdir -p vendor
- if [ -d vendor/vmdebootstrap ] ; then
- (cd vendor/vmdebootstrap; git checkout .; git pull)
- else
- git clone git://git.liw.fi/vmdebootstrap vendor/vmdebootstrap
- fi
-
- if [ ! -d /usr/share/distro-info ]; then
- sudo mkdir -p /usr/share/distro-info
-
- cat <<EOF > /tmp/debian.csv
- version,codename,series,created,release,eol
- 1.1,Buzz,buzz,1993-08-16,1996-06-17,1997-06-05
- 1.2,Rex,rex,1996-06-17,1996-12-12,1998-06-05
- 1.3,Bo,bo,1996-12-12,1997-06-05,1999-03-09
- 2.0,Hamm,hamm,1997-06-05,1998-07-24,2000-03-09
- 2.1,Slink,slink,1998-07-24,1999-03-09,2000-10-30
- 2.2,Potato,potato,1999-03-09,2000-08-15,2003-07-30
- 3.0,Woody,woody,2000-08-15,2002-07-19,2006-06-30
- 3.1,Sarge,sarge,2002-07-19,2005-06-06,2008-03-30
- 4.0,Etch,etch,2005-06-06,2007-04-08,2010-02-15
- 5.0,Lenny,lenny,2007-04-08,2009-02-14,2012-02-06
- 6.0,Squeeze,squeeze,2009-02-14,2011-02-06,2014-05-31
- 7,Wheezy,wheezy,2011-02-06,2013-05-04
- 8,Jessie,jessie,2013-05-04,2015-04-25
- 9,Stretch,stretch,2015-04-25
- 10,Buster,buster,2018-07-01
- ,Sid,sid,1993-08-16
- ,Experimental,experimental,1993-08-16
- EOF
- sudo mv /tmp/debian.csv /usr/share/distro-info/
- fi
-
- cd vendor/vmdebootstrap
- git checkout tags/vmdebootstrap-0.8 -b tags/vmdebootstrap-0.8
- for f in ../../vendor-patches/vmdebootstrap/* ; do
- echo applying $(basename $f)
- patch -p1 < $f
- done
|