From nobody Fri Mar 10 16:03:41 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PY9p62SCrz3xflJ; Fri, 10 Mar 2023 16:03:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PY9p61fD4z3wFm; Fri, 10 Mar 2023 16:03:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678464222; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jkw5djo9XvSw5rqbPgrVe+VjsAxoKqR83gzJxriG6f4=; b=tNOs/zswIu8yLvYEqgnDLIDUa5mPUkWfGXTCOwUAdc1GfxaDe5ZkJ6dSjY5AMlPCDT22yw UiT5OdIVLBwnBjuEtnf9BUysQSzA1P549hkqdbXCEOVA1q4Xe9Mg4fQDbu0MEQkydczVSY xIglrAvk1NwQaCc1IkYUVTJGZXdNmYRArtkAkVyX/UIpIGb4sl9CPQgIAWzBoTej47VFi8 a9AlYnXneaf9JbYofGOaPXoT41GH8VbxzXfCv2Q4t4uFwihlIOBpL9QRJF2WxbGsRHKBqT u7ehrYIoxb75HfPgUE1YRUvgkCGic4ic1z7XfIng2cj+APW9qcTWr8/ZDRg5Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678464222; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jkw5djo9XvSw5rqbPgrVe+VjsAxoKqR83gzJxriG6f4=; b=eBQ1wqXIjnoq8t+flb98YpLIg7fZ7T03yqB4eATYuTJsriJazYBqNt5D72kwiHuJqay33y A7Xs05rD8WtYSiajfWASSdIaJPAW4u/g1cpcWazAFFwW8FNprCsjnn2/GjebtF9vCVfdaK Z9cgvqW3IK5nS937NeDJwQhTkELylKB+V5AuP1D4cl1RWiwpH9mF8qmS9iOxOhGFeesdYH epU+QsFwXHbCyCyjw3K7SjuNGeYNskWqv1rjtuYTkqd3aIoxqMBfT0H6xTQligujIZIq0D 2S3aFXrf3e49Cl8T9hNnBbqcyOgfEn6oA6rcnKvFeB8tc8llYnO2UeJEtJlHOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678464222; a=rsa-sha256; cv=none; b=xxZbelVimHkK2XwYjuEv5R3ND1jd0cPgZnr2kB1Lm8EA3Lkt2JT9kKznFj/+UZRH5WB1Sn kbQj7pd78oDD2ws1uujQYfBZq0aStJes6XXV+2m4EB4Jqv6ZdKBg7WQooKh44axGkxnR3o QSFTrTaDdvXLeDBJTOj6pvD2VAqujRawh0+dqyuutxujzINeg62k1INc7/yUHtsrtuMtP4 5/rdFmopkcLhn8DEzKwtwI5A9UGgBvRaOynsIBzCuZJoXAbvs6GcSI1NlMxX20ZLp/wVhg +XHcnLYD64rhlWpwyN5i48N3ELEJNDlbevSLJJoWFEJHaYnsYAROmyj72oP0Lg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PY9p60PNDzvSg; Fri, 10 Mar 2023 16:03:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32AG3fBO053305; Fri, 10 Mar 2023 16:03:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32AG3fxN053304; Fri, 10 Mar 2023 16:03:41 GMT (envelope-from git) Date: Fri, 10 Mar 2023 16:03:41 GMT Message-Id: <202303101603.32AG3fxN053304@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Juraj Lutter Subject: git: eea19244c574 - main - net-mgmt/unifi7: Update database dependency to mongodb44 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: otis X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: eea19244c57483c14b4066c9ee583fbaf60dd05d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by otis: URL: https://cgit.FreeBSD.org/ports/commit/?id=eea19244c57483c14b4066c9ee583fbaf60dd05d commit eea19244c57483c14b4066c9ee583fbaf60dd05d Author: Juraj Lutter AuthorDate: 2023-02-23 16:32:42 +0000 Commit: Juraj Lutter CommitDate: 2023-03-10 16:03:22 +0000 net-mgmt/unifi7: Update database dependency to mongodb44 As mongodb 3.6 is long out of support, switch to mongodb 4.4, even though not directly supported by upstream. See UPDATING entry for details about updating to this version. --- UPDATING | 24 ++++++++++++++++++++++++ net-mgmt/unifi7/Makefile | 10 +++++----- net-mgmt/unifi7/files/pkg-message.in | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 5 deletions(-) diff --git a/UPDATING b/UPDATING index 6ed925705fe7..ff02923b3a0d 100644 --- a/UPDATING +++ b/UPDATING @@ -5,6 +5,30 @@ they are unavoidable. You should get into the habit of checking this file for changes each time you update your ports collection, before attempting any port upgrades. +20230310: + AFFECTS: users of net-mgmt/unifi7 + AUTHOR: otis@FreeBSD.org + + The mongodb dependency has been changed from 36 to 44, as MongoDB 3.6 + is long out out support and end of life. + + The upgrade path should be as following: + + 1. Take a backup from within the unifi7 application PRIOR to + updating! + + 2. Stop the unifi7 service (if running) + + 3. Copy the "backup" directory from LOCALBASE/share/java/unifi/data/db + to a safe location. + + 4. Remove all files and directories under + LOCALBASE/share/java/unifi/data/db + + 5. Upgrade the package and start the service + + 6. Restore the configuration from backup + 20230310: AFFECTS: user of benchmarks/ddosify AUTHOR: fernape@FreeBSD.org diff --git a/net-mgmt/unifi7/Makefile b/net-mgmt/unifi7/Makefile index cfbd569b98ec..921d5dba4fe9 100644 --- a/net-mgmt/unifi7/Makefile +++ b/net-mgmt/unifi7/Makefile @@ -1,5 +1,6 @@ PORTNAME= unifi7 PORTVERSION= 7.3.83 +PORTREVISION= 1 CATEGORIES= net-mgmt java MASTER_SITES= http://dl.ubnt.com/unifi/%SUBDIR%/:unifi \ https://repo1.maven.org/maven2/%SUBDIR%/:jax @@ -16,9 +17,6 @@ WWW= https://help.ui.com/hc/en-us/categories/200320654-UniFi-Wireless RUN_DEPENDS= snappyjava>0:archivers/snappy-java -DEPRECATED= Depends on upstream EOLed mongodb36 -EXPIRATION_DATE= 2023-03-31 - USES= cpe CPE_VENDOR= ui @@ -38,6 +36,8 @@ EXTRACT_AFTER_ARGS= data.tar.xz | ${TAR} -xf - NO_ARCH= yes NO_BUILD= yes + +SUB_FILES= pkg-message SUB_LIST+= GROUPS=${GROUPS} \ JAVA=${JAVA} \ JAVA_HOME=${JAVA_HOME} \ @@ -52,9 +52,9 @@ GROUPS= unifi OPTIONS_DEFINE= EXTERNALDB EXTERNALDB_DESC= Use external MongoDB server -EXTERNALDB_VARS= PKGMESSAGE=${WRKSRC}/pkg-message.extdb \ +EXTERNALDB_VARS= PKGMESSAGE+=${WRKSRC}/pkg-message.extdb \ SUB_FILES+=pkg-message.extdb -EXTERNALDB_VARS_OFF= RUN_DEPENDS+=mongodb36>0:databases/mongodb36 +EXTERNALDB_VARS_OFF= RUN_DEPENDS+=mongodb44>0:databases/mongodb44 _DIR_LIST= conf data logs run work _JAX_DISTNAME= javax.activation-api diff --git a/net-mgmt/unifi7/files/pkg-message.in b/net-mgmt/unifi7/files/pkg-message.in new file mode 100644 index 000000000000..34b97e7333bf --- /dev/null +++ b/net-mgmt/unifi7/files/pkg-message.in @@ -0,0 +1,34 @@ +[ +{ + type: upgrade + maximum_version: "7.3.83" + message <