Skip to content

Commit

Permalink
net-misc/openbgpd: add 8.5
Browse files Browse the repository at this point in the history
Signed-off-by: Alarig Le Lay <[email protected]>
  • Loading branch information
alarig committed Aug 24, 2024
1 parent 5f80cbe commit f294e69
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions net-misc/openbgpd/Manifest
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
DIST openbgpd-6.9p0.tar.gz 719173 BLAKE2B 13360fdec909fbb18e4b9f71cb6751c406bb58a685d51bbb9caa38302f4dd1d91ba7a3ed90eac308f57851410fdf9b21652266f29488f086bba4b3ec24844efe SHA512 ba6f73aeb03e798fd081f67fc500d24e0b2efdb9564fe5f294460abc8e66762692177a1238f8f0372ca74e0ad9c11aa9f640e50cd0978198639655b3985240bc
DIST openbgpd-8.4.tar.gz 841272 BLAKE2B 1a7ea4a2ada7ff11f4311672c6ade0b233cdfc03b9b478e283ce92b36259980e74f78c89e96473f01bd4a51e6104e1c5d8027f92a675555423a171c9adf5f852 SHA512 4774d693ebfd9ba4f4fb355cb19f671d6f229284dc45483fafc8517f7b1d1a583e4657bf8d3f54d559b177e8959a536d0b50f70f0270d57ddf8dc2b6290c5fb6
DIST openbgpd-8.5.tar.gz 848032 BLAKE2B 74bfaa718000aa5329b2d70cc86869606107bc061f858655678c9734a403ddb521e66b195b649b3e09f42d07098081218963e929389a55d43b4424bf14f81bf4 SHA512 4f1592e3b83b4aeea35ac42a2bfed3072a4003de560055d06bdc27c02f82679860b298636faa27843752e291f50a47f70bf3314c66167d77077e0dc11f825a52
49 changes: 49 additions & 0 deletions net-misc/openbgpd/openbgpd-8.5.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 2020-2021 Gentoo Authors

This comment has been minimized.

Copy link
@pastalian

pastalian Aug 24, 2024

Contributor

2020-2024

# Distributed under the terms of the GNU General Public License v2

EAPI=7

This comment has been minimized.

Copy link
@pastalian

pastalian Aug 24, 2024

Contributor

Please bump to EAPI 8


inherit systemd

MY_PV="${PV/_p/p}"
MY_P="${PN}-${MY_PV}"

DESCRIPTION="OpenBGPD is a free implementation of BGPv4"
HOMEPAGE="http://www.openbgpd.org/index.html"
SRC_URI="mirror://openbsd/OpenBGPD/${PN}-${MY_PV}.tar.gz"

S="${WORKDIR}/${MY_P}"

LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND="
${DEPEND}

This comment has been minimized.

Copy link
@pastalian

pastalian Aug 24, 2024

Contributor

You are missing DEPEND. There are probably some libraries needed for the build, right?

This comment has been minimized.

Copy link
@alarig

alarig Aug 24, 2024

Author Contributor

Only those already in RDEPEND, so I just bumped the EAPI with the © fix, and deleted this line

This comment has been minimized.

Copy link
@pastalian

pastalian Aug 24, 2024

Contributor

I mean you still need to define DEPEND if those are required for the build.

This comment has been minimized.

Copy link
@pastalian

pastalian Aug 24, 2024

Contributor

like DEPEND="${RDEPEND}"

This comment has been minimized.

Copy link
@alarig

alarig Aug 24, 2024

Author Contributor

Done, I had to do the commit message by hand, pkgdev stacktraced

alarig@x280 openbgpd % (dev +=) pkgdev commit --signoff
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.12/pkgdev", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.12/site-packages/pkgdev/scripts/__init__.py", line 48, in main
    run(os.path.basename(sys.argv[0]))
  File "/usr/lib/python3.12/site-packages/pkgdev/scripts/__init__.py", line 40, in run
    sys.exit(tool())
             ^^^^^^
  File "/usr/lib/python3.12/site-packages/snakeoil/cli/tool.py", line 81, in __call__
    ret = self.main()
          ^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pkgdev/cli.py", line 23, in main
    return super().main()
           ^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/snakeoil/cli/tool.py", line 191, in main
    self.handle_exec_exception(e)
  File "/usr/lib/python3.12/site-packages/snakeoil/cli/tool.py", line 176, in main
    exitstatus = func(self.options, self.out, self.err)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pkgdev/scripts/pkgdev_commit.py", line 933, in _commit
    args = determine_msg_args(options, changes)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pkgdev/scripts/pkgdev_commit.py", line 797, in determine_msg_args
    message.append(changes.prefix + changes.summary)
                                    ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/snakeoil/klass.py", line 205, in __get__
    obj = self.function(instance)
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pkgdev/scripts/pkgdev_commit.py", line 700, in summary
    return str(PkgSummary(self._options, self.ebuild_changes))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pkgdev/scripts/pkgdev_commit.py", line 324, in __str__
    if s := self.status_funcs[statuses](self):
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pkgdev/scripts/pkgdev_commit.py", line 509, in modify
    old_env = old_pkg.environment.data.splitlines()
              ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pkgcore/ebuild/ebuild_src.py", line 454, in environment
    data = self._get_ebuild_environment()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pkgcore/ebuild/ebuild_src.py", line 459, in _get_ebuild_environment
    return ebp.get_ebuild_environment(self, self.repo.eclass_cache)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pkgcore/ebuild/processor.py", line 869, in get_ebuild_environment
    self._run_depend_like_phase(
  File "/usr/lib/python3.12/site-packages/pkgcore/ebuild/processor.py", line 838, in _run_depend_like_phase
    self.generic_handler(additional_commands=commands)
  File "/usr/lib/python3.12/site-packages/pkgcore/ebuild/processor.py", line 976, in generic_handler
    raise UnhandledCommand(line)
pkgcore.ebuild.processor.UnhandledCommand: es succeeded
zsh: exit 1     pkgdev commit --signoff

This comment has been minimized.

Copy link
@antecrescent

antecrescent Aug 25, 2024

Contributor

Done, I had to do the commit message by hand, pkgdev stacktraced

That's unfortunately a known bug pkgcore/pkgdev#173

!!net-misc/frr
acct-group/_bgpd
acct-user/_bgpd
dev-libs/libevent
net-libs/libmnl
"
BDEPEND="
dev-build/libtool
"

src_install() {
default

newinitd "${FILESDIR}/${PN}-init.d" bgpd
newconfd "${FILESDIR}/${PN}-conf.d" bgpd
systemd_newunit "${FILESDIR}/${PN}.service" bgpd.service
}

pkg_postinst() {
if [ -z "${REPLACING_VERSIONS}" ]; then
ewarn ""
ewarn "OpenBGPD portable (not running on OpenBSD) can’t export its RIB"
ewarn "to the FIB. It’s only suitable for route-reflectors or"
ewarn "route-servers."
ewarn ""
fi
}

0 comments on commit f294e69

Please sign in to comment.