From owner-dev-commits-ports-main@freebsd.org Sat Jul 24 20:07:05 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E4B52666543; Sat, 24 Jul 2021 20:07:05 +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 4GXHK55pHGz3Nsg; Sat, 24 Jul 2021 20:07:05 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 AE95E16AC1; Sat, 24 Jul 2021 20:07:05 +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 16OK751N066348; Sat, 24 Jul 2021 20:07:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 16OK75QT066347; Sat, 24 Jul 2021 20:07:05 GMT (envelope-from git) Date: Sat, 24 Jul 2021 20:07:05 GMT Message-Id: <202107242007.16OK75QT066347@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Ryan Steinmetz Subject: git: cb84185382cf - main - dns/dns-ui: New port: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zi X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cb84185382cf156f72f34e43d8b46e672f050884 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jul 2021 20:07:06 -0000 The branch main has been updated by zi: URL: https://cgit.FreeBSD.org/ports/commit/?id=cb84185382cf156f72f34e43d8b46e672f050884 commit cb84185382cf156f72f34e43d8b46e672f050884 Author: Ryan Steinmetz AuthorDate: 2021-07-24 20:05:34 +0000 Commit: Ryan Steinmetz CommitDate: 2021-07-24 20:06:40 +0000 dns/dns-ui: New port: A tool to manage a PowerDNS authoritative server in a corporate LDAP-driven environment. Features: * Connects to PowerDNS via its JSON API. * Allows login managed by LDAP server. * Create zones; add, edit and delete records. * Grant multiple users access to administer a zone. * Lower access level that allows to view a zone and request changes. * Provides its own JSON API for making changes to DNS records. * Keeps a changelog of all DNS changes done through it. * (Optionally) export all zones as bind-format zone files and store changes in git. WWW: https://github.com/operasoftware/dns-ui/ --- dns/Makefile | 1 + dns/dns-ui/Makefile | 42 ++++++++++++ dns/dns-ui/distinfo | 3 + dns/dns-ui/files/pkg-message.in | 16 +++++ dns/dns-ui/pkg-descr | 15 +++++ dns/dns-ui/pkg-plist | 142 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 219 insertions(+) diff --git a/dns/Makefile b/dns/Makefile index 60c63d508f51..6600e234088d 100644 --- a/dns/Makefile +++ b/dns/Makefile @@ -28,6 +28,7 @@ SUBDIR += dns2blackhole SUBDIR += dns2tcp SUBDIR += dns_balance + SUBDIR += dns-ui SUBDIR += dnsblast SUBDIR += dnscap SUBDIR += dnscheckengine diff --git a/dns/dns-ui/Makefile b/dns/dns-ui/Makefile new file mode 100644 index 000000000000..cbe6ec0364b0 --- /dev/null +++ b/dns/dns-ui/Makefile @@ -0,0 +1,42 @@ +# Created by: Ryan Steinmetz + +PORTNAME= dns-ui +DISTVERSION= v0.2.6 +CATEGORIES= dns + +MAINTAINER= zi@FreeBSD.org +COMMENT= LDAP-authenticated PowerDNS user interface by Opera + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= pgsql php:mod,cli + +SUB_FILES= pkg-message + +NO_BUILD= yes + +USE_PHP= curl json intl ldap mbstring pdo_pgsql +USE_GITHUB= yes +GH_ACCOUNT= operasoftware + +OPTIONS_DEFINE= APACHE PGSQLSRV +OPTIONS_DEFAULT= APACHE PGSQLSRV +APACHE_DESC= Use apache as webserver +PGSQLSRV_DESC= Use local postgres instance + +APACHE_USES= apache:run,22+ +APACHE_RUN_DEPENDS= mod_php74>0:www/mod_php74 +PGSQLSRV_VARS= WANT_PGSQL=server + +.include + +post-extract: + ${MV} ${WRKSRC}/config/config-sample.ini \ + ${WRKSRC}/config/config.ini.sample + +do-install: + @${MKDIR} ${STAGEDIR}${WWWDIR} + (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}) + +.include diff --git a/dns/dns-ui/distinfo b/dns/dns-ui/distinfo new file mode 100644 index 000000000000..352e022b0171 --- /dev/null +++ b/dns/dns-ui/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1627144708 +SHA256 (operasoftware-dns-ui-v0.2.6_GH0.tar.gz) = 338454d1b701d0fe0339ca8009352aba09d2546203eaa666ea768b29ad405fd9 +SIZE (operasoftware-dns-ui-v0.2.6_GH0.tar.gz) = 634458 diff --git a/dns/dns-ui/files/pkg-message.in b/dns/dns-ui/files/pkg-message.in new file mode 100644 index 000000000000..a0d9792bae50 --- /dev/null +++ b/dns/dns-ui/files/pkg-message.in @@ -0,0 +1,16 @@ +[ +{ type: install + message: <