-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcourier-authlib-toaster.spec
219 lines (179 loc) · 8.29 KB
/
courier-authlib-toaster.spec
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
%define name courier-authlib
%define pversion 0.59.2
%define bversion 1.3
%define rpmrelease 13.kkr%{?dist}
%define release %{bversion}.%{rpmrelease}
BuildRequires: automake, autoconf
%define ccflags %{optflags}
%define ldflags %{optflags}
############### RPM ################################
%define debug_package %{nil}
%define vtoaster %{pversion}
%define _qdir /var/qmail
%define _spath %{_qdir}/supervise
%define _qtlogdir /var/log/qmail
%define builddate Tue Jun 16 2009
Name: %{name}-toaster
Summary: courier-authlib for qmail-toaster
Version: %{vtoaster}
Release: %{release}
License: GPL
Group: Networking/Other
URL: http://www.courier-mta.org/
Source0: courier-authlib-%{pversion}.tar.bz2
Source1: supervise-authlib.run.bz2
Source2: supervise-authlib-log.run.bz2
Source3: authdaemonrc.bz2
BuildRoot: %{_tmppath}/%{name}-%{pversion}-root
BuildRequires: %{_includedir}/ltdl.h
BuildRequires: libtool-ltdl-devel, mysql-devel, zlib-devel, gdbm-devel, expect, gcc-c++
BuildRequires: qmail-toaster >= 1.03-1.3.15
BuildRequires: vpopmail-toaster >= 5.4.17
BuildRequires: libvpopmail-devel >= 5.4.17
Requires: qmail-toaster >= 1.03-1.3.15, vpopmail-toaster >= 5.4.17
Obsoletes: courier-imap-toaster < 4
Packager: Jake Vickers <[email protected]>
Patch1: courier-authlib-library-toaster-kloxong.patch
%define name courier-authlib
#------------------------------------------------------------------------------------
%description
#------------------------------------------------------------------------------------
This package, courier-authlib, allows the new courier imap to use vpopmail for authentication.
#------------------------------------------------------------------------------------
%prep
#------------------------------------------------------------------------------------
%setup -q -n %{name}-%{pversion}
%patch1 -p1
# Cleanup for the compiler
#------------------------------------------------------------------------------------
[ -f %{_tmppath}/%{name}-%{pversion}-gcc ] && rm -f %{_tmppath}/%{name}-%{pversion}-gcc
echo "gcc" > %{_tmppath}/%{name}-%{pversion}-gcc
#----------------------------------------------------------------------------------
%build
#----------------------------------------------------------------------------------
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
mkdir -p %{buildroot}
# Run configure to create makefile
#------------------------------------------------------------------------------------
%configure \
--with-mailuser=vpopmail \
--with-mailgroup=vchkpw \
--sysconfdir=%{_sysconfdir}/courier \
--with-authvchkpw \
--without-authuserdb \
--without-authpam \
--without-authldap \
--without-authpwd \
--with-authshadow \
--without-authpgsql \
--without-authmysql \
--without-authcustom \
--without-authpipe \
--enable-ltdl-install=no \
--with-ssl \
--with-redhat
%{__make}
# Delete gcc temp file
#------------------------------------------------------------------------------------
[ -f %{_tmppath}/%{name}-%{pversion}-gcc ] && rm -f %{_tmppath}/%{name}-%{pversion}-gcc
#------------------------------------------------------------------------------------
%install
#------------------------------------------------------------------------------------
# Install into buildroot
#-----------------------------------------------------------------------------
make DESTDIR=%{buildroot} install
# Install default config
#-----------------------------------------------------------------------------
mkdir -p %{buildroot}%{_sysconfdir}/courier
install -m644 %{SOURCE3} %{buildroot}%{_sysconfdir}/courier/authlib/authdaemonrc.bz2
bunzip2 %{buildroot}%{_sysconfdir}/courier/authlib/authdaemonrc.bz2
# Supervise
#-----------------------------------------------------------------------------
mkdir -p %{buildroot}%{_spath}/authlib/log
mkdir -p %{buildroot}%{_spath}/authlib/env
mkdir -p %{buildroot}%{_spath}/authlib/supervise
mkdir -p %{buildroot}%{_qtlogdir}/authlib
install -m700 %{SOURCE1} %{buildroot}%{_spath}/authlib/run.bz2
bunzip2 %{buildroot}%{_spath}/authlib/run.bz2
install -m700 %{SOURCE2} %{buildroot}%{_spath}/authlib/log/run.bz2
bunzip2 %{buildroot}%{_spath}/authlib/log/run.bz2
#------------------------------------------------------------------------------------
%postun
#------------------------------------------------------------------------------------
if [ $1 = "0" ]; then
rm -fR %{_spath}/authlib/
rm -fR %{_qtlogdir}/authlib/
fi
#------------------------------------------------------------------------------------
%clean
#------------------------------------------------------------------------------------
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
[ -d $RPM_BUILD_DIR/%{name}-%{pversion} ] && rm -rf $RPM_BUILD_DIR/%{name}-%{pversion}
#------------------------------------------------------------------------------------
%files
#------------------------------------------------------------------------------------
%defattr(-,root,root)
%doc README READM*html README.ldap INSTALL INSTALL.html NEWS NEWS.html auth*.html
%attr(0755,root,root) %dir %{_libexecdir}/courier-authlib
%attr(0755,root,root) %dir %{_sysconfdir}/courier
%attr(0750,qmaill,qmail) %dir %{_qtlogdir}/authlib
%attr(0755,root,root) %dir %{_localstatedir}/spool/authdaemon
%attr(1700,qmaill,qmail) %dir %{_spath}/authlib
%attr(0700,qmaill,qmail) %dir %{_spath}/authlib/log
%attr(0700,qmaill,qmail) %dir %{_spath}/authlib/env
%attr(0700,qmaill,qmail) %dir %{_spath}/authlib/supervise
%attr(0755,root,root) %{_bindir}/*
%attr(0755,root,root) %{_sbindir}/*
%attr(0644,root,root) %{_includedir}/*
%attr(0755,root,root) %{_libdir}/*
%attr(0755,root,root) %{_libexecdir}/courier-authlib/*
%attr(0644,root,root) %{_sysconfdir}/courier/*
%attr(0751,qmaill,qmail) %{_spath}/authlib/run
%attr(0751,qmaill,qmail) %{_spath}/authlib/log/run
%attr(0644,root,root) %{_mandir}/man1/*
%attr(0644,root,root) %{_mandir}/man3/*
%attr(0644,root,root) %{_mandir}/man8/*
#------------------------------------------------------------------------------------
%changelog
#------------------------------------------------------------------------------------
* Wed Dec 18 2019 Dionysis Kladis <[email protected]> 0.59.2-1.3.13.kng
- added missing depedencies
- added a patch to work with modified qmail-toaster packages named courier-authlib-library-toaster-kloxong.patch
- make it compile in chroot enviroment of copr
* Sat Dec 20 2014 Mustafa Ramadhan <[email protected]> 0.59.2-1.3.13.mr
- cleanup spec based on toaster github (without define like build_cnt_60)
* Tue Jul 2 2013 Mustafa Ramadhan <[email protected]> 0.59.2-1.3.12.mr
- don't install mysql*-libs because make conflict between mysql branch!
* Thu Jun 20 2013 Mustafa Ramadhan <[email protected]> 0.59.2-1.3.11.mr
- update run and log run script
* Sat Jan 12 2013 Mustafa Ramadhan <[email protected]> 0.59.2-1.3.10.mr
- add build_cnt_60 and build_cnt_6064
* Tue Jun 16 2009 Jake Vickers <[email protected]> 0.59.2-1.3.10
- Rolled the courier-authlib package back to 0.59.2 since the new version does not have the
- required vpopmail patches to function with Qmail. Sorry!
* Fri Jun 12 2009 Jake Vickers <[email protected]> 0.62.2-1.3.9
- Added Fedora 11 support
- Added Fedora 11 x86_64 support
* Wed Jun 10 2009 Jake Vickers <[email protected]> 0.62.2-1.3.9
- Added Mandriva 2009 support
* Wed Apr 22 2009 Jake Vickers <[email protected]> 0.59.2-1.3.8
- Added Fedora 9 x86_64 and Fedora 10 x86_64 support
* Fri Feb 13 2009 Jake Vickers <[email protected]> 0.59.2-1.3.7
- Added Suse 11.1 support
* Mon Feb 09 2009 Jake Vickers <[email protected]> 0.59.2-1.3.7
- Added Fedora 9 and 10 support
* Sat Apr 14 2007 Nick Hemmesch 0.59.2-1.3.6
- Upgraded to courier-authlib 0.59.2
- Added CentOS 5 i386 support
- Added CentOS 5 x86_64 support
* Thu Feb 01 2007 Erik A. Espinoza <[email protected]> 0.59.1-1.3.5
- Upgraded to courier-authlib 0.59.1
* Tue Jan 02 2007 Erik A. Espinoza <[email protected]> 0.59-1.3.4
- Upgraded to courier-authlib 0.59
* Wed Nov 01 2006 Erik A. Espinoza <[email protected]> 0.58-1.3.3
- Added Fedora Core 6 support
* Wed Nov 01 2006 Erik A. Espinoza <[email protected]> 0.58-1.3.2
- Fixed libtool-ltdl conflict on FC4
* Mon Jun 05 2006 Erik A. Espinoza <[email protected]> 0.58-1.3.1
- Initial Package
- Add SuSE 10.1 support