forked from eclipse-zenoh/zenoh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gen_zenoh_deb.sh
executable file
·48 lines (41 loc) · 1.69 KB
/
gen_zenoh_deb.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
# Copyright (c) 2023 ZettaScale Technology
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
#
# Contributors:
# ZettaScale Zenoh Team, <[email protected]>
#
# Script generating the "zenoh" top-level Debian package
if [ -z "$1" -o -z "$2" ]; then
echo "Usage: $0 VERSION ARCH"
echo " example: $0 0.5.0-beta.9 amd64"
exit 1
fi
VERSION=`echo $1`
ARCH=$2
PACKAGE_NAME="zenoh_${VERSION}_${ARCH}"
CONTROL_FILE="${PACKAGE_NAME}/DEBIAN/control"
echo "Generate zenoh top-level package: ${PACKAGE_NAME}.deb ..."
# create control file for zenoh deb package
mkdir -p ${PACKAGE_NAME}/DEBIAN
echo "Package: zenoh " > ${CONTROL_FILE}
echo "Version: ${VERSION} " >> ${CONTROL_FILE}
echo "Architecture: ${ARCH}" >> ${CONTROL_FILE}
echo "Vcs-Browser: https://github.com/eclipse-zenoh/zenoh" >> ${CONTROL_FILE}
echo "Vcs-Git: https://github.com/eclipse-zenoh/zenoh" >> ${CONTROL_FILE}
echo "Homepage: http://zenoh.io" >> ${CONTROL_FILE}
echo "Section: net " >> ${CONTROL_FILE}
echo "Priority: optional" >> ${CONTROL_FILE}
echo "Essential: no" >> ${CONTROL_FILE}
echo "Installed-Size: 1024 " >> ${CONTROL_FILE}
echo "Depends: zenohd (=${VERSION}), zenoh-plugin-rest (=${VERSION}), zenoh-plugin-storage-manager (=${VERSION}) " >> ${CONTROL_FILE}
echo "Maintainer: [email protected] " >> ${CONTROL_FILE}
echo "Description: The zenoh top-level package" >> ${CONTROL_FILE}
echo "" >> ${CONTROL_FILE}
dpkg-deb --build ${PACKAGE_NAME}