4 # $2 - $1/debian - just configurable for reuse
5 # $3 - service definition file
6 # $4 - service definition target during install
8 VERSION=$(${SOURCE_DIR}/../../rpm/version)
9 RELEASE=$(${SOURCE_DIR}/../../rpm/release)
10 BUILD_DIR=${SOURCE_DIR}/honeycomb-${VERSION}
12 # Copy and unpack the archive with vpp-integration distribution
13 ARCHIVE_DIR=${SOURCE_DIR}/../../../vpp-integration/minimal-distribution/target/
14 ARCHIVE=${ARCHIVE_DIR}/vpp-integration-distribution-1.16.12-SNAPSHOT-hc.tar.gz
15 cp ${ARCHIVE} ${SOURCE_DIR}
16 ARCHIVE=${SOURCE_DIR}/vpp-integration-distribution-${VERSION}-SNAPSHOT-hc.tar.gz
17 tar -xf ${ARCHIVE} -C ${SOURCE_DIR}/
19 # Create packaging root
23 # Copy contents of tar.gz
24 mv ${SOURCE_DIR}/vpp-integration-distribution-${VERSION}-SNAPSHOT/ ${BUILD_DIR}/
27 # OS service definition
28 cp ${SOURCE_DIR}/$3 ${BUILD_DIR}
31 cat <<EOT >> ${BUILD_DIR}/debian/changelog
32 honeycomb (${VERSION}-${RELEASE}) unstable; urgency=low
36 -- mmarsale <mmarsale@cisco.com> Mon, 22 Aug 2016 09:41:37 +0200
39 # Install instructions
40 cat <<EOT >> ${BUILD_DIR}/debian/install
41 vpp-integration-distribution-${VERSION}-SNAPSHOT/* /opt/honeycomb/