diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-06-04 09:53:11 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-04-25 00:04:24 +0200 |
commit | 2b96efc8a4b287509c38509d44988f32a179a001 (patch) | |
tree | cdd0671badddde368f51510eac9ee2b20ff6073e /pkgs | |
parent | fb7f2ad86ebdee514b3b361aa5615e333ac66780 (diff) | |
download | NUR-2b96efc8a4b287509c38509d44988f32a179a001.tar.gz NUR-2b96efc8a4b287509c38509d44988f32a179a001.tar.zst NUR-2b96efc8a4b287509c38509d44988f32a179a001.zip |
Add opendmarc openarc and opendkim configuration and packages
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/default.nix | 2 | ||||
-rw-r--r-- | pkgs/openarc/default.nix | 18 | ||||
-rw-r--r-- | pkgs/openarc/openarc.json | 15 | ||||
-rw-r--r-- | pkgs/opendmarc/default.nix | 26 | ||||
-rw-r--r-- | pkgs/opendmarc/libspf2.nix | 35 |
5 files changed, 96 insertions, 0 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix index c91f6726..74f9d184 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix | |||
@@ -18,6 +18,8 @@ rec { | |||
18 | notmuch-python2 = callPackage ../pkgs/notmuch/notmuch-python { pythonPackages = python2Packages; }; | 18 | notmuch-python2 = callPackage ../pkgs/notmuch/notmuch-python { pythonPackages = python2Packages; }; |
19 | notmuch-python3 = callPackage ../pkgs/notmuch/notmuch-python { pythonPackages = python3Packages; }; | 19 | notmuch-python3 = callPackage ../pkgs/notmuch/notmuch-python { pythonPackages = python3Packages; }; |
20 | notmuch-vim = callPackage ../pkgs/notmuch/notmuch-vim {}; | 20 | notmuch-vim = callPackage ../pkgs/notmuch/notmuch-vim {}; |
21 | openarc = callPackage ../pkgs/openarc { inherit mylibs; }; | ||
22 | opendmarc = callPackage ../pkgs/opendmarc { libspf2 = callPackage ../pkgs/opendmarc/libspf2.nix {}; }; | ||
21 | pg_activity = callPackage ../pkgs/pg_activity { inherit mylibs; }; | 23 | pg_activity = callPackage ../pkgs/pg_activity { inherit mylibs; }; |
22 | pgloader = callPackage ../pkgs/pgloader {}; | 24 | pgloader = callPackage ../pkgs/pgloader {}; |
23 | telegram-cli = callPackage ../pkgs/telegram-cli { inherit mylibs; }; | 25 | telegram-cli = callPackage ../pkgs/telegram-cli { inherit mylibs; }; |
diff --git a/pkgs/openarc/default.nix b/pkgs/openarc/default.nix new file mode 100644 index 00000000..e5c9a81c --- /dev/null +++ b/pkgs/openarc/default.nix | |||
@@ -0,0 +1,18 @@ | |||
1 | { stdenv, autoconf, automake, file, libtool, libbsd, mylibs, openssl, pkg-config, libmilter }: | ||
2 | |||
3 | stdenv.mkDerivation (mylibs.fetchedGithub ./openarc.json // rec { | ||
4 | buildInputs = [ automake autoconf libbsd libtool openssl pkg-config libmilter ]; | ||
5 | |||
6 | configureFlags = [ | ||
7 | "--with-milter=${libmilter}" | ||
8 | ]; | ||
9 | preConfigure = '' | ||
10 | autoreconf --force --install | ||
11 | sed -i -e "s@/usr/bin/file@${file}/bin/file@" ./configure | ||
12 | ''; | ||
13 | meta = with stdenv.lib; { | ||
14 | description = "Open source ARC implementation"; | ||
15 | homepage = https://github.com/trusteddomainproject/OpenARC; | ||
16 | platforms = platforms.unix; | ||
17 | }; | ||
18 | }) | ||
diff --git a/pkgs/openarc/openarc.json b/pkgs/openarc/openarc.json new file mode 100644 index 00000000..1081b090 --- /dev/null +++ b/pkgs/openarc/openarc.json | |||
@@ -0,0 +1,15 @@ | |||
1 | { | ||
2 | "tag": "355ee2a-master", | ||
3 | "meta": { | ||
4 | "name": "openarc", | ||
5 | "url": "https://github.com/trusteddomainproject/OpenARC", | ||
6 | "branch": "master" | ||
7 | }, | ||
8 | "github": { | ||
9 | "owner": "trusteddomainproject", | ||
10 | "repo": "OpenARC", | ||
11 | "rev": "355ee2a1ca85acccce494478991983b54f794f4e", | ||
12 | "sha256": "0101k6hwwf3pb3jrc88x86d4l698gjmynn9v2rpvxwxv200r2i65", | ||
13 | "fetchSubmodules": true | ||
14 | } | ||
15 | } | ||
diff --git a/pkgs/opendmarc/default.nix b/pkgs/opendmarc/default.nix new file mode 100644 index 00000000..1c502482 --- /dev/null +++ b/pkgs/opendmarc/default.nix | |||
@@ -0,0 +1,26 @@ | |||
1 | { stdenv, fetchurl, pkgconfig, libbsd, openssl, libmilter , perl, makeWrapper, libspf2 }: | ||
2 | |||
3 | stdenv.mkDerivation rec { | ||
4 | name = "opendmarc-${version}"; | ||
5 | version = "1.3.2"; | ||
6 | |||
7 | src = fetchurl { | ||
8 | url = "mirror://sourceforge/opendmarc/files/${name}.tar.gz"; | ||
9 | sha256 = "1yrggj8yq0915y2i34gfz2xpl1w2lgb1vggp67rwspgzm40lng11"; | ||
10 | }; | ||
11 | |||
12 | configureFlags= [ | ||
13 | "--with-spf" | ||
14 | "--with-spf2-include=${libspf2}/include/spf2" | ||
15 | "--with-spf2-lib=${libspf2}/lib/" | ||
16 | "--with-milter=${libmilter}" | ||
17 | ]; | ||
18 | |||
19 | buildInputs = [ libspf2 libbsd openssl libmilter perl ]; | ||
20 | |||
21 | meta = with stdenv.lib; { | ||
22 | description = "Free open source software implementation of the DMARC specification"; | ||
23 | homepage = http://www.trusteddomain.org/opendmarc/; | ||
24 | platforms = platforms.unix; | ||
25 | }; | ||
26 | } | ||
diff --git a/pkgs/opendmarc/libspf2.nix b/pkgs/opendmarc/libspf2.nix new file mode 100644 index 00000000..ca02d59f --- /dev/null +++ b/pkgs/opendmarc/libspf2.nix | |||
@@ -0,0 +1,35 @@ | |||
1 | { stdenv, file, fetchurl, fetchpatch, libnsl }: | ||
2 | |||
3 | stdenv.mkDerivation rec { | ||
4 | name = "libspf2-${version}"; | ||
5 | version = "1.2.10"; | ||
6 | |||
7 | patches = [ | ||
8 | (fetchpatch { | ||
9 | name = "fix-variadic-macros.patch"; | ||
10 | url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/fix-variadic-macros.patch?h=packages/libspf2"; | ||
11 | sha256 = "00dqpcgjr9jy2qprgqv2qiyvq8y3wlz4yns9xzabf2064jzqh2ic"; | ||
12 | }) | ||
13 | ]; | ||
14 | preConfigure = '' | ||
15 | sed -i -e "s@/usr/bin/file@${file}/bin/file@" ./configure | ||
16 | ''; | ||
17 | configureFlags = [ | ||
18 | "--enable-static" | ||
19 | ]; | ||
20 | postInstall = '' | ||
21 | rm $out/bin/*_static | ||
22 | ''; | ||
23 | src = fetchurl { | ||
24 | url = "https://www.libspf2.org/spf/${name}.tar.gz"; | ||
25 | sha256 = "1j91p0qiipzf89qxq4m1wqhdf01hpn1h5xj4djbs51z23bl3s7nr"; | ||
26 | }; | ||
27 | |||
28 | buildInputs = [ libnsl ]; | ||
29 | |||
30 | meta = with stdenv.lib; { | ||
31 | description = "Sender Policy Framework record checking library"; | ||
32 | homepage = https://www.libspf2.org/; | ||
33 | platforms = platforms.unix; | ||
34 | }; | ||
35 | } | ||