mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
parent
56db212f21
commit
8df1c9ac17
4 changed files with 0 additions and 150 deletions
|
@ -437,7 +437,6 @@
|
|||
./services/networking/firefox/sync-server.nix
|
||||
./services/networking/fireqos.nix
|
||||
./services/networking/firewall.nix
|
||||
./services/networking/firewalld.nix
|
||||
./services/networking/flannel.nix
|
||||
./services/networking/flashpolicyd.nix
|
||||
./services/networking/freenet.nix
|
||||
|
|
|
@ -1,53 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.networking.firewalld;
|
||||
|
||||
in {
|
||||
###### interface
|
||||
|
||||
options = {
|
||||
networking.firewalld = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description =
|
||||
''
|
||||
Whether to enable firewalld. firewalld is a high-level Linux-based packet
|
||||
filtering framework intended for desktop use cases.
|
||||
|
||||
This conflicts with the standard networking firewall, so make sure to
|
||||
disable it before using firewalld.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
###### implementation
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
assertions = [{
|
||||
assertion = config.networking.firewall.enable == false;
|
||||
message = "You can not use firewalld with services.networking.firewall.";
|
||||
}];
|
||||
|
||||
environment.etc = [
|
||||
{ source = "${pkgs.firewalld}/etc/firewalld";
|
||||
target = "firewalld"; }
|
||||
];
|
||||
|
||||
services = {
|
||||
dbus.packages = with pkgs; [ firewalld ];
|
||||
};
|
||||
|
||||
systemd = {
|
||||
packages = with pkgs; [ firewalld ];
|
||||
|
||||
services.firewalld = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,94 +0,0 @@
|
|||
{ stdenv, lib, fetchFromGitHub
|
||||
, autoreconfHook, docbook_xml_dtd_42, docbook_xsl, gettext, python3Packages
|
||||
, intltool, libxslt, dbus, pkgconfig, iptables, ebtables, ipset, glib, kmod
|
||||
, withKde ? true, plasma-nm ? null
|
||||
}:
|
||||
|
||||
let
|
||||
slip = python3Packages.buildPythonPackage rec {
|
||||
name = "python-slip-${version}";
|
||||
version = "0.6.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nphilipp";
|
||||
repo = "python-slip";
|
||||
rev = name;
|
||||
sha256 = "07zyxy62738dzsvifm1241k0zx5l3xl6s5yfhyn88wc59fa8p570";
|
||||
};
|
||||
|
||||
doCheck = false; # no tests
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
export PREFIX=$out
|
||||
make
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
make install
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
};
|
||||
|
||||
in python3Packages.buildPythonApplication rec {
|
||||
name = "firewalld-${version}";
|
||||
version = "0.4.4.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "t-woerner";
|
||||
repo = "firewalld";
|
||||
rev = "v${version}";
|
||||
sha256 = "048flfcsi3ibp124k01hhf9bnbpyi3b92jgc96fhfvw6ns2l48qc";
|
||||
};
|
||||
|
||||
doCheck = false; # no tests
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
dbus
|
||||
decorator
|
||||
pygobject3
|
||||
pyqt5
|
||||
six
|
||||
slip
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
autoreconfHook pkgconfig
|
||||
docbook_xml_dtd_42 docbook_xsl gettext intltool libxslt
|
||||
dbus ebtables glib ipset iptables
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
patchShebangs .
|
||||
|
||||
substituteInPlace doc/xml/*.xml \
|
||||
--replace "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" "${docbook_xml_dtd_42}/xml/dtd/docbook/docbookx.dtd"
|
||||
|
||||
substituteInPlace src/firewall-applet \
|
||||
--replace /usr/bin/kde5-nm-connection-editor ${lib.getBin plasma-nm}/bin/kde5-nm-connection-editor
|
||||
|
||||
export MODINFO=${kmod}/bin/modinfo
|
||||
export MODPROBE=${kmod}/bin/modprobe
|
||||
export RMMOD=${kmod}/bin/rmmod
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
./autogen.sh --prefix=$out
|
||||
make
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
make install $out
|
||||
cp -r config/{helpers,icmptypes,ipsets,services,zones} $out/etc/firewalld
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A service daemon with D-Bus interface";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
};
|
||||
}
|
|
@ -12212,8 +12212,6 @@ with pkgs;
|
|||
|
||||
firejail = callPackage ../os-specific/linux/firejail {};
|
||||
|
||||
firewalld = callPackage ../os-specific/linux/firewalld {};
|
||||
|
||||
fnotifystat = callPackage ../os-specific/linux/fnotifystat { };
|
||||
|
||||
forkstat = callPackage ../os-specific/linux/forkstat { };
|
||||
|
|
Loading…
Reference in a new issue