From 26bc40ccf0ec0f866a55c25ac743b8dd05402c15 Mon Sep 17 00:00:00 2001 From: Gus Rivera Date: Wed, 4 Dec 2024 15:04:26 -0600 Subject: [PATCH 1/6] Updating OS Package metadata: license and description --- build.assets/build-package.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.assets/build-package.sh b/build.assets/build-package.sh index bea782977f517..92b0764e2fd7f 100755 --- a/build.assets/build-package.sh +++ b/build.assets/build-package.sh @@ -74,9 +74,9 @@ FPM_IMAGE_RPM="public.ecr.aws/gravitational/fpm:centos8-1.15.1-1" # extra package information for linux MAINTAINER="info@goteleport.com" -LICENSE="Apache-2.0" +LICENSE="AGPL-3.0-or-later" VENDOR="Gravitational" -DESCRIPTION="Teleport is a gateway for managing access to clusters of Linux servers via SSH or the Kubernetes API" +DESCRIPTION="Teleport provides on-demand, least-privileged access to your infrastructure, on a foundation of cryptographic identity and zero trust, with built-in identity and policy governance" DOCS_URL="https://goteleport.com/docs" # check that curl is installed From f5cdcfe82fe672e29e403f2bac0154804d61b8b3 Mon Sep 17 00:00:00 2001 From: Gus Rivera Date: Thu, 5 Dec 2024 13:06:02 -0600 Subject: [PATCH 2/6] Adding community license to tarball --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index fa6e32fdd7e56..0f4d4da185287 100644 --- a/Makefile +++ b/Makefile @@ -539,6 +539,7 @@ build-archive: | $(RELEASE_DIR) build.assets/install\ README.md \ CHANGELOG.md \ + build.assets/LICENSE-community \ teleport/ echo $(GITTAG) > teleport/VERSION tar $(TAR_FLAGS) -c teleport | gzip -n > $(RELEASE).tar.gz From 959918e747186181366f21a801e04c7ee6407bc6 Mon Sep 17 00:00:00 2001 From: Gus Rivera Date: Thu, 5 Dec 2024 13:06:34 -0600 Subject: [PATCH 3/6] Updating build-package to include license for OSS package metadata --- build.assets/build-package.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.assets/build-package.sh b/build.assets/build-package.sh index 92b0764e2fd7f..00522a7691136 100755 --- a/build.assets/build-package.sh +++ b/build.assets/build-package.sh @@ -74,7 +74,7 @@ FPM_IMAGE_RPM="public.ecr.aws/gravitational/fpm:centos8-1.15.1-1" # extra package information for linux MAINTAINER="info@goteleport.com" -LICENSE="AGPL-3.0-or-later" +LICENSE="" VENDOR="Gravitational" DESCRIPTION="Teleport provides on-demand, least-privileged access to your infrastructure, on a foundation of cryptographic identity and zero trust, with built-in identity and policy governance" DOCS_URL="https://goteleport.com/docs" @@ -195,6 +195,7 @@ if [[ "${TELEPORT_TYPE}" == "ent" ]]; then TYPE_DESCRIPTION="[${TEXT_ARCH} Enterprise edition]" fi else + LICENSE="Teleport Community Edition License" TARBALL_FILENAME="teleport-v${TELEPORT_VERSION}-${PLATFORM}-${TARBALL_ARCH}${OPTIONAL_TARBALL_SECTION}${OPTIONAL_RUNTIME_SECTION}-bin.tar.gz" TAR_PATH="teleport" RPM_NAME="teleport" @@ -204,6 +205,7 @@ else else TYPE_DESCRIPTION="[${TEXT_ARCH} Open source edition]" fi + TYPE_DESCRIPTION="${TYPE_DESCRIPTION}\n\nDistributed under the ${LICENSE}" fi # set file list From fb63b077f3009a89357722b28a617f090ac4395d Mon Sep 17 00:00:00 2001 From: Gus Rivera Date: Fri, 6 Dec 2024 13:43:03 -0600 Subject: [PATCH 4/6] Fixing some interpolation errors --- build.assets/build-package.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.assets/build-package.sh b/build.assets/build-package.sh index 00522a7691136..0b5d1d74f083f 100755 --- a/build.assets/build-package.sh +++ b/build.assets/build-package.sh @@ -74,7 +74,7 @@ FPM_IMAGE_RPM="public.ecr.aws/gravitational/fpm:centos8-1.15.1-1" # extra package information for linux MAINTAINER="info@goteleport.com" -LICENSE="" +LICENSE="Teleport Community Edition License" VENDOR="Gravitational" DESCRIPTION="Teleport provides on-demand, least-privileged access to your infrastructure, on a foundation of cryptographic identity and zero trust, with built-in identity and policy governance" DOCS_URL="https://goteleport.com/docs" @@ -256,6 +256,7 @@ else OUTPUT_FILENAME="${TAR_PATH}_${TELEPORT_VERSION}${OPTIONAL_RUNTIME_SECTION}_${DEB_OUTPUT_ARCH}.deb" FILE_PERMISSIONS_STANZA="--deb-user root --deb-group root " fi + LICENSE_STANZA=(--license "${LICENSE}") fi # create a temporary directory and download specified Teleport version @@ -361,7 +362,6 @@ else --version "${TELEPORT_VERSION}" \ --maintainer "${MAINTAINER}" \ --url "${DOCS_URL}" \ - --license "${LICENSE}" \ --vendor "${VENDOR}" \ --description "${DESCRIPTION} ${TYPE_DESCRIPTION}" \ --architecture ${PACKAGE_ARCH} \ @@ -374,6 +374,7 @@ else --after-upgrade /src/post-upgrade \ ${CONFIG_FILE_STANZA} \ ${FILE_PERMISSIONS_STANZA} \ + "${LICENSE_STANZA[@]}" \ ${RPM_SIGN_STANZA} . # copy created package back to current directory From 5cca99bcafa741941620b5060f518bd576723304 Mon Sep 17 00:00:00 2001 From: Gus Rivera Date: Fri, 6 Dec 2024 13:44:45 -0600 Subject: [PATCH 5/6] Removing unecessary line --- build.assets/build-package.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/build.assets/build-package.sh b/build.assets/build-package.sh index 0b5d1d74f083f..8b3a66db0193f 100755 --- a/build.assets/build-package.sh +++ b/build.assets/build-package.sh @@ -195,7 +195,6 @@ if [[ "${TELEPORT_TYPE}" == "ent" ]]; then TYPE_DESCRIPTION="[${TEXT_ARCH} Enterprise edition]" fi else - LICENSE="Teleport Community Edition License" TARBALL_FILENAME="teleport-v${TELEPORT_VERSION}-${PLATFORM}-${TARBALL_ARCH}${OPTIONAL_TARBALL_SECTION}${OPTIONAL_RUNTIME_SECTION}-bin.tar.gz" TAR_PATH="teleport" RPM_NAME="teleport" From d2f24e625823b5d6bcc273577e73aec7790bb8c4 Mon Sep 17 00:00:00 2001 From: Gus Rivera Date: Mon, 9 Dec 2024 11:50:46 -0600 Subject: [PATCH 6/6] Cleaning up the metadata formatting --- build.assets/build-package.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.assets/build-package.sh b/build.assets/build-package.sh index 8b3a66db0193f..f5a08b517faf3 100755 --- a/build.assets/build-package.sh +++ b/build.assets/build-package.sh @@ -194,6 +194,7 @@ if [[ "${TELEPORT_TYPE}" == "ent" ]]; then else TYPE_DESCRIPTION="[${TEXT_ARCH} Enterprise edition]" fi + LICENSE_STANZA=() else TARBALL_FILENAME="teleport-v${TELEPORT_VERSION}-${PLATFORM}-${TARBALL_ARCH}${OPTIONAL_TARBALL_SECTION}${OPTIONAL_RUNTIME_SECTION}-bin.tar.gz" TAR_PATH="teleport" @@ -204,7 +205,8 @@ else else TYPE_DESCRIPTION="[${TEXT_ARCH} Open source edition]" fi - TYPE_DESCRIPTION="${TYPE_DESCRIPTION}\n\nDistributed under the ${LICENSE}" + TYPE_DESCRIPTION="${TYPE_DESCRIPTION} Distributed under the ${LICENSE}" + LICENSE_STANZA=(--license "${LICENSE}") fi # set file list @@ -255,7 +257,6 @@ else OUTPUT_FILENAME="${TAR_PATH}_${TELEPORT_VERSION}${OPTIONAL_RUNTIME_SECTION}_${DEB_OUTPUT_ARCH}.deb" FILE_PERMISSIONS_STANZA="--deb-user root --deb-group root " fi - LICENSE_STANZA=(--license "${LICENSE}") fi # create a temporary directory and download specified Teleport version