From 00945cc502d7a908b8006b7f71ec9eeb1a9a5ce5 Mon Sep 17 00:00:00 2001 From: patricearruda84 Date: Tue, 6 May 2025 20:07:46 -0400 Subject: [PATCH] SERVER-104338: Define debian package files for mongodb crypt v1 package. (#35841) Co-authored-by: Zack Winter <3457246+zackwintermdb@users.noreply.github.com> GitOrigin-RevId: 08ecc502f9249fa4743ca22870761f9789d9f4f6 --- .github/CODEOWNERS | 3 + debian/OWNERS.yml | 5 ++ debian/mongodb-enterprise-crypt-v1.control | 27 +++++++++ debian/mongodb-enterprise-crypt-v1.docs | 4 ++ debian/mongodb-enterprise-crypt-v1.rules | 55 +++++++++++++++++++ ...ngodb-enterprise-unstable-crypt-v1.control | 27 +++++++++ .../mongodb-enterprise-unstable-crypt-v1.docs | 4 ++ ...mongodb-enterprise-unstable-crypt-v1.rules | 54 ++++++++++++++++++ 8 files changed, 179 insertions(+) create mode 100644 debian/OWNERS.yml create mode 100644 debian/mongodb-enterprise-crypt-v1.control create mode 100644 debian/mongodb-enterprise-crypt-v1.docs create mode 100755 debian/mongodb-enterprise-crypt-v1.rules create mode 100644 debian/mongodb-enterprise-unstable-crypt-v1.control create mode 100644 debian/mongodb-enterprise-unstable-crypt-v1.docs create mode 100755 debian/mongodb-enterprise-unstable-crypt-v1.rules diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8ee85af83d7..1e83069d888 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -173,6 +173,9 @@ WORKSPACE.bazel @10gen/devprod-build @svc-auto-approve-bot # The following patterns are parsed from ./buildscripts/tracing_profiler/OWNERS.yml /buildscripts/tracing_profiler/**/* @10gen/query @svc-auto-approve-bot +# The following patterns are parsed from ./debian/OWNERS.yml +/debian/**/* @10gen/devprod-build @svc-auto-approve-bot + # The following patterns are parsed from ./docs/OWNERS.yml /docs/**/building.md @10gen/devprod-build @svc-auto-approve-bot /docs/**/cpp_style.md @10gen/server-programmability @svc-auto-approve-bot diff --git a/debian/OWNERS.yml b/debian/OWNERS.yml new file mode 100644 index 00000000000..1baf21091bc --- /dev/null +++ b/debian/OWNERS.yml @@ -0,0 +1,5 @@ +version: 1.0.0 +filters: + - "*": + approvers: + - 10gen/devprod-build diff --git a/debian/mongodb-enterprise-crypt-v1.control b/debian/mongodb-enterprise-crypt-v1.control new file mode 100644 index 00000000000..0d371fc5c8f --- /dev/null +++ b/debian/mongodb-enterprise-crypt-v1.control @@ -0,0 +1,27 @@ +Source: mongodb-enterprise-crypt-v1 +Section: database +Priority: optional +Maintainer: MongoDB Packaging +Standards-Version: 3.8.0 +Homepage: http://www.mongodb.org + +Package: mongodb-enterprise-crypt-v1 +Conflicts: mongodb-enterprise-unstable-crypt-v1 +Architecture: any +Description: MongoDB Enterprise Field Level Encryption Crypto v1 Library + MongoDB is built for scalability, performance and high availability, scaling from single server deployments to large, complex multi-site architectures. By leveraging in-memory computing, MongoDB provides high performance for both reads and writes. MongoDB's native replication and automated failover enable enterprise-grade reliability and operational flexibility. + . + MongoDB is an open-source database used by companies of all sizes, across all industries and for a wide variety of applications. It is an agile database that allows schemas to change quickly as applications evolve, while still providing the functionality developers expect from traditional databases, such as secondary indexes, a full query language and strict consistency. + . + MongoDB has a rich client ecosystem including hadoop integration, officially supported drivers for 10 programming languages and environments, as well as 40 drivers supported by the user community. + . + MongoDB features: + * JSON Data Model with Dynamic Schemas + * Auto-Sharding for Horizontal Scalability + * Built-In Replication for High Availability + * Rich Secondary Indexes, including geospatial + * TTL indexes + * Text Search + * Aggregation Framework & Native MapReduce + . + This package contains MongoDB Enterprise Field Level Encryption Crypto v1 library. diff --git a/debian/mongodb-enterprise-crypt-v1.docs b/debian/mongodb-enterprise-crypt-v1.docs new file mode 100644 index 00000000000..8ae3640bff3 --- /dev/null +++ b/debian/mongodb-enterprise-crypt-v1.docs @@ -0,0 +1,4 @@ +LICENSE-Enterprise.txt +README +THIRD-PARTY-NOTICES +MPL-2 diff --git a/debian/mongodb-enterprise-crypt-v1.rules b/debian/mongodb-enterprise-crypt-v1.rules new file mode 100755 index 00000000000..80dbf67a74c --- /dev/null +++ b/debian/mongodb-enterprise-crypt-v1.rules @@ -0,0 +1,55 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + rm -rf $(CURDIR)/debian/mongodb-enterprise-crypt-v1 + dh_clean debian/files + +install: build + dh_testdir + dh_testroot + dh_prep + + mkdir -p $(CURDIR)/debian/mongodb-enterprise-crypt-v1/usr/include/mongo_crypt/v1/mongo_crypt + install -m 644 $(CURDIR)/include/mongo_crypt/v1/mongo_crypt/mongo_crypt.h $(CURDIR)/debian/mongodb-enterprise-crypt-v1/usr/include/mongo_crypt/v1/mongo_crypt + + mkdir -p $(CURDIR)/debian/mongodb-enterprise-crypt-v1/usr/lib + install -m 755 $(CURDIR)/lib/mongo_crypt_v1.so $(CURDIR)/debian/mongodb-enterprise-crypt-v1/usr/lib + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/debian/mongodb-enterprise-unstable-crypt-v1.control b/debian/mongodb-enterprise-unstable-crypt-v1.control new file mode 100644 index 00000000000..e64061cdd02 --- /dev/null +++ b/debian/mongodb-enterprise-unstable-crypt-v1.control @@ -0,0 +1,27 @@ +Source: mongodb-enterprise-unstable-crypt-v1 +Section: database +Priority: optional +Maintainer: MongoDB Packaging +Standards-Version: 3.8.0 +Homepage: http://www.mongodb.org + +Package: mongodb-enterprise-unstable-crypt-v1 +Conflicts: mongodb-enterprise-crypt-v1 +Architecture: any +Description: MongoDB Enterprise Field Level Encryption Crypto v1 Library + MongoDB is built for scalability, performance and high availability, scaling from single server deployments to large, complex multi-site architectures. By leveraging in-memory computing, MongoDB provides high performance for both reads and writes. MongoDBâ–’~@~Ys native replication and automated failover enable enterprise-grade reliability and operational flexibility. + . + MongoDB is an open-source database used by companies of all sizes, across all industries and for a wide variety of applications. It is an agile database that allows schemas to change quickly as applications evolve, while still providing the functionality developers expect from traditional databases, such as secondary indexes, a full query language and strict consistency. + . + MongoDB has a rich client ecosystem including hadoop integration, officially supported drivers for 10 programming languages and environments, as well as 40 drivers supported by the user community. + . + MongoDB features: + * JSON Data Model with Dynamic Schemas + * Auto-Sharding for Horizontal Scalability + * Built-In Replication for High Availability + * Rich Secondary Indexes, including geospatial + * TTL indexes + * Text Search + * Aggregation Framework & Native MapReduce + . + This package contains MongoDB Enterprise Field Level Encryption Crypto v1 library. diff --git a/debian/mongodb-enterprise-unstable-crypt-v1.docs b/debian/mongodb-enterprise-unstable-crypt-v1.docs new file mode 100644 index 00000000000..8ae3640bff3 --- /dev/null +++ b/debian/mongodb-enterprise-unstable-crypt-v1.docs @@ -0,0 +1,4 @@ +LICENSE-Enterprise.txt +README +THIRD-PARTY-NOTICES +MPL-2 diff --git a/debian/mongodb-enterprise-unstable-crypt-v1.rules b/debian/mongodb-enterprise-unstable-crypt-v1.rules new file mode 100755 index 00000000000..5cdf63bd82d --- /dev/null +++ b/debian/mongodb-enterprise-unstable-crypt-v1.rules @@ -0,0 +1,54 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + rm -rf $(CURDIR)/debian/mongodb-enterprise-unstable-crypt-v1 + dh_clean debian/files + +install: build + dh_testdir + dh_testroot + dh_prep + + mkdir -p $(CURDIR)/debian/mongodb-enterprise-unstable-crypt-v1/usr/include/mongo_crypt/v1/mongo_crypt + install -m 644 $(CURDIR)/include/mongo_crypt/v1/mongo_crypt/mongo_crypt.h $(CURDIR)/debian/mongodb-enterprise-unstable-crypt-v1/usr/include/mongo_crypt/v1/mongo_crypt + + mkdir -p $(CURDIR)/debian/mongodb-enterprise-unstable-crypt-v1/usr/lib + install -m 755 $(CURDIR)/lib/mongo_crypt_v1.so $(CURDIR)/debian/mongodb-enterprise-unstable-crypt-v1/usr/lib + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure