forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exim.yaml
175 lines (159 loc) · 4.92 KB
/
exim.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
package:
name: exim
version: "4.98"
epoch: 3
description: Message Transfer Agent
copyright:
- license: GPL-2.0-or-later
checks:
disabled:
- setuidgid
data:
- name: exim-lookups-with-deps
items:
mysql: "mariadb-connector-c"
sqlite: "sqlite-libs"
pgsql: "libpq"
environment:
contents:
packages:
- bash
- build-base
- busybox
- ca-certificates-bundle
- gawk
- libidn-dev
- libspf2-dev
- linux-headers
- mariadb
- mariadb-connector-c-dev
- openssf-compiler-options
- openssl-dev>3
- pcre2-dev
- perl
- perl-file-fcntllock
- postgresql-dev
- sqlite-dev
- tdb
- tdb-dev
- wolfi-baselayout
accounts:
users:
- username: exim
uid: 65332
pipeline:
- uses: fetch
with:
expected-sha256: 0ebc108a779f9293ba4b423c20818f9a3db79b60286d96abc6ba6b85a15852f7
uri: https://ftp.exim.org/pub/exim/exim4/exim-${{package.version}}.tar.xz
- runs: |
cp exim.Makefile Local/Makefile
sed -i -e 's/^HAVE_ICONV.*$//' OS/Makefile-Linux
# This is kind of hacky, but the makefile tests the binary and it won't run without a user configured
make makefile
make
- runs: |
install -m750 -D -g mail -d "${{targets.destdir}}"/etc/mail
make DESTDIR="${{targets.destdir}}" INSTALL_ARG="-no_symlink -no_chown exim" install
install -D -m644 doc/exim.8 "${{targets.destdir}}"/usr/share/man/man8/exim.8
cd "${{targets.destdir}}"/usr/sbin
mv exim-* exim
chmod u+s exim
for i in mailq rmail rsmtp runq sendmail newaliases; do
ln -s exim $i
done
# Fix clamav local socket path, Add variant to spamd address
sed -i \
-e 's~# av_scanner = clamd:/tmp/clamd~# av_scanner = clamd:/run/clamav/clamd.sock~' \
-e '/# spamd_address = 127.0.0.1 783/a# spamd_address = 127.0.0.1 11333 variant=rspamd' \
"${{targets.destdir}}"/etc/${{package.name}}/${{package.name}}.conf
# Create subdirs for logs and extensions
install -dm750 -o ${{package.name}} -g mail "${{targets.destdir}}"/var/log/${{package.name}}
mkdir -p "${{targets.destdir}}"/usr/lib/${{package.name}}
- uses: strip
subpackages:
- range: exim-lookups-with-deps
name: exim-${{range.key}}
description: "EXIM extension: ${{range.key}}"
pipeline:
- runs: |
install -D -m 755 ./build-Linux-${{build.arch}}/lookups/${{range.key}}.so ${{targets.subpkgdir}}/usr/lib/${{package.name}}/${{range.key}}.so
- uses: strip
dependencies:
runtime:
- exim=${{package.full-version}}
- ${{range.value}}
- name: exim-dnsdb
description: "EXIM extension: dnsdb"
pipeline:
- runs: |
install -D -m 755 ./build-Linux-${{build.arch}}/lookups/dnsdb.so ${{targets.subpkgdir}}/usr/lib/${{package.name}}/dnsdb.so
- uses: strip
dependencies:
runtime:
- exim=${{package.full-version}}
- name: exim-dbmdb
description: "EXIM extension: dbmdb"
pipeline:
- runs: |
install -D -m 755 ./build-Linux-${{build.arch}}/lookups/dbmdb.so ${{targets.subpkgdir}}/usr/lib/${{package.name}}/dbmdb.so
- uses: strip
dependencies:
runtime:
- exim=${{package.full-version}}
- name: exim-cdb
description: "EXIM extension: cdb"
pipeline:
- runs: |
install -D -m 755 ./build-Linux-${{build.arch}}/lookups/cdb.so ${{targets.subpkgdir}}/usr/lib/${{package.name}}/cdb.so
- name: exim-scripts
description: "EXIM scripts"
pipeline:
- runs: |
make DESTDIR="${{targets.subpkgdir}}" INSTALL_ARG="exicyclog exim_checkaccess eximstats exiqgrep exigrep exinext exiqsumm exipick exiwhat convert4r3 convert4r4 exim_msgdate exim_id_update" install
rm -fr "${{targets.subpkgdir}}/etc"
- uses: strip
dependencies:
runtime:
- exim=${{package.full-version}}
- perl
- perl-file-fcntllock
- name: exim-utils
description: "EXIM utils"
pipeline:
- runs: |
install -d "${{targets.subpkgdir}}/etc/mail"
make DESTDIR="${{targets.subpkgdir}}" INSTALL_ARG="exim_dbmbuild exim_dumpdb exim_tidydb exim_fixdb exim_lock" install
rm -fr "${{targets.subpkgdir}}/etc"
- uses: strip
dependencies:
runtime:
- exim=${{package.full-version}}
test:
environment:
accounts:
users:
- username: exim
uid: 65332
groups:
- groupname: exim
gid: 65332
contents:
packages:
- shadow
- sudo-rs
- glibc-locales
pipeline:
- name: "Test exim is installed and working"
runs: |
if ! command -v exim &> /dev/null; then
echo "Exim is not installed."
exit 1
else
echo "Exim is installed."
fi
/usr/sbin/exim -bP
update:
enabled: true
release-monitor:
identifier: 768