From 6ee01fd27fcd4af82cfcdbe77646dd1a83df12f2 Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Tue, 11 Oct 2016 17:04:57 +0200 Subject: HONEYCOMB-217 Ubuntu16 (systemd) specific packaging Change-Id: Id1c962412194dd809e68f27d7e62b5ab36378be3 Signed-off-by: Maros Marsalek --- packaging/deb/trusty/debian/compat | 1 + packaging/deb/trusty/debian/control | 14 ++++++++++++++ packaging/deb/trusty/debian/copyright | 23 ++++++++++++++++++++++ packaging/deb/trusty/debian/rules | 32 +++++++++++++++++++++++++++++++ packaging/deb/trusty/debian/source/format | 1 + packaging/deb/trusty/debuild.sh | 7 +++++++ packaging/deb/trusty/honeycomb.conf | 8 ++++++++ 7 files changed, 86 insertions(+) create mode 100644 packaging/deb/trusty/debian/compat create mode 100644 packaging/deb/trusty/debian/control create mode 100644 packaging/deb/trusty/debian/copyright create mode 100755 packaging/deb/trusty/debian/rules create mode 100644 packaging/deb/trusty/debian/source/format create mode 100755 packaging/deb/trusty/debuild.sh create mode 100644 packaging/deb/trusty/honeycomb.conf (limited to 'packaging/deb/trusty') diff --git a/packaging/deb/trusty/debian/compat b/packaging/deb/trusty/debian/compat new file mode 100644 index 000000000..ec635144f --- /dev/null +++ b/packaging/deb/trusty/debian/compat @@ -0,0 +1 @@ +9 diff --git a/packaging/deb/trusty/debian/control b/packaging/deb/trusty/debian/control new file mode 100644 index 000000000..16814efa4 --- /dev/null +++ b/packaging/deb/trusty/debian/control @@ -0,0 +1,14 @@ +Source: honeycomb +Section: misc +Priority: optional +Maintainer: fd.io/honeycomb +Build-Depends: debhelper (>= 9) +Standards-Version: 3.9.6 +Homepage: https://wiki.fd.io/view/Honeycomb +Vcs-Browser: https://git.fd.io/cgit/honeycomb/tree/ + +Package: honeycomb +Architecture: all +Depends: vpp, openjdk-8-jdk | openjdk-8-jre +Suggests: vpp-nsh-plugin +Description: Honeycomb agent for VPP diff --git a/packaging/deb/trusty/debian/copyright b/packaging/deb/trusty/debian/copyright new file mode 100644 index 000000000..ad3a88c26 --- /dev/null +++ b/packaging/deb/trusty/debian/copyright @@ -0,0 +1,23 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: honeycomb +Source: https://git.fd.io/cgit/honeycomb/tree/ + +Files: * +Copyright: 2016 Cisco and/or its affiliates +License: Apache-2.0 + Copyright (c) 2016 Cisco and/or its affiliates. + . + 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 systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/Apache-2.0". diff --git a/packaging/deb/trusty/debian/rules b/packaging/deb/trusty/debian/rules new file mode 100755 index 000000000..5c1cebc20 --- /dev/null +++ b/packaging/deb/trusty/debian/rules @@ -0,0 +1,32 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + +# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +# main packaging script based on dh7 syntax +%: + dh $@ + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- \ +# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) + + + + diff --git a/packaging/deb/trusty/debian/source/format b/packaging/deb/trusty/debian/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/packaging/deb/trusty/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/packaging/deb/trusty/debuild.sh b/packaging/deb/trusty/debuild.sh new file mode 100755 index 000000000..84c38ae30 --- /dev/null +++ b/packaging/deb/trusty/debuild.sh @@ -0,0 +1,7 @@ +#!/bin/bash +set -xe +DIR=$(dirname $0) +DIR=$(readlink -f ${DIR}) + +BUILD_FOLDER=$(${DIR}/../common/prepare.sh ${DIR} ${DIR}/debian honeycomb.conf /etc/init/) +${DIR}/../common/debuild.sh ${BUILD_FOLDER} \ No newline at end of file diff --git a/packaging/deb/trusty/honeycomb.conf b/packaging/deb/trusty/honeycomb.conf new file mode 100644 index 000000000..e9c7fb932 --- /dev/null +++ b/packaging/deb/trusty/honeycomb.conf @@ -0,0 +1,8 @@ +description "honeycomb agent for VPP" +author "fd.io/honeycomb " + +manual + +script + exec /opt/honeycomb/honeycomb +end script \ No newline at end of file -- cgit 1.2.3-korg