X-Git-Url: https://iankelling.org/git/?p=buildscripts;a=blobdiff_plain;f=exim;fp=exim;h=6bfeb5a0ac1f2aea5565a628d0b1f2a6a939677c;hp=0000000000000000000000000000000000000000;hb=c426f5dc07b0a086a3163697db3abb516955566c;hpb=850dedd6b7a117c86c4e3e97a4ad1c948e9cd7a0 diff --git a/exim b/exim new file mode 100644 index 0000000..6bfeb5a --- /dev/null +++ b/exim @@ -0,0 +1,52 @@ +#!/bin/bash + + +apt-get install -y libopendmarc-dev libspf2-dev +apt-get -y build-dep exim4/flidas +# https://wiki.debian.org/BuildingAPackage +apt-get install build-essential dpatch fakeroot devscripts equivs lintian quilt +mkct +apt-get source exim4/flidas + +# to just patch heavy: +# first apply below patch, then build, then +#diff -u ./EDITME.exim4-light ./EDITME.exim4-heavy > /tmp/EDITME.exim4-heavy.diff +# remove extraneous differences +# meld ./debian/EDITME.exim4-heavy.diff /tmp/EDITME.exim4-heavy.diff +# diff -u ./debian/EDITME.exim4-heavy.diff /tmp/EDITME.exim4-heavy.diff +# edit the diff to get filenames right. + + +patch -p0 <<'EOF' +--- ./exim4-4.86.2/src/EDITME.orig 2019-07-31 11:34:22.284977059 -0400 ++++ ./exim4-4.86.2/src/EDITME 2019-07-31 11:35:01.361206192 -0400 +@@ -445,9 +445,9 @@ + # installed on your system (www.libspf2.org). Depending on where it is installed + # you may have to edit the CFLAGS and LDFLAGS lines. + +-# EXPERIMENTAL_SPF=yes +-# CFLAGS += -I/usr/local/include +-# LDFLAGS += -lspf2 ++EXPERIMENTAL_SPF=yes ++CFLAGS += -I/usr/local/include ++LDFLAGS += -lspf2 + + # Uncomment the following lines to add SRS (Sender rewriting scheme) support. + # You need to have libsrs_alt installed on your system (srs.mirtol.com). +@@ -469,9 +469,9 @@ + + # Uncomment the following line to add DMARC checking capability, implemented + # using libopendmarc libraries. +-# EXPERIMENTAL_DMARC=yes +-# CFLAGS += -I/usr/local/include +-# LDFLAGS += -lopendmarc ++EXPERIMENTAL_DMARC=yes ++CFLAGS += -I/usr/local/include ++LDFLAGS += -lopendmarc + + + # Uncomment the following line to support Events, +EOF + +cd exim4-4.86.2 +fakeroot debian/rules binary