From nobody Sun Nov 12 19:33:56 2023 X-Original-To: dev-commits-ports-all@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 4ST2mj01lkz50vbS; Sun, 12 Nov 2023 19:33:57 +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 4ST2mh6f2wz3TFF; Sun, 12 Nov 2023 19:33:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699817636; 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=aAwdV035/WF2AhUD1mn+R5sm8rBVJ7HMGklpGozUQ5c=; b=CwWjWPPRmTgEDbdY9xWlWCtqrirVAsA6jTetMWfR1GI7NID/WOnOKdYqH9Om/erEkV0aiT feqUF6kvSTa3O4Te8HJAKgqFgQJZ7fqLcm0of42slYW6KdezAKzLzBNdMK83eCKGwrnlHH 6bd/SOLB5CVLIKrjj0+Ej9pHdp98VZdNqpGwmquxeMPJ6zAs+YweXXzmlrnhSr/7cpek7q Y0u3Jyicc536YtD7/fpTsMj1zgEoIAhfFimZkQZKyn+eC/F2JNOzL4iGhLtKHK74DvSSgO qCmK7dczXSB0+zgDu/5QuxxN+swXEC2sZKatwqNrTGM+UTGCZdBUTDf5e/GYbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699817636; 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=aAwdV035/WF2AhUD1mn+R5sm8rBVJ7HMGklpGozUQ5c=; b=bABrZ0v+KMHbnAMWU5yCuPFZ+0s8wB91FcUTnrlf6kL3t1+o5iDppk0ZKvFW0s3WvUuRYp iN9yBXC51yK1TcOe8ZjnMnt/Y6jiAANXyf5vE+rL9zJEui1f4EH2wXn6YiOgTDTE4Hmpnr 9fCFCJ9TvalhtF4GqSw8+4J+aYYiRHGpavX/+UtCgBr56lZBTCJ3VUl4hKSPzr7UPUf3lw y8um8xsJ8FOFX1UrBRM1bwdA2K9tEx4+B8GdgdIUuWNN4Kc2cupzK3WTje7Hu160tih/b9 1u5ufV/9//iGllmGS4KffN9WXIaT7dL4by0Zb2aDD6chdN0FeIrqDA4gdojmKA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699817636; a=rsa-sha256; cv=none; b=UJ2p2T7olgnFinRvpg8klxqvF5cIM9OXTWqmWcDnzpAUdBum8i99WplfjxCo4lwgGycJqn ggVWY05b1EJV5QP8FI9A/UHP1eO9FCGYz2PEps67Lk9pTd+iUKh41rS+QAdIJOqI0FNNl+ impCWEnnf+g77IJ7swmg59LqXrRLUl1Rz+Dro2ODWSV9IS/NVTeKgOwjGD9ltF6KMks5Iz eghw05R5BBlUtj0BW9VQPcbOngTB9GR3+KKfreoMWe9C+mBuVtfiPMqN+myDXiNK0yqqH0 65P1MzFmyp4FCfT269zXKzV52C9EX8PC/lBqKyJGnzUaB8K5XW9guOS0O0+KmA== 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 4ST2mh5jF6zbQH; Sun, 12 Nov 2023 19:33:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3ACJXufM075310; Sun, 12 Nov 2023 19:33:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3ACJXu3T075307; Sun, 12 Nov 2023 19:33:56 GMT (envelope-from git) Date: Sun, 12 Nov 2023 19:33:56 GMT Message-Id: <202311121933.3ACJXu3T075307@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kurt Jaeger Subject: git: 03f1984975e7 - main - net/openbgpd8: New port based on openbgpd7 port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pi X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 03f1984975e79fcd362158107685c733d701a8bf Auto-Submitted: auto-generated The branch main has been updated by pi: URL: https://cgit.FreeBSD.org/ports/commit/?id=03f1984975e79fcd362158107685c733d701a8bf commit 03f1984975e79fcd362158107685c733d701a8bf Author: Sebastian AuthorDate: 2023-11-12 19:31:32 +0000 Commit: Kurt Jaeger CommitDate: 2023-11-12 19:31:32 +0000 net/openbgpd8: New port based on openbgpd7 port PR: 272383 Author: Sebastian --- net/Makefile | 1 + net/openbgpd8/Makefile | 28 ++++++++++++++++++++++++++++ net/openbgpd8/distinfo | 3 +++ net/openbgpd8/files/COPYING | 19 +++++++++++++++++++ net/openbgpd8/files/openbgpd.in | 32 ++++++++++++++++++++++++++++++++ net/openbgpd8/files/patch-Makefile.am | 26 ++++++++++++++++++++++++++ net/openbgpd8/files/pkg-message.in | 10 ++++++++++ net/openbgpd8/pkg-descr | 3 +++ net/openbgpd8/pkg-plist | 8 ++++++++ 9 files changed, 130 insertions(+) diff --git a/net/Makefile b/net/Makefile index 7199f7f9b3b8..82f8618a7054 100644 --- a/net/Makefile +++ b/net/Makefile @@ -570,6 +570,7 @@ SUBDIR += openbgpd SUBDIR += openbgpd6 SUBDIR += openbgpd7 + SUBDIR += openbgpd8 SUBDIR += openldap25-client SUBDIR += openldap25-server SUBDIR += openldap26-client diff --git a/net/openbgpd8/Makefile b/net/openbgpd8/Makefile new file mode 100644 index 000000000000..fc05babc0eb4 --- /dev/null +++ b/net/openbgpd8/Makefile @@ -0,0 +1,28 @@ +PORTNAME= openbgpd +PORTVERSION= 8.3 +CATEGORIES= net +MASTER_SITES= OPENBSD/OpenBGPD +PKGNAMESUFFIX= 8 + +MAINTAINER= pi@FreeBSD.org +COMMENT= Free implementation of the Border Gateway Protocol, Version 4 +WWW= https://www.openbgpd.org/ + +LICENSE= MIT +LICENSE_FILE= ${FILESDIR}/COPYING + +LIB_DEPENDS= libevent.so:devel/libevent + +USES= autoreconf libtool localbase pathfix uidfix +USE_RC_SUBR= ${PORTNAME} + +GNU_CONFIGURE= yes + +SUB_FILES= pkg-message + +USERS= _bgpd +GROUPS= _bgpd + +CONFLICTS= zebra quagga + +.include diff --git a/net/openbgpd8/distinfo b/net/openbgpd8/distinfo new file mode 100644 index 000000000000..af67b3c44387 --- /dev/null +++ b/net/openbgpd8/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1699816051 +SHA256 (openbgpd-8.3.tar.gz) = a1e4e59694c16f82e551ee74499000807e218731ec549b8f495c7ada942ec3fe +SIZE (openbgpd-8.3.tar.gz) = 839081 diff --git a/net/openbgpd8/files/COPYING b/net/openbgpd8/files/COPYING new file mode 100644 index 000000000000..0e9cfc51f9c0 --- /dev/null +++ b/net/openbgpd8/files/COPYING @@ -0,0 +1,19 @@ +Copyright (c) 2003-2007 Henning Brauer +Copyright (c) 2002 Daniel Hartmeier +Copyright (c) 2003, 2004, 2006 Claudio Jeker +Copyright (c) 2003, 2004 Markus Friedl +Copyright (c) 2004 Damien Miller +Copyright (c) 2006, 2007, 2008 Reyk Floeter +Copyright (c) 2006, 2007 Pierre-Yves Ritschard + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER IN +AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT +OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/net/openbgpd8/files/openbgpd.in b/net/openbgpd8/files/openbgpd.in new file mode 100644 index 000000000000..ccf78428ebd0 --- /dev/null +++ b/net/openbgpd8/files/openbgpd.in @@ -0,0 +1,32 @@ +#!/bin/sh + +# PROVIDE: bgpd dynamicrouting +# REQUIRE: LOGIN abi +# BEFORE: securelevel +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable openbgpd: +# +# openbgpd_enable="YES" +# openbgpd_flags="" +# +# See bgpd(8) for openbgpd_flags + +. /etc/rc.subr + +name=openbgpd +rcvar=openbgpd_enable + +extra_commands=reload +command="%%PREFIX%%/sbin/bgpd" +required_files="%%PREFIX%%/etc/bgpd.conf" + +: ${openbgpd_enable=NO} + +check_process() +{ + /bin/pgrep -j none -U 0 -f %%PREFIX%%/sbin/bgpd +} + +load_rc_config $name +run_rc_command "$1" diff --git a/net/openbgpd8/files/patch-Makefile.am b/net/openbgpd8/files/patch-Makefile.am new file mode 100644 index 000000000000..3a4e448bb7da --- /dev/null +++ b/net/openbgpd8/files/patch-Makefile.am @@ -0,0 +1,26 @@ +--- Makefile.am.orig 2023-11-12 20:11:09.365947000 +0100 ++++ Makefile.am 2023-11-12 20:16:27.510527000 +0100 +@@ -23,16 +23,19 @@ + EXTRA_DIST = README.md LICENSE VERSION bgpd.conf + + install-data-hook: +- @if [ ! -d "$(DESTDIR)$(runstatedir)" ]; then \ ++ if [ ! -d "$(DESTDIR)$(runstatedir)" ]; then \ + $(INSTALL) -m 755 -d "$(DESTDIR)$(runstatedir)"; \ + fi +- @if [ X"$(wwwrunstatedir)" != X -a ! -d "$(DESTDIR)$(wwwrunstatedir)" ]; then \ ++ if [ X"$(wwwrunstatedir)" != X -a ! -d "$(DESTDIR)$(wwwrunstatedir)" ]; then \ + $(INSTALL) -m 755 -d "$(DESTDIR)$(wwwrunstatedir)"; \ + fi +- @if [ ! -d "$(DESTDIR)$(sysconfdir)" ]; then \ ++ if [ ! -d "$(DESTDIR)$(sysconfdir)" ]; then \ + $(INSTALL) -m 755 -d "$(DESTDIR)$(sysconfdir)"; \ + fi +- @if [ ! -f "$(DESTDIR)$(sysconfdir)/bgpd.conf" ]; then \ ++ if [ ! -f "$(DESTDIR)$(sysconfdir)/bgpd.conf.sample" ]; then \ ++ $(INSTALL) -m 644 "$(srcdir)/bgpd.conf" "$(DESTDIR)$(sysconfdir)/bgpd.conf.sample"; \ ++ fi ++ if [ ! -f "$(DESTDIR)$(sysconfdir)/bgpd.conf" ]; then \ + $(INSTALL) -m 644 "$(srcdir)/bgpd.conf" "$(DESTDIR)$(sysconfdir)/bgpd.conf"; \ + else \ + echo; \ diff --git a/net/openbgpd8/files/pkg-message.in b/net/openbgpd8/files/pkg-message.in new file mode 100644 index 000000000000..4e6b1eb8a3be --- /dev/null +++ b/net/openbgpd8/files/pkg-message.in @@ -0,0 +1,10 @@ +[ +{ type: install + message: <