mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 11:02:05 +00:00
added libmilter, opendkim
svn path=/nixpkgs/trunk/; revision=19875
This commit is contained in:
parent
5c66bbab77
commit
a5cecee12e
33
pkgs/development/libraries/libmilter/default.nix
Normal file
33
pkgs/development/libraries/libmilter/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{stdenv, fetchurl, m4}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libmilter-8.14.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "ftp://ftp.sendmail.org/pub/sendmail/sendmail.8.14.4.tar.gz";
|
||||
sha256 = "1cbwz5ynl8snrdkl7ay1qhqknbyv0qsvdvcri7mb662hgi1hj0dw";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
ensureDir $out/lib
|
||||
cd libmilter
|
||||
cat > a.m4 <<EOF
|
||||
define(\`confEBINDIR', \`$out/libexec')
|
||||
define(\`confINCLUDEDIR', \`$out/include')
|
||||
define(\`confLIBDIR', \`$out/lib')
|
||||
define(\`confMANROOT', \`$out/man/cat')
|
||||
define(\`confMANROOTMAN', \`$out/man/man')
|
||||
define(\`confMBINDIR', \`$out/sbin')
|
||||
define(\`confSBINDIR', \`$out/sbin')
|
||||
define(\`confSHAREDLIBDIR', \`$out/lib')
|
||||
define(\`confUBINDIR', \`$out/bin')
|
||||
define(\`confINCGRP', \`root')
|
||||
define(\`confLIBGRP', \`root')
|
||||
EOF
|
||||
sh Build -f ./a.m4
|
||||
'';
|
||||
|
||||
patches = [ ./install.patch ];
|
||||
|
||||
buildInputs = [m4];
|
||||
}
|
42
pkgs/development/libraries/libmilter/install.patch
Normal file
42
pkgs/development/libraries/libmilter/install.patch
Normal file
|
@ -0,0 +1,42 @@
|
|||
diff -rc sendmail-8.14.4/devtools/M4/UNIX/library.m4 sendmail-8.14.4-new/devtools/M4/UNIX/library.m4
|
||||
*** sendmail-8.14.4/devtools/M4/UNIX/library.m4 Wed Sep 6 00:56:53 2006
|
||||
--- sendmail-8.14.4-new/devtools/M4/UNIX/library.m4 Tue Feb 9 11:25:13 2010
|
||||
***************
|
||||
*** 28,34 ****
|
||||
|
||||
install-`'bldCURRENT_PRODUCT: bldCURRENT_PRODUCT.a
|
||||
ifdef(`bldINSTALLABLE', ` ifdef(`confMKDIR', `if [ ! -d ${DESTDIR}${bldINSTALL_DIR`'LIBDIR} ]; then confMKDIR -p ${DESTDIR}${bldINSTALL_DIR`'LIBDIR}; else :; fi ')
|
||||
! ${INSTALL} -c -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} bldCURRENT_PRODUCT.a ${DESTDIR}${LIBDIR}')
|
||||
|
||||
bldCURRENT_PRODUCT-clean:
|
||||
rm -f ${OBJS} bldCURRENT_PRODUCT.a ${MANPAGES}
|
||||
--- 28,34 ----
|
||||
|
||||
install-`'bldCURRENT_PRODUCT: bldCURRENT_PRODUCT.a
|
||||
ifdef(`bldINSTALLABLE', ` ifdef(`confMKDIR', `if [ ! -d ${DESTDIR}${bldINSTALL_DIR`'LIBDIR} ]; then confMKDIR -p ${DESTDIR}${bldINSTALL_DIR`'LIBDIR}; else :; fi ')
|
||||
! ${INSTALL} -c bldCURRENT_PRODUCT.a ${DESTDIR}${LIBDIR}')
|
||||
|
||||
bldCURRENT_PRODUCT-clean:
|
||||
rm -f ${OBJS} bldCURRENT_PRODUCT.a ${MANPAGES}
|
||||
diff -rc sendmail-8.14.4/libmilter/Makefile.m4 sendmail-8.14.4-new/libmilter/Makefile.m4
|
||||
*** sendmail-8.14.4/libmilter/Makefile.m4 Tue Nov 24 22:59:33 2009
|
||||
--- sendmail-8.14.4-new/libmilter/Makefile.m4 Tue Feb 9 10:47:19 2010
|
||||
***************
|
||||
*** 33,40 ****
|
||||
MFDEF= ${SRCDIR}/inc`'lude/libmilter/mfdef.h
|
||||
install-mfapi: ${MFAPI}
|
||||
if [ ! -d ${DESTDIR}${INCLUDEDIR}/libmilter ]; then mkdir -p ${DESTDIR}${INCLUDEDIR}/libmilter; else :; fi
|
||||
! ${INSTALL} -c -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} ${MFAPI} ${DESTDIR}${INCLUDEDIR}/libmilter/mfapi.h
|
||||
! ${INSTALL} -c -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} ${MFDEF} ${DESTDIR}${INCLUDEDIR}/libmilter/mfdef.h
|
||||
divert(0)
|
||||
|
||||
bldFINISH
|
||||
--- 33,40 ----
|
||||
MFDEF= ${SRCDIR}/inc`'lude/libmilter/mfdef.h
|
||||
install-mfapi: ${MFAPI}
|
||||
if [ ! -d ${DESTDIR}${INCLUDEDIR}/libmilter ]; then mkdir -p ${DESTDIR}${INCLUDEDIR}/libmilter; else :; fi
|
||||
! ${INSTALL} -c ${MFAPI} ${DESTDIR}${INCLUDEDIR}/libmilter/mfapi.h
|
||||
! ${INSTALL} -c ${MFDEF} ${DESTDIR}${INCLUDEDIR}/libmilter/mfdef.h
|
||||
divert(0)
|
||||
|
||||
bldFINISH
|
13
pkgs/development/libraries/opendkim/default.nix
Normal file
13
pkgs/development/libraries/opendkim/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{stdenv, fetchurl, openssl, libmilter}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "opendkim-1.2.2";
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/opendkim/files/${name}.tar.gz";
|
||||
sha256 = "01kvhm10kv17mm4zfz0zd24wzr98fxqwyzm56m2l1v262ng3l4nw";
|
||||
};
|
||||
|
||||
configureFlags="--with-openssl=${openssl} --with-milter=${libmilter}";
|
||||
|
||||
buildInputs = [openssl libmilter];
|
||||
}
|
|
@ -1211,6 +1211,10 @@ let
|
|||
inherit fetchurl stdenv readline mysql postgresql sqlite;
|
||||
};
|
||||
|
||||
opendkim = import ../development/libraries/opendkim {
|
||||
inherit fetchurl stdenv openssl libmilter;
|
||||
};
|
||||
|
||||
openjade = import ../tools/text/sgml/openjade {
|
||||
inherit fetchurl opensp perl;
|
||||
stdenv = overrideGCC stdenv gcc33;
|
||||
|
@ -4278,6 +4282,10 @@ let
|
|||
inherit fetchurl stdenv curl;
|
||||
};
|
||||
|
||||
libmilter = import ../development/libraries/libmilter {
|
||||
inherit fetchurl stdenv m4;
|
||||
};
|
||||
|
||||
libmowgli = import ../development/libraries/libmowgli {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue