commit | author | age
|
134834
|
1 |
# |
F |
2 |
# This file and its contents are supplied under the terms of the |
|
3 |
# Common Development and Distribution License ("CDDL"), version 1.0. |
|
4 |
# You may only use this file in accordance with the terms of version |
|
5 |
# 1.0 of the CDDL. |
|
6 |
# |
|
7 |
# A full copy of the text of the CDDL should have accompanied this |
|
8 |
# source. A copy of the CDDL is also available via the Internet at |
|
9 |
# http://www.illumos.org/license/CDDL. |
|
10 |
# |
|
11 |
|
|
12 |
# |
|
13 |
# Copyright 2023 Friedrich Kink |
|
14 |
# |
|
15 |
|
83dc77
|
16 |
%patch% 01-no-MaxMind.patch |
MT |
17 |
%patch% 02-dnsbl_subtests-run_net_tests.patch |
|
18 |
|
|
19 |
%file% spamassassin |
|
20 |
%file% spamassassin.xml |
134834
|
21 |
|
F |
22 |
%include-3% |
83dc77
|
23 |
# see the PACKAGING file |
MT |
24 |
CONFIGURE_OPTIONS += INSTALLDIRS=vendor |
|
25 |
CONFIGURE_OPTIONS += CONTACT_ADDRESS=postmaster@example.com |
|
26 |
CONFIGURE_OPTIONS += SYSCONFDIR=/etc |
|
27 |
CONFIGURE_OPTIONS += DATADIR=/usr/share/spamassassin |
|
28 |
CONFIGURE_OPTIONS += LOCALSTATEDIR=/var/spamassassin |
|
29 |
CONFIGURE_OPTIONS += ENABLE_SSL=yes |
|
30 |
CONFIGURE_OPTIONS += CONFIGURE="\$$(PERL_BIN) spamc/configure.pl LDFLAGS=-L$(OPENSSL_LIBDIR) CFLAGS=-I$(OPENSSL_INCDIR)" |
|
31 |
CONFIGURE_OPTIONS += < /dev/null |
134834
|
32 |
|
83dc77
|
33 |
# install spamassassin |
MT |
34 |
COMPONENT_POST_INSTALL_ACTION += \ |
|
35 |
$(MKDIR) $(PROTO_DIR)/lib/svc/method ; \ |
|
36 |
$(CP) $(COMPONENT_DIR)/files/spamassassin $(PROTO_DIR)/lib/svc/method ; |
|
37 |
# install spamassassin.xml |
|
38 |
COMPONENT_POST_INSTALL_ACTION += \ |
|
39 |
$(MKDIR) $(PROTO_DIR)/lib/svc/manifest/network ; \ |
|
40 |
$(CP) $(COMPONENT_DIR)/files/spamassassin.xml $(PROTO_DIR)/lib/svc/manifest/network ; |
134834
|
41 |
%hook-manifest% |
83dc77
|
42 |
# move unversioned files to unversioned package |
MT |
43 |
grep -v 'PERLVER' "$DISTRIBUTION-PERLVER.p5m" \ |
|
44 |
| egrep '^#|^file path|^license|^$' \ |
|
45 |
| (gsed -u -e '/^\(#.*\)\{0,1\}$/!q' ; grep -v '^#') \ |
|
46 |
| gcat -s \ |
|
47 |
> "$DISTRIBUTION-GENFRAG.p5m" |
|
48 |
MANIFEST="$MANIFEST $DISTRIBUTION-GENFRAG.p5m" |
|
49 |
|
|
50 |
# remove unversioned files from versioned packages |
|
51 |
sed -i -e '/^file path/{/PERLVER/!d}' "$DISTRIBUTION-PERLVER.p5m" |