diff options
author | lassulus <lass@aidsballs.de> | 2015-05-16 23:22:35 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-05-19 15:42:24 +0200 |
commit | 9d07c54fa11bc577f8fc946aef9be9d059d4f40a (patch) | |
tree | e6ed5de6d8d028bd002f797d63837294593044e9 /pkgs/servers/bird | |
parent | 8f648b2d14db39b73d31d23d4fcbc54eb6f9d0e0 (diff) |
nixos: add bird module
patch bird to look in /var/run for birc.ctl
Diffstat (limited to 'pkgs/servers/bird')
-rw-r--r-- | pkgs/servers/bird/default.nix | 8 | ||||
-rw-r--r-- | pkgs/servers/bird/dont-create-sysconfdir.patch | 13 |
2 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/servers/bird/default.nix b/pkgs/servers/bird/default.nix index 9b17551a8cbbe..c13ad64fca3f3 100644 --- a/pkgs/servers/bird/default.nix +++ b/pkgs/servers/bird/default.nix @@ -10,6 +10,14 @@ stdenv.mkDerivation rec { buildInputs = [ flex bison readline ]; + patches = [ + ./dont-create-sysconfdir.patch + ]; + + configureFlags = [ + "--localstatedir /var" + ]; + meta = { description = "BIRD Internet Routing Daemon"; homepage = http://bird.network.cz; diff --git a/pkgs/servers/bird/dont-create-sysconfdir.patch b/pkgs/servers/bird/dont-create-sysconfdir.patch new file mode 100644 index 0000000000000..0a11c8a2a8d8c --- /dev/null +++ b/pkgs/servers/bird/dont-create-sysconfdir.patch @@ -0,0 +1,13 @@ +diff --git a/tools/Makefile.in b/tools/Makefile.in +index 062ba91..4fd7453 100644 +--- a/tools/Makefile.in ++++ b/tools/Makefile.in +@@ -68,7 +68,7 @@ tags: + cd $(srcdir) ; etags -lc `find $(static-dirs) $(addprefix $(objdir)/,$(dynamic-dirs)) $(client-dirs) -name *.[chY]` + + install: all +- $(INSTALL) -d $(DESTDIR)/$(sbindir) $(DESTDIR)/$(sysconfdir) $(DESTDIR)/@runtimedir@ ++ $(INSTALL) -d $(DESTDIR)/$(sbindir) $(DESTDIR)/$(sysconfdir) + $(INSTALL_PROGRAM) $(exedir)/bird $(DESTDIR)/$(sbindir)/bird@SUFFIX@ + $(INSTALL_PROGRAM) $(exedir)/birdcl $(DESTDIR)/$(sbindir)/birdcl@SUFFIX@ + if test -n "@CLIENT@" ; then \ |