git.iko.soy/typeable/nixpkgs
on master help sign in
libspf2: init at 1.2.10
commit43a5bab9a5cf3247c4c8c11e395ee5159857beac authorpacien <pacien.trangirard@pacien.net> dateThu 22 Aug 2019, 17:50 (7 years ago) parent3d91781
2 files changed+45
pkgs/development/libraries/libspf2/default.nix+43 pkgs/top-level/all-packages.nix+2
pkgs/development/libraries/libspf2/default.nixnew file+43
@@ -0,0 +1,43 @@
1+{ stdenv, fetchurl, autoreconfHook }:
2+
3+with stdenv.lib;
4+
5+stdenv.mkDerivation rec {
6+ pname = "libspf2";
7+ version = "1.2.10";
8+
9+ src = fetchurl {
10+ url = "https://www.libspf2.org/spf/libspf2-${version}.tar.gz";
11+ sha256 = "1j91p0qiipzf89qxq4m1wqhdf01hpn1h5xj4djbs51z23bl3s7nr";
12+ };
13+
14+ patches = [
15+ (fetchurl {
16+ name = "0001-gcc-variadic-macros.patch";
17+ url = "https://github.com/shevek/libspf2/commit/5852828582f556e73751076ad092f72acf7fc8b6.patch";
18+ sha256 = "1v6ashqzpr0xidxq0vpkjd8wd66cj8df01kyzj678ljzcrax35hk";
19+ })
20+ ];
21+
22+ postPatch = ''
23+ # disable static bins compilation
24+ sed -i \
25+ -e '/bin_PROGRAMS/s/spfquery_static//' src/spfquery/Makefile.am \
26+ -e '/bin_PROGRAMS/s/spftest_static//' src/spftest/Makefile.am \
27+ -e '/bin_PROGRAMS/s/spfd_static//' src/spfd/Makefile.am \
28+ -e '/bin_PROGRAMS/s/spf_example_static//' src/spf_example/Makefile.am
29+ '';
30+
31+ # autoreconf necessary because we modified automake files
32+ nativeBuildInputs = [ autoreconfHook ];
33+
34+ doCheck = true;
35+
36+ meta = {
37+ description = "Implementation of the Sender Policy Framework for SMTP authorization";
38+ homepage = https://www.libspf2.org;
39+ license = with licenses; [ lgpl21Plus bsd2 ];
40+ maintainers = with maintainers; [ pacien ];
41+ platforms = platforms.all;
42+ };
43+}
pkgs/top-level/all-packages.nix+2
@@ -4498,6 +4498,8 @@ in
44984498
44994499 libsidplayfp = callPackage ../development/libraries/libsidplayfp { };
45004500
4501+ libspf2 = callPackage ../development/libraries/libspf2 { };
4502+
45014503 libsrs2 = callPackage ../development/libraries/libsrs2 { };
45024504
45034505 libtermkey = callPackage ../development/libraries/libtermkey { };