############################################################
#
# ONLP Package Build Template
#
# Requires: ARCH, TOOLCHAIN
#
############################################################
variables:
  libdir: /lib/${TOOLCHAIN}
  bindir: /bin

common:
  arch: $ARCH
  version: 1.0.0
  copyright: Copyright 2013, 2014, 2015 Big Switch Networks
  maintainer: support@bigswitch.com
  support: opennetworklinux@googlegroups.com

packages:
  - name: onlp
    version: 1.0.0
    summary: Open Network Linux Platform Infrastructure

    files:
      builds/onlp/$BUILD_DIR/${TOOLCHAIN}/bin/libonlp.so : $libdir/
      builds/onlp-platform/$BUILD_DIR/${TOOLCHAIN}/bin/libonlp-platform.so : $libdir/
      builds/onlp-platform-defaults/$BUILD_DIR/${TOOLCHAIN}/bin/libonlp-platform-defaults.so : $libdir/
      builds/onlpd/$BUILD_DIR/${TOOLCHAIN}/bin/onlpd : $bindir/
      ${ONL}/packages/base/any/onlp/src/onlpdump.py: $bindir/
      ${ONL}/packages/base/any/onlp/src/onlp/module/python/onlp/__init__.py: ${PY_INSTALL}/onlp/
      ${ONL}/packages/base/any/onlp/src/onlp/module/python/onlp/onlp: ${PY_INSTALL}/onlp/onlp
      ${ONL}/packages/base/any/onlp/src/onlp/module/python/onlp/test: ${PY_INSTALL}/onlp/test
      ${ONL}/packages/base/any/onlp/src/onlplib/module/python/onlp/onlplib: ${PY_INSTALL}/onlp/onlplib
      ${ONL}/sm/bigcode/modules/sff/module/python/sff: ${PY_INSTALL}/onlp/sff

    init: $ONL/packages/base/any/onlp/src/onlpd.init

    changelog:  Change changes changes.,
    asr: True
