various fixes
[buildscripts] / exim
1 #!/bin/bash
2
3 # libgcrypt-dev is a test dependency
4 # libidn11-dev is some build dep for newer version not in
5 apt-get install -y libopendmarc-dev libspf2-dev libgcrypt-dev libidn11-dev
6
7
8 apt-get -y build-dep exim4/etiona
9 # https://wiki.debian.org/BuildingAPackage
10 apt-get install build-essential dpatch fakeroot devscripts equivs lintian quilt
11
12 cd /a/opt/exim/src
13 # created by using make wrapper /b/make-wrap and building the exim package
14 #. /a/opt/dexim/iank-debian-make-env
15
16 declare -x LC_ALL='C'
17 declare -x PERL_USE_UNSAFE_INC='1'
18 declare -x CFLAGS='-g -O2 -D_LARGEFILE_SOURCE -fno-strict-aliasing -Wall '
19 make
20 # copy src/Local/Makefile from debian experimental package into local repo,
21
22 # for running the tests,
23 # edit src/Local/Makefile to remove ref: from EXIM_USER and EXIM_GROUP,
24 # then change CONFIGURE_OWNER and CONGIGURE_USER to the default ones that
25 # will be used when creating /a/opt/exim/test/test-config (iank/user2)
26 # echo /a/opt/exim/test/test-config | s dd of=/etc/exim4/trusted_configs
27 # edit /etc/hostname to be an fqdn, then hostname -F /etc/hostname. after
28 # running a single test, change this back, its cached in test/dnszones, and
29 # if you need to update that cache, rm -rf that dir.
30
31 ##### the following just patches the flidas package to have dmarc support
32
33 # mkct
34 # apt-get source exim4/etiona
35
36 # # to just patch heavy:
37 # # first apply below patch, then build, then
38 # #diff -u ./EDITME.exim4-light ./EDITME.exim4-heavy > /tmp/EDITME.exim4-heavy.diff
39 # # remove extraneous differences
40 # # meld ./debian/EDITME.exim4-heavy.diff /tmp/EDITME.exim4-heavy.diff
41 # # diff -u ./debian/EDITME.exim4-heavy.diff /tmp/EDITME.exim4-heavy.diff
42 # # edit the diff to get filenames right.
43
44
45 # patch -p0 <<'EOF'
46 # --- ./exim4-4.86.2/src/EDITME.orig 2019-07-31 11:34:22.284977059 -0400
47 # +++ ./exim4-4.86.2/src/EDITME 2019-07-31 11:35:01.361206192 -0400
48 # @@ -445,9 +445,9 @@
49 # # installed on your system (www.libspf2.org). Depending on where it is installed
50 # # you may have to edit the CFLAGS and LDFLAGS lines.
51
52 # -# EXPERIMENTAL_SPF=yes
53 # -# CFLAGS += -I/usr/local/include
54 # -# LDFLAGS += -lspf2
55 # +EXPERIMENTAL_SPF=yes
56 # +CFLAGS += -I/usr/local/include
57 # +LDFLAGS += -lspf2
58
59 # # Uncomment the following lines to add SRS (Sender rewriting scheme) support.
60 # # You need to have libsrs_alt installed on your system (srs.mirtol.com).
61 # @@ -469,9 +469,9 @@
62
63 # # Uncomment the following line to add DMARC checking capability, implemented
64 # # using libopendmarc libraries.
65 # -# EXPERIMENTAL_DMARC=yes
66 # -# CFLAGS += -I/usr/local/include
67 # -# LDFLAGS += -lopendmarc
68 # +EXPERIMENTAL_DMARC=yes
69 # +CFLAGS += -I/usr/local/include
70 # +LDFLAGS += -lopendmarc
71
72
73 # # Uncomment the following line to support Events,
74 # EOF
75
76 # cd exim4-4.86.2
77 # fakeroot debian/rules binary