Merge pull request #94257 from Kloenk/openbgpd

openbgpd: init at 6.7p0
This commit is contained in:
Lassulus 2020-09-10 20:11:17 +02:00 committed by GitHub
commit 23e06e611a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,45 @@
{ stdenv, fetchFromGitHub, autoconf, automake
, libtool, m4, yacc }:
let
openbsd_version = "OPENBSD_6_7"; # This has to be equal to ${src}/OPENBSD_BRANCH
openbsd = fetchFromGitHub {
owner = "openbgpd-portable";
repo = "openbgpd-openbsd";
rev = openbsd_version;
sha256 = "sha256-YJTHUsn6s4xLcLQuxCLmEkIE8ozxzooj71cJ5Wl+0lI=";
};
in stdenv.mkDerivation rec {
pname = "opengpd";
version = "6.7p0";
src = fetchFromGitHub {
owner = "openbgpd-portable";
repo = "openbgpd-portable";
rev = version;
sha256 = "sha256-10DfK45BsSHeyANB0OJLKog1mEj0mydXSDAT9G6u1gM";
};
nativeBuildInputs =
[ autoconf automake libtool m4 yacc ];
preConfigure = ''
mkdir ./openbsd
cp -r ${openbsd}/* ./openbsd/
chmod -R +w ./openbsd
openbsd_version=$(cat ./OPENBSD_BRANCH)
if [ "$openbsd_version" != "${openbsd_version}" ]; then
echo "OPENBSD VERSION does not match"
exit 1
fi
./autogen.sh
'';
meta = with stdenv.lib; {
description = "OpenBGPD is a FREE implementation of the Border Gateway Protocol, Version 4. It allows ordinary machines to be used as routers exchanging routes with other systems speaking the BGP protocol.";
license = licenses.isc;
homepage = "http://www.openbgpd.org/";
maintainers = with maintainers; [ kloenk ];
platforms = platforms.linux;
};
}

View file

@ -16543,6 +16543,8 @@ in
oauth2_proxy = callPackage ../servers/oauth2_proxy { };
openbgpd = callPackage ../servers/openbgpd { };
openafs = callPackage ../servers/openafs/1.6 { tsmbac = null; ncurses = null; };
openafs_1_8 = callPackage ../servers/openafs/1.8 { tsmbac = null; ncurses = null; };