opensmtpd-filter-dkimsign: init at 0.6
This commit is contained in:
parent
97ed34ec68
commit
f58f0e6b9f
3 changed files with 61 additions and 0 deletions
pkgs
servers/mail/opensmtpd/filter-dkimsign
top-level
36
pkgs/servers/mail/opensmtpd/filter-dkimsign/default.nix
Normal file
36
pkgs/servers/mail/opensmtpd/filter-dkimsign/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, libopensmtpd
|
||||
, openssl
|
||||
, mandoc
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "opensmtpd-filter-dkimsign";
|
||||
version = "0.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://imperialat.at/releases/filter-dkimsign-${version}.tar.gz";
|
||||
hash = "sha256-O18NtAuSNg82uKnUx+R4h3e1IBSElTrFWBBkr2AYNsM=";
|
||||
};
|
||||
|
||||
patches = [ ./no-chown-while-installing.patch ];
|
||||
|
||||
buildInputs = [ libopensmtpd openssl ];
|
||||
|
||||
nativeBuildInputs = [ mandoc ];
|
||||
|
||||
makeFlags = [
|
||||
"-f Makefile.gnu"
|
||||
"HAVE_ED25519=1"
|
||||
"DESTDIR=$(out)"
|
||||
"LOCALBASE="
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "OpenSMTPD filter for DKIM signing";
|
||||
homepage = "http://imperialat.at/dev/filter-dkimsign/";
|
||||
license = licenses.isc;
|
||||
maintainers = with maintainers; [ malvo ];
|
||||
};
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
diff --git a/Makefile.gnu b/Makefile.gnu
|
||||
index 1f97bd2..807b692 100644
|
||||
--- a/Makefile.gnu
|
||||
+++ b/Makefile.gnu
|
||||
@@ -46,11 +46,7 @@ NEED_PLEDGE?= 1
|
||||
|
||||
MANFORMAT?= mangz
|
||||
|
||||
-BINOWN?= root
|
||||
-BINGRP?= root
|
||||
BINPERM?= 755
|
||||
-MANOWN?= root
|
||||
-MANGRP?= root
|
||||
MANPERM?= 644
|
||||
|
||||
ifeq (${MANFORMAT}, mangz)
|
||||
@@ -115,5 +111,5 @@ clean:
|
||||
|
||||
.PHONY: install
|
||||
install: ${PROG}
|
||||
- ${INSTALL} -D -o ${BINOWN} -g ${BINGRP} -m ${BINPERM} ${PROG} ${DESTDIR}${BINDIR}/${PROG}
|
||||
- ${INSTALL} -D -o ${MANOWN} -g ${MANGRP} -m ${MANPERM} ${TARGET_MAN} ${DESTDIR}${MANDIR}/${TARGET_MAN}
|
||||
+ ${INSTALL} -D -m ${BINPERM} ${PROG} ${DESTDIR}${BINDIR}/${PROG}
|
||||
+ ${INSTALL} -D -m ${MANPERM} ${TARGET_MAN} ${DESTDIR}${MANDIR}/${TARGET_MAN}
|
|
@ -22085,6 +22085,7 @@ with pkgs;
|
|||
opensmtpd = callPackage ../servers/mail/opensmtpd { };
|
||||
opensmtpd-extras = callPackage ../servers/mail/opensmtpd/extras.nix { };
|
||||
opensmtpd-filter-rspamd = callPackage ../servers/mail/opensmtpd/filter-rspamd.nix { };
|
||||
opensmtpd-filter-dkimsign = callPackage ../servers/mail/opensmtpd/filter-dkimsign { };
|
||||
libopensmtpd = callPackage ../servers/mail/opensmtpd/libopensmtpd { };
|
||||
|
||||
openxr-loader = callPackage ../development/libraries/openxr-loader { };
|
||||
|
|
Loading…
Reference in a new issue