diff options
author | 2016-11-24 08:47:48 +0000 | |
---|---|---|
committer | 2016-11-24 08:47:48 +0000 | |
commit | 36f5cffcf373a8a12677c8e406cd11c8d9ffe2bb (patch) | |
tree | a20455421b7bdf19890032ce4da74ceee3a46762 /repo/openstack/make_ppa/ubuntu/trusty/juno | |
parent | 2446530c3230221d76877851012eb39e2a7c0360 (diff) | |
parent | 35086233fdfb4163c589fc258229a931bb02df1a (diff) |
Merge "Create make_repo directory and optimize the current repo making related script"
Diffstat (limited to 'repo/openstack/make_ppa/ubuntu/trusty/juno')
-rw-r--r-- | repo/openstack/make_ppa/ubuntu/trusty/juno/download_pkg.tmpl | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/repo/openstack/make_ppa/ubuntu/trusty/juno/download_pkg.tmpl b/repo/openstack/make_ppa/ubuntu/trusty/juno/download_pkg.tmpl new file mode 100644 index 00000000..95375693 --- /dev/null +++ b/repo/openstack/make_ppa/ubuntu/trusty/juno/download_pkg.tmpl @@ -0,0 +1,50 @@ +#!/bin/bash +set -ex + +#set OPV="juno" + +sudo apt-get update && apt-get install -y software-properties-common +sudo add-apt-repository -y cloud-archive:$OPV + +# 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 + +cd /var/cache/apt/ +sudo apt-get download libexpat1 +cd - + +#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-$OPV-ppa/conf +cat <<EOF > trusty-$OPV-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-$OPV-ppa includedeb trusty deb/*.deb + +tar -zcvf /trusty-$OPV-ppa.tar.gz ./trusty-$OPV-ppa |