
This is a work-around for https://bugs.launchpad.net/bugs/1675479, where namespace packages aren't installed correctly. Change-Id: Ie4b8898ad79a6958bdd58dccdc668441848bff78
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
name: neutron
|
|
version: ocata
|
|
summary: OpenStack Network Service (neutron)
|
|
description: OpenStack Network Service (neutron)
|
|
confinement: classic
|
|
grade: devel
|
|
|
|
environment:
|
|
PATH: $PATH:$SNAP/bin
|
|
|
|
apps:
|
|
api:
|
|
command: snap-openstack neutron-server
|
|
daemon: simple
|
|
manage:
|
|
command: snap-openstack neutron-db-manage
|
|
|
|
parts:
|
|
neutron:
|
|
plugin: python
|
|
python-version: python2
|
|
source: http://tarballs.openstack.org/neutron/neutron-master.tar.gz
|
|
python-packages:
|
|
- pymysql
|
|
- python-memcached
|
|
- git+https://github.com/openstack/snap.openstack#egg=snap.openstack
|
|
constraints: https://raw.githubusercontent.com/openstack/requirements/master/upper-constraints.txt
|
|
build-packages:
|
|
- gcc
|
|
- libffi-dev
|
|
- libssl-dev
|
|
install:
|
|
touch $SNAPCRAFT_PART_INSTALL/lib/python2.7/site-packages/paste/__init__.py
|
|
touch $SNAPCRAFT_PART_INSTALL/lib/python2.7/site-packages/repoze/__init__.py
|
|
templates:
|
|
after: [neutron]
|
|
plugin: dump
|
|
source: snap
|
|
# TODO: replace below with scriplets once implemented in snapcraft
|
|
config:
|
|
after: [neutron]
|
|
plugin: dump
|
|
source: http://tarballs.openstack.org/neutron/neutron-master.tar.gz
|
|
organize:
|
|
etc/*.conf: etc/neutron/
|
|
etc/*.ini: etc/neutron/
|
|
etc/*.json: etc/neutron/
|
|
etc/rootwrap.d/*: etc/neutron/rootwrap.d/
|
|
filesets:
|
|
etc:
|
|
- etc/neutron/*
|
|
stage: [$etc]
|
|
snap: [$etc]
|