From c38253f08f30fceb3c326daf0e2c59dbde9798e2 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Wed, 11 Feb 2015 17:14:31 +0100 Subject: [PATCH] Added initial Debian folder. Rewritten-From: e176d422a03371c3bf26e93b2d49c3d749197ec0 --- trusty/debian/changelog | 5 ++ trusty/debian/compat | 1 + trusty/debian/control | 100 ++++++++++++++++++++++ trusty/debian/copyright | 28 ++++++ trusty/debian/gbp.conf | 8 ++ trusty/debian/neutron-lbaas-agent.init.in | 23 +++++ trusty/debian/neutron-lbaas.install | 1 + trusty/debian/rules | 48 +++++++++++ trusty/debian/source/format | 1 + 9 files changed, 215 insertions(+) create mode 100644 trusty/debian/changelog create mode 100644 trusty/debian/compat create mode 100644 trusty/debian/control create mode 100644 trusty/debian/copyright create mode 100644 trusty/debian/gbp.conf create mode 100644 trusty/debian/neutron-lbaas-agent.init.in create mode 100644 trusty/debian/neutron-lbaas.install create mode 100755 trusty/debian/rules create mode 100644 trusty/debian/source/format diff --git a/trusty/debian/changelog b/trusty/debian/changelog new file mode 100644 index 0000000..483dbcc --- /dev/null +++ b/trusty/debian/changelog @@ -0,0 +1,5 @@ +neutron-lbaas (2015.1~b2-1) UNRELEASED; urgency=low + + * Initial release. (Closes: #777755) + + -- Thomas Goirand Wed, 11 Feb 2015 17:13:58 +0100 diff --git a/trusty/debian/compat b/trusty/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/trusty/debian/compat @@ -0,0 +1 @@ +9 diff --git a/trusty/debian/control b/trusty/debian/control new file mode 100644 index 0000000..f4cea9f --- /dev/null +++ b/trusty/debian/control @@ -0,0 +1,100 @@ +Source: neutron-lbass +Section: net +Priority: optional +Maintainer: PKG OpenStack +Uploaders: Thomas Goirand +Build-Depends: debhelper (>= 9), + dh-python, + dh-systemd, + openstack-pkg-tools (>= 22~), + po-debconf, + python-all (>= 2.6), + python-pbr (>= 0.6), + python-sphinx (>= 1.2.1) +Build-Depends-Indep: alembic (>= 0.7.2), + python-cliff (>= 1.7.0), + python-coverage (>= 3.6), + python-eventlet (>= 0.16.1), + python-fixtures (>= 0.3.14), + python-hacking, + python-mock (>= 1.0), + python-mysqldb, + python-netaddr (>= 0.7.12), + python-neutron, + python-openssl, + python-oslo.concurrency (>= 1.4.1), + python-oslo.config (>= 1.6.0), + python-oslo.db (>= 1.4.1), + python-oslo.messaging (>= 1.6.0), + python-oslo.serialization (>= 1.2.0), + python-oslo.utils (>= 1.2.0), + python-oslosphinx (>= 2.2.0.0), + python-oslotest (>= 1.2.0), + python-pbr, + python-psycopg2, + python-pyasn1, + python-pyasn1-modules, + python-requests (>= 2.2.0), + python-requests-mock (>= 0.5.1), + python-six (>= 1.7.0), + python-sqlalchemy (>= 0.9.7), + python-testscenarios (>= 0.4), + python-testtools (>= 0.9.36), + python-webob (>= 1.2.3), + python-webtest (>= 2.0), + subunit (>= 0.0.18), + testrepository (>= 0.0.18) +Standards-Version: 3.9.6 +Homepage: http://github.com/openstack/neutron-lbaas +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/neutron-lbaas.git;a=summary +Vcs-Git: git://anonscm.debian.org/openstack/neutron-lbaas.git + +Package: python-neutron-lbass +Architecture: all +Section: python +Pre-Depends: dpkg (>= 1.15.6~) +Depends: alembic (>= 0.7.2), + python-eventlet (>= 0.16.1), + python-netaddr (>= 0.7.12), + python-neutron, + python-openssl, + python-oslo.config (>= 1.6.0), + python-oslo.db (>= 1.4.1), + python-oslo.messaging (>= 1.6.0), + python-oslo.serialization (>= 1.2.0), + python-oslo.utils (>= 1.2.0), + python-pbr, + python-pyasn1, + python-pyasn1-modules, + python-requests (>= 2.2.0), + python-six (>= 1.7.0), + python-sqlalchemy (>= 0.9.7), + ${misc:Depends}, + ${python:Depends} +Recommends: iputils-arping +Provides: ${python:Provides} +Description: OpenStack virtual network service - Python library + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the Python library. + +Package: neutron-lbass-agent +Architecture: all +Pre-Depends: dpkg (>= 1.15.6~) +Depends: adduser, + debconf, + lsb-base, + neutron-common (= ${source:Version}), + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Description: OpenStack virtual network service - lbass agent + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the LBaaS agent. diff --git a/trusty/debian/copyright b/trusty/debian/copyright new file mode 100644 index 0000000..d73d826 --- /dev/null +++ b/trusty/debian/copyright @@ -0,0 +1,28 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Neutron LBaaS +Source: git://github.com/openstack/neutron-lbaas.git + +Files: debian/* +Copyright: 2012-2013, Thomas Goirand +License: Apache-2.0 + +Files: * +Copyright: (c) 2011-2012, OpenStack, LLC. + (c) 2013-2014, The OpenStack Foundation +License: Apache-2.0 + +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian-based systems the full text of the Apache version 2.0 license + can be found in `/usr/share/common-licenses/Apache-2.0'. diff --git a/trusty/debian/gbp.conf b/trusty/debian/gbp.conf new file mode 100644 index 0000000..a281224 --- /dev/null +++ b/trusty/debian/gbp.conf @@ -0,0 +1,8 @@ +[DEFAULT] +upstream-branch = master +debian-branch = debian/kilo +upstream-tag = %(version)s +compression = xz + +[git-buildpackage] +export-dir = ../build-area/ diff --git a/trusty/debian/neutron-lbaas-agent.init.in b/trusty/debian/neutron-lbaas-agent.init.in new file mode 100644 index 0000000..cad5a1d --- /dev/null +++ b/trusty/debian/neutron-lbaas-agent.init.in @@ -0,0 +1,23 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: neutron-lbaas-agent +# Required-Start: $network $local_fs $remote_fs $syslog +# Required-Stop: $remote_fs +# Should-Start: mysql postgresql rabbitmq-server keystone +# Should-Stop: mysql postgresql rabbitmq-server keystone +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Neutron LBaaS agent +# Description: Provide LBaaS agent for neutron +### END INIT INFO + +# Author: Thomas Goirand + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/sbin:/usr/sbin:/bin:/usr/bin +DESC="OpenStack Neutron LBaaS agent" +PROJECT_NAME=neutron +NAME=${PROJECT_NAME}-lbaas-agent +# --config-file=/etc/neutron/neutron.conf will be happened +# to DAEMON_ARGS later by openstack-pkg-tools +DAEMON_ARGS="--config-file=/etc/neutron/lbaas_agent.ini" diff --git a/trusty/debian/neutron-lbaas.install b/trusty/debian/neutron-lbaas.install new file mode 100644 index 0000000..5745554 --- /dev/null +++ b/trusty/debian/neutron-lbaas.install @@ -0,0 +1 @@ +etc/neutron/rootwrap.d/lbaas-haproxy.filters diff --git a/trusty/debian/rules b/trusty/debian/rules new file mode 100755 index 0000000..c2ce9da --- /dev/null +++ b/trusty/debian/rules @@ -0,0 +1,48 @@ +#!/usr/bin/make -f + +include /usr/share/openstack-pkg-tools/pkgos.make +export OSLO_PACKAGE_VERSION=$(VERSION) + +UPSTREAM_GIT = git://github.com/openstack/neutron-lbaas.git + +PYTHONS:=$(shell pyversions -vr) + +%: + dh $@ --buildsystem=python_distutils --with python2,systemd + +override_dh_install: + dh_install -O--buildsystem=python_distutils + install -D -m 0644 etc/neutron_lbaas.conf $(CURDIR)/debian/neutron-lbass/etc/neutron/neutron_lbaas.conf + +override_dh_auto_test: +ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) + echo "===> Running tests" + set -e ; for i in 2.7 ; do \ + PYMAJOR=`echo $$i | cut -d'.' -f1` ; \ + echo "===> Testing with python$$i (python$$PYMAJOR)" ; \ + rm -rf .testrepository ; \ + testr-python$$PYMAJOR init ; \ + TEMP_REZ=`mktemp -t` ; \ + PYTHONPATH=$(CURDIR) PYTHON=python$$i testr-python$$PYMAJOR run --subunit | tee $$TEMP_REZ | subunit2pyunit ; \ + cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats ; \ + rm -f $$TEMP_REZ ; \ + testr-python$$PYMAJOR slowest ; \ + done +endif + +override_dh_auto_clean: + dh_auto_clean + rm -f debian/*.init debian/*.service debian/*.upstart + +override_dh_clean: + dh_clean + find . -type f -name "*.pyc" -delete + rm -rf build + +# Commands not to run +override_dh_installcatalogs: +override_dh_installemacsen override_dh_installifupdown: +override_dh_installinfo override_dh_installmenu override_dh_installmime: +override_dh_installmodules override_dh_installlogcheck: +override_dh_installpam override_dh_installppp override_dh_installudev override_dh_installwm: +override_dh_installxfonts override_dh_gconf override_dh_icons override_dh_perl override_dh_usrlocal: diff --git a/trusty/debian/source/format b/trusty/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/trusty/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) -- 2.45.2