summaryrefslogtreecommitdiffstats
path: root/build/templates/Debian_juno.tmpl
blob: 2f88cb2e1880a54f04542d3c9309f77373980280 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
set -ex

# add openstack juno repo
sudo apt-get update && apt-get install -y software-properties-common
sudo add-apt-repository -y cloud-archive:juno

# add galeracluster repo
#sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
#sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu trusty main'
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 D669017EBC19DDBA
sudo add-apt-repository 'deb http://releases.galeracluster.com/ubuntu trusty main'
# add oracle java8 ppa
sudo add-apt-repository ppa:webupd8team/java
# add open java7 repo
sudo add-apt-repository 'deb http://security.ubuntu.com/ubuntu trusty-security main'

sudo apt-get update

sudo apt-get install reprepro -y

#download packages
#set packages = $getVar('default_packages', [])
#for pkg in $packages
sudo apt-get -d install $pkg -y
#end for
#set packages = $getVar('packages', [])
#for pkg in $packages
sudo apt-get -d install $pkg -y
#end for

#make repo
mkdir -p trusty-juno-ppa/conf
cat <<EOF > trusty-juno-ppa/conf/distributions
Codename: trusty
Components: main
Architectures: amd64
EOF

mkdir deb
find /var/cache/apt/ -name *.deb | xargs -i cp {} deb

reprepro -b trusty-juno-ppa includedeb trusty deb/*.deb

tar -zcvf /trusty-juno-ppa.tar.gz ./trusty-juno-ppa