diff --git a/build/debian/contrail-puppet/debian/changelog.in b/build/debian/contrail-puppet/debian/changelog.in new file mode 100755 index 00000000..db1bbb94 --- /dev/null +++ b/build/debian/contrail-puppet/debian/changelog.in @@ -0,0 +1,6 @@ +contrail-puppet (BUILDTAG) npchandran; urgency=low + + [npchandran] + * Introducing the Package + + -- npchandran Mon, 26 Oct 2015 8:00:11 +0800 diff --git a/build/debian/contrail-puppet/debian/compat b/build/debian/contrail-puppet/debian/compat new file mode 100755 index 00000000..45a4fb75 --- /dev/null +++ b/build/debian/contrail-puppet/debian/compat @@ -0,0 +1 @@ +8 diff --git a/build/debian/contrail-puppet/debian/control b/build/debian/contrail-puppet/debian/control new file mode 100755 index 00000000..7a58bdb4 --- /dev/null +++ b/build/debian/contrail-puppet/debian/control @@ -0,0 +1,14 @@ +Source: contrail-puppet +Maintainer: npchandran +Section: misc +Priority: optional +Standards-Version: 1.0 +Build-Depends: debhelper (>= 8) + +Package: contrail-puppet +Architecture: all +Maintainer: npchandran +Depends: +Section: contrail-puppet +Priority: extra +Description: Contrail Puppet code for Server Manager diff --git a/build/debian/contrail-puppet/debian/copyright b/build/debian/contrail-puppet/debian/copyright new file mode 100755 index 00000000..c74e8df4 --- /dev/null +++ b/build/debian/contrail-puppet/debian/copyright @@ -0,0 +1,5 @@ +Name: contrail-puppet +Maintainer: npchandran +License: Commercial +Files: * + Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. diff --git a/build/debian/contrail-puppet/debian/rules b/build/debian/contrail-puppet/debian/rules new file mode 100755 index 00000000..021b0524 --- /dev/null +++ b/build/debian/contrail-puppet/debian/rules @@ -0,0 +1,50 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 +SPEC_DIR := $(shell pwd) +SB_TOP := $(shell pwd | sed -re "s/(.*)\/build\/debian(.*)/\1/") +export DISTRIB_RELEASE = $(shell grep -Po "DISTRIB_RELEASE=\K.*" /etc/lsb-release) + +export BUILDTIME := $(shell date -u +%y%m%d%H%M) +export buildroot := $(SB_TOP)/build/debian/contrail-puppet/debian/build/ +export _contrailopt := /opt/contrail + +SRC_VER := $(shell cat $(SB_TOP)/controller/src/base/version.info) + +BUILDTAG = +TGZ_FILE = +ifdef TAG +BUILDTAG = $(SRC_VER)-$(TAG) +else +BUILDTAG = $(SRC_VER)-$(BUILDTIME) +endif + +%: + dh $@ --tmpdir=$(buildroot) --destdir=$(SB_TOP)/build/debian + +override_dh_auto_build: + cat debian/changelog.in | sed 's,BUILDTAG,$(BUILDTAG),g' > debian/changelog + +override_dh_builddeb: + dh_builddeb -- -Zgzip + +override_dh_auto_install: + # Setup directories + @echo "making deb for contrail-puppet" + install -d -m 755 $(buildroot) + install -d -m 755 $(buildroot)$(_contrailopt) + install -d -m 755 $(buildroot)$(_contrailopt)/puppet + # Install puppet manifests + tar -cvzf $(SB_TOP)/build/contrail-puppet-manifest.tgz -C $(SB_TOP)/tools/puppet . + install -p -m 755 $(SB_TOP)/build/contrail-puppet-manifest.tgz $(buildroot)$(_contrailopt)/puppet/contrail-puppet-manifest.tgz + +override_dh_shlibdeps: + +override_dh_usrlocal: +