summaryrefslogtreecommitdiffstats
path: root/build/templates/Debian_kilo.tmpl
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2016-11-02 18:09:35 +0800
committerYifei Xue <xueyifei@huawei.com>2016-11-17 15:24:46 +0800
commit35086233fdfb4163c589fc258229a931bb02df1a (patch)
tree7732c2e11fc4964ccaa65c74242386c4743a7edb /build/templates/Debian_kilo.tmpl
parentb15421ac53b8f57011613e29505cd8c0275b5066 (diff)
Create make_repo directory and optimize the current repo making related script
JIRA: COMPASS-496 Change-Id: I662d996382d38a3e9d0de6598dabe403b9d51665 Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'build/templates/Debian_kilo.tmpl')
-rw-r--r--build/templates/Debian_kilo.tmpl48
1 files changed, 0 insertions, 48 deletions
diff --git a/build/templates/Debian_kilo.tmpl b/build/templates/Debian_kilo.tmpl
deleted file mode 100644
index 18c7fa00..00000000
--- a/build/templates/Debian_kilo.tmpl
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/bash
-set -ex
-
-#set OPV="kilo"
-
-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 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