git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #94257 from Kloenk/openbgpd

openbgpd: init at 6.7p0

commit23e06e611ae4185ce4d35611e51b7a2a8ca7cd06 authorLassulus <github@lassul.us> dateThu 10 Sep 2020, 20:11 (6 years ago) parentec49caa67012aa
2 files changed+47
pkgs/servers/openbgpd/default.nix+45 pkgs/top-level/all-packages.nix+2
pkgs/servers/openbgpd/default.nixnew file+45
@@ -0,0 +1,45 @@
1+{ stdenv, fetchFromGitHub, autoconf, automake
2+, libtool, m4, yacc }:
3+
4+let
5+ openbsd_version = "OPENBSD_6_7"; # This has to be equal to ${src}/OPENBSD_BRANCH
6+ openbsd = fetchFromGitHub {
7+ owner = "openbgpd-portable";
8+ repo = "openbgpd-openbsd";
9+ rev = openbsd_version;
10+ sha256 = "sha256-YJTHUsn6s4xLcLQuxCLmEkIE8ozxzooj71cJ5Wl+0lI=";
11+ };
12+in stdenv.mkDerivation rec {
13+ pname = "opengpd";
14+ version = "6.7p0";
15+
16+ src = fetchFromGitHub {
17+ owner = "openbgpd-portable";
18+ repo = "openbgpd-portable";
19+ rev = version;
20+ sha256 = "sha256-10DfK45BsSHeyANB0OJLKog1mEj0mydXSDAT9G6u1gM";
21+ };
22+
23+ nativeBuildInputs =
24+ [ autoconf automake libtool m4 yacc ];
25+
26+ preConfigure = ''
27+ mkdir ./openbsd
28+ cp -r ${openbsd}/* ./openbsd/
29+ chmod -R +w ./openbsd
30+ openbsd_version=$(cat ./OPENBSD_BRANCH)
31+ if [ "$openbsd_version" != "${openbsd_version}" ]; then
32+ echo "OPENBSD VERSION does not match"
33+ exit 1
34+ fi
35+ ./autogen.sh
36+ '';
37+
38+ meta = with stdenv.lib; {
39+ 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.";
40+ license = licenses.isc;
41+ homepage = "http://www.openbgpd.org/";
42+ maintainers = with maintainers; [ kloenk ];
43+ platforms = platforms.linux;
44+ };
45+}
pkgs/top-level/all-packages.nix+2
@@ -16543,6 +16543,8 @@ in
1654316543
1654416544 oauth2_proxy = callPackage ../servers/oauth2_proxy { };
1654516545
16546+ openbgpd = callPackage ../servers/openbgpd { };
16547+
1654616548 openafs = callPackage ../servers/openafs/1.6 { tsmbac = null; ncurses = null; };
1654716549 openafs_1_8 = callPackage ../servers/openafs/1.8 { tsmbac = null; ncurses = null; };
1654816550