diff --git a/gen_zenoh_deb.sh b/gen_zenoh_deb.sh deleted file mode 100755 index 01db379b52..0000000000 --- a/gen_zenoh_deb.sh +++ /dev/null @@ -1,50 +0,0 @@ - -# -# 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, -# - -# 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 - -# NOTE: cargo-deb v2.0.0 and later will add a "-1" suffix to the version for -# compliance with Debian's packaging standard. -VERSION="$1-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: zenoh-dev@eclipse.org " >> ${CONTROL_FILE} -echo "Description: The zenoh top-level package" >> ${CONTROL_FILE} -echo "" >> ${CONTROL_FILE} - -dpkg-deb --build ${PACKAGE_NAME} diff --git a/plugins/zenoh-plugin-rest/Cargo.toml b/plugins/zenoh-plugin-rest/Cargo.toml index 616b5a5b67..fe4a19be0d 100644 --- a/plugins/zenoh-plugin-rest/Cargo.toml +++ b/plugins/zenoh-plugin-rest/Cargo.toml @@ -66,7 +66,7 @@ path = "examples/z_serve_sse.rs" [package.metadata.deb] name = "zenoh-plugin-rest" maintainer = "zenoh-dev@eclipse.org" -copyright = "2022 ZettaScale Technology" +copyright = "2024 ZettaScale Technology" section = "net" license-file = ["../../LICENSE", "0"] -depends = "zenohd (=0.11.0-dev)" +depends = "zenohd (=0.11.0-dev-1)" diff --git a/plugins/zenoh-plugin-storage-manager/Cargo.toml b/plugins/zenoh-plugin-storage-manager/Cargo.toml index ce56e18d0e..dc33767dec 100644 --- a/plugins/zenoh-plugin-storage-manager/Cargo.toml +++ b/plugins/zenoh-plugin-storage-manager/Cargo.toml @@ -47,7 +47,7 @@ log = { workspace = true } serde = { workspace = true, features = ["default"] } serde_json = { workspace = true } urlencoding = { workspace = true } -zenoh = { workspace = true, features = [ "unstable" ] } +zenoh = { workspace = true, features = ["unstable"] } zenoh-collections = { workspace = true } zenoh-core = { workspace = true } zenoh-keyexpr = { workspace = true } @@ -70,7 +70,7 @@ async-global-executor = { workspace = true } [package.metadata.deb] name = "zenoh-plugin-storage-manager" maintainer = "zenoh-dev@eclipse.org" -copyright = "2022 ZettaScale Technology" +copyright = "2024 ZettaScale Technology" section = "net" license-file = ["../../LICENSE", "0"] -depends = "zenohd (=0.11.0-dev)" +depends = "zenohd (=0.11.0-dev-1)" diff --git a/zenoh/Cargo.toml b/zenoh/Cargo.toml index 0177c2d454..3896c5d57f 100644 --- a/zenoh/Cargo.toml +++ b/zenoh/Cargo.toml @@ -115,3 +115,13 @@ name = "zenoh" # NOTE: if you change this, also change it in .github/workflows/release.yml in "doc" job. [package.metadata.docs.rs] features = ["unstable"] + +[package.metadata.deb] +name = "zenoh" +maintainer = "zenoh-dev@eclipse.org" +copyright = "2024 ZettaScale Technology" +section = "net" +license-file = ["../LICENSE", "0"] +depends = "zenohd (=0.11.0-dev-1), zenoh-plugin-rest (=0.11.0-dev-1), zenoh-plugin-storage-manager (=0.11.0-dev-1)" +maintainer-scripts = ".deb" +assets = [["../README.md", "README.md", "644"]] diff --git a/zenohd/Cargo.toml b/zenohd/Cargo.toml index e3177a5658..892d3df21c 100644 --- a/zenohd/Cargo.toml +++ b/zenohd/Cargo.toml @@ -49,7 +49,7 @@ rustc_version = { workspace = true } [package.metadata.deb] name = "zenohd" maintainer = "zenoh-dev@eclipse.org" -copyright = "2022 ZettaScale Technology" +copyright = "2024 ZettaScale Technology" section = "net" license-file = ["../LICENSE", "0"] depends = "$auto"