]>
Commit | Line | Data |
---|---|---|
56daf5bb | 1 | ############################################################################### |
56daf5bb | 2 | # # |
70df8302 | 3 | # IPFire.org - A linux based firewall # |
eee037b8 | 4 | # Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> # |
70df8302 MT |
5 | # # |
6 | # This program is free software: you can redistribute it and/or modify # | |
56daf5bb | 7 | # it under the terms of the GNU General Public License as published by # |
70df8302 | 8 | # the Free Software Foundation, either version 3 of the License, or # |
56daf5bb MT |
9 | # (at your option) any later version. # |
10 | # # | |
70df8302 | 11 | # This program is distributed in the hope that it will be useful, # |
56daf5bb MT |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
70df8302 | 17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # |
56daf5bb | 18 | # # |
56daf5bb MT |
19 | ############################################################################### |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include Config | |
26 | ||
f15707c7 RR |
27 | SUMMARY = Implementation of Cyrus SASL API |
28 | ||
2acac542 | 29 | VER = 2.1.26 |
56daf5bb MT |
30 | |
31 | THISAPP = cyrus-sasl-$(VER) | |
32 | DL_FILE = $(THISAPP).tar.gz | |
f1baee3e | 33 | DL_FROM = $(URL_IPFIRE) |
56daf5bb | 34 | DIR_APP = $(DIR_SRC)/$(THISAPP) |
a08c3a2e | 35 | PROG = cyrus-sasl |
c183124f | 36 | PAK_VER = 2 |
a08c3a2e | 37 | |
411afd1f | 38 | ifeq "$(PASS)" "" |
052ad1cd MT |
39 | TARGET = $(DIR_INFO)/$(THISAPP) |
40 | else | |
41 | TARGET = $(DIR_INFO)/$(THISAPP)-ldap | |
42 | endif | |
56daf5bb | 43 | |
2dc2a278 | 44 | DEPS = |
f86b0cc3 | 45 | |
f15707c7 RR |
46 | SERVICES = cyrus-sasl |
47 | ||
56daf5bb MT |
48 | ############################################################################### |
49 | # Top-level Rules | |
50 | ############################################################################### | |
51 | ||
52 | objects = $(DL_FILE) | |
53 | ||
54 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE) | |
55 | ||
9a7e4d85 | 56 | $(DL_FILE)_BLAKE2 = 08fe5c1624e7cccb4b5e562f6987fddd047e1221b671cedbbb684d5a2f39e09a438ad14ffcedb5f398c203ca0b6e23574106c87f43a632028d50a69619c54970 |
56daf5bb MT |
57 | |
58 | install : $(TARGET) | |
59 | ||
60 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
61 | ||
62 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
63 | ||
9a7e4d85 | 64 | b2 : $(subst %,%_BLAKE2,$(objects)) |
56daf5bb | 65 | |
a08c3a2e | 66 | dist : |
f86b0cc3 | 67 | @$(PAK) |
a08c3a2e | 68 | |
56daf5bb | 69 | ############################################################################### |
9a7e4d85 | 70 | # Downloading, checking, b2sum |
56daf5bb MT |
71 | ############################################################################### |
72 | ||
73 | $(patsubst %,$(DIR_CHK)/%,$(objects)) : | |
74 | @$(CHECK) | |
75 | ||
76 | $(patsubst %,$(DIR_DL)/%,$(objects)) : | |
77 | @$(LOAD) | |
78 | ||
9a7e4d85 PM |
79 | $(subst %,%_BLAKE2,$(objects)) : |
80 | @$(B2SUM) | |
56daf5bb MT |
81 | |
82 | ############################################################################### | |
83 | # Installation Details | |
84 | ############################################################################### | |
85 | ||
86 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
87 | @$(PREBUILD) | |
88 | @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) | |
c623cd76 | 89 | $(UPDATE_AUTOMAKE) |
411afd1f | 90 | cd $(DIR_APP) && sed -i '/sasl_global/s/^static //' lib/client.c |
65e77163 MT |
91 | cd $(DIR_APP) && sed -i 's/cat8/man8/' saslauthd/Makefile.am |
92 | cd $(DIR_APP) && autoconf | |
411afd1f MT |
93 | |
94 | ifeq "$(PASS)" "" | |
95 | cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc \ | |
96 | --with-dbpath=/var/lib/sasl/sasldb2 \ | |
2acac542 | 97 | --with-saslauthd=/var/run/saslauthd \ |
f8ee1cfc MT |
98 | --with-des=no --with-rc4=no \ |
99 | --disable-otp | |
a50d04ab | 100 | cd $(DIR_APP) && make |
56daf5bb | 101 | cd $(DIR_APP) && make install |
94025eea | 102 | install -v -m700 -d /var/lib/sasl |
6295c762 | 103 | -mkdir /var/run/saslauthd |
6bb14162 | 104 | cp -vf $(DIR_SRC)/config/cyrus-sasl/smtpd.conf /usr/lib/sasl2/ |
edda4a22 JS |
105 | |
106 | #install initscripts | |
f15707c7 | 107 | $(call INSTALL_INITSCRIPTS,$(SERVICES)) |
edda4a22 | 108 | |
411afd1f MT |
109 | else |
110 | # WITH LDAP SUPPORT AT THIS TIME | |
111 | cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc \ | |
112 | --with-dbpath=/var/lib/sasl/sasldb2 \ | |
113 | --with-saslauthd=/var/run \ | |
114 | --with-ldap --enable-ldapdb | |
fcc53523 | 115 | cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE) |
411afd1f MT |
116 | cd $(DIR_APP) && make -C include |
117 | cd $(DIR_APP) && make -C sasldb | |
118 | cd $(DIR_APP) && make -C plugins | |
119 | cd $(DIR_APP) && libtool --mode=install install plugins/libldapdb.la /usr/lib/sasl2 | |
56ec89eb | 120 | endif |
56daf5bb MT |
121 | @rm -rf $(DIR_APP) |
122 | @$(POSTBUILD) |