consistent license, various updates
[buildscripts] / exim
1 #!/bin/bash
2
3
4 apt-get install -y libopendmarc-dev libspf2-dev
5 apt-get -y build-dep exim4/flidas
6 # https://wiki.debian.org/BuildingAPackage
7 apt-get install build-essential dpatch fakeroot devscripts equivs lintian quilt
8 mkct
9 apt-get source exim4/flidas
10
11 # to just patch heavy:
12 # first apply below patch, then build, then
13 #diff -u ./EDITME.exim4-light ./EDITME.exim4-heavy > /tmp/EDITME.exim4-heavy.diff
14 # remove extraneous differences
15 # meld ./debian/EDITME.exim4-heavy.diff /tmp/EDITME.exim4-heavy.diff
16 # diff -u ./debian/EDITME.exim4-heavy.diff /tmp/EDITME.exim4-heavy.diff
17 # edit the diff to get filenames right.
18
19
20 patch -p0 <<'EOF'
21 --- ./exim4-4.86.2/src/EDITME.orig 2019-07-31 11:34:22.284977059 -0400
22 +++ ./exim4-4.86.2/src/EDITME 2019-07-31 11:35:01.361206192 -0400
23 @@ -445,9 +445,9 @@
24 # installed on your system (www.libspf2.org). Depending on where it is installed
25 # you may have to edit the CFLAGS and LDFLAGS lines.
26
27 -# EXPERIMENTAL_SPF=yes
28 -# CFLAGS += -I/usr/local/include
29 -# LDFLAGS += -lspf2
30 +EXPERIMENTAL_SPF=yes
31 +CFLAGS += -I/usr/local/include
32 +LDFLAGS += -lspf2
33
34 # Uncomment the following lines to add SRS (Sender rewriting scheme) support.
35 # You need to have libsrs_alt installed on your system (srs.mirtol.com).
36 @@ -469,9 +469,9 @@
37
38 # Uncomment the following line to add DMARC checking capability, implemented
39 # using libopendmarc libraries.
40 -# EXPERIMENTAL_DMARC=yes
41 -# CFLAGS += -I/usr/local/include
42 -# LDFLAGS += -lopendmarc
43 +EXPERIMENTAL_DMARC=yes
44 +CFLAGS += -I/usr/local/include
45 +LDFLAGS += -lopendmarc
46
47
48 # Uncomment the following line to support Events,
49 EOF
50
51 cd exim4-4.86.2
52 fakeroot debian/rules binary