-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathqmailadmin.spec
More file actions
307 lines (288 loc) · 12.9 KB
/
Copy pathqmailadmin.spec
File metadata and controls
307 lines (288 loc) · 12.9 KB
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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
Name: qmailadmin
Summary: Web Administration for qmail-toaster
Version: 1.2.16
%define helpver 1.0.8
Release: 1%{?dist}
License: GPL
Group: Networking/Other
Vendor: QmailToaster
Packager: Eric Shubert <qmt-build@datamatters.us>
URL: http://www.inter7.com/index.php?page=qmailadmin
Source0: http://downloads.sourceforge.net/project/qmailadmin/qmailadmin-devel/qmailadmin-%{version}.tar.gz
Source1: http://www.inter7.com/devel/qmailadmin-help-1.0.8.tar.gz
Source2: qmailadmin.module
Patch0: qmailadmin-vpop-devel.patch
Patch1: qmailadmin-vpop-nouser.patch
Patch2: qmailadmin-bounce-fix.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bzip2
BuildRequires: libvpopmail-static
BuildRequires: mysql-devel >= 5.0.22
Requires: mysql >= 5.0.22
Requires: httpd >= 2.2.3
Requires: qmail
Requires: vpopmail
Requires: control-panel
Requires: autorespond
Requires: ezmlm
Obsoletes: qmailadmin-toaster
Conflicts: qmailadmin-spambox
BuildRoot: %{_topdir}/BUILDROOT/qmailadmin-%{version}-%{release}.%{_arch}
%define debug_package %{nil}
%define apacheuser apache
%define apachegroup apache
%define ccflags %{optflags}
%define ldflags %{optflags}
%define qdir /var/qmail
%define basedir %{_datadir}/toaster
%define qadmdir %{basedir}/qmailadmin
#----------------------------------------------------------------------------
%description
#----------------------------------------------------------------------------
QmailAdmin is a free software package that provides a web interface
for managing a qmail system with virtual domains. This version is
for use with the vpopmail program. It provides admin for
adding/deleting users, Aliases, Forwards, Mailing lists and
Autoresponders. Version 0.40 features automatic International language
support via the users language settings on their browser.
qmailadmin 1.2.16
Current settings
---------------------------------------
cgi-bin dir = /usr/share/qmailadmin
html dir = /usr/share/qmailadmin
image dir = /usr/share/qmailadmin/images
image URL = /qmailadmin/images
template dir = /usr/share/qmailadmin
qmail dir = /var/qmail
vpopmail dir = /etc/libvpopmail
autorespond dir = /usr/bin
ezmlm dir = /usr/bin
ezmlm idx = yes
mysql for ezmlm = no
help = yes
modify quota = yes
domain autofill = no
catchall accounts = yes
trivial passwords = yes
#----------------------------------------------------------------------------
%prep
#----------------------------------------------------------------------------
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
# Export compiler flags
#----------------------------------------------------------------------------
export CC="gcc %{ccflags}"
#----------------------------------------------------------------------------
%build
#----------------------------------------------------------------------------
%{__aclocal}
%{__autoconf}
%{__automake}
./configure \
--prefix=%{_prefix} \
--datadir=%{_datadir}/qmailadmin \
--enable-autoresponder-path=%{_bindir} \
--enable-cgibindir=%{_datadir}/qmailadmin \
--enable-cgipath=/qmailadmin/index.cgi \
--enable-domain-autofill=n \
--enable-ezmlm-mysql=n \
--enable-ezmlmdir=%{_bindir} \
--enable-help=y \
--enable-htmllibdir=%{_datadir}/qmailadmin \
--enable-htmldir=%{_datadir}/qmailadmin \
--enable-imagedir=%{_datadir}/qmailadmin/images \
--enable-imageurl=/qmailadmin/images \
--enable-maxusersperpage=12 \
--enable-maxaliasesperpage=12 \
--enable-modify-quota=y \
--enable-qmaildir=%{qdir} \
--enable-vpopgroup=vchkpw \
--enable-vpopmaildir=/etc/libvpopmail \
--enable-vpopuser=vpopmail
%{__make}
cp %{SOURCE1} %{_builddir}/qmailadmin-%{version}/help.tar.bz2
tar xzvf %{_builddir}/qmailadmin-%{version}/help.tar.bz2
rm -f %{_builddir}/qmailadmin-%{version}/help.tar.bz2
#------------------------------------------------------------------------------
%install
#------------------------------------------------------------------------------
rm -rf %{buildroot}
%{__make} DESTDIR=%{buildroot} install-strip
pushd %{buildroot}%{_datadir}/qmailadmin
ln -s qmailadmin index.cgi
popd
install -Dp %{SOURCE2} %{buildroot}%{basedir}/include/qmailadmin.module
install -d %{buildroot}%{_datadir}/qmailadmin/images/help
cp -R %{_builddir}/qmailadmin-%{version}/qmailadmin-help-%{helpver}/* \
%{buildroot}%{_datadir}/qmailadmin/images/help/
#----------------------------------------------------------------------------
%clean
#----------------------------------------------------------------------------
rm -rf %{buildroot}
#----------------------------------------------------------------------------
%files
#----------------------------------------------------------------------------
%defattr(-,root,root)
# Docs
#------------------------------------------------------------------------------
%doc AUTHORS BUGS ChangeLog COPYING FAQ INSTALL NEWS README* TODO TRANSLATORS
# Dirs
#------------------------------------------------------------------------------
%attr(0755,root,root) %dir %{_datadir}/qmailadmin
%attr(0755,root,root) %dir %{_datadir}/qmailadmin/html
%attr(0755,root,root) %dir %{_datadir}/qmailadmin/lang
%attr(0755,%{apacheuser},%{apachegroup}) %dir %{_datadir}/qmailadmin/images
# Files
#------------------------------------------------------------------------------
%attr(0644,root,root) %{_datadir}/qmailadmin/html/*
%attr(0644,root,root) %{_datadir}/qmailadmin/lang/*
%attr(-,%{apacheuser},%{apachegroup}) %{_datadir}/qmailadmin/images/*
%attr(0644,root,root) %{basedir}/include/qmailadmin.module
%attr(6755,vpopmail,vchkpw) %{_datadir}/qmailadmin/index.cgi
%attr(6755,vpopmail,vchkpw) %{_datadir}/qmailadmin/qmailadmin
#------------------------------------------------------------------------------
%changelog
#------------------------------------------------------------------------------
* Tue Aug 5 2014 Eric Shubert <eric@datamatters.us> 1.2.16-1.qt
- Fixed catchall functions by patching command.c source (permanently this time)
* Fri Nov 15 2013 Eric Shubert <eric@datamatters.us> 1.2.16-0.qt
- Migrated to github
- Removed -toaster designation
- Added CentOS 6 support
- Removed unsupported cruft
* Thu Feb 21 2013 Eric Shubert <eric@datamatters.us> 1.2.16-1.4.1
- Fixed catchall functions by including config.h in command.c source
* Wed Aug 01 2012 Eric Shubert <eric@datamatters.us> 1.2.16-1.4.0
- Bharath Chari updated to 1.2.16, added dependencies
* Sat Jan 22 2011 Jake Vickers <jake@qmailtoaster.com> 1.2.15-1.3.9
- Updated to version 1.2.15
* Fri Jun 12 2009 Jake Vickers <jake@qmailtoaster.com> 1.2.12-1.3.8
- Added Fedora 11 support
- Added Fedora 11 x86_64 support
* Wed Jun 10 2009 Jake Vickers <jake@qmailtoaster.com> 1.2.12-1.3.8
- Added Mandriva 2009 support
* Tue May 12 2009 Jake Vickers <jake@qmailtoaster.com> 1.2.12-1.3.7
- Updated qmailadmin to version 1.2.12
* Thu Apr 23 2009 Jake Vickers <jake@qmailtoaster.com> 1.2.11-1.3.6
- Added Fedora 9 x86_64 and Fedora 10 x86_64 support
* Fri Feb 13 2009 Jake Vickers <jake@qmailtoaster.com> 1.2.11-1.3.5
- Added Suse 11.1 support
* Mon Feb 09 2009 Jake Vickers <jake@qmailtoaster.com> 1.2.11-1.3.5
- Added Fedora 9 and 10 support
* Sat Apr 14 2007 Nick Hemmesch <nick@ndhsoft.com> 1.2.11-1.3.4
- Update to qmailadmin-1.2.11
- Add CentOS 5 i386 support
- Add CentOS 5 x86_64 support
* Wed Nov 01 2006 Erik A. Espinoza <espinoza@forcenetworks.com> 1.2.9-1.3.3
- Added Fedora Core 6 support
* Sat Oct 28 2006 Erik A. Espinoza <espinoza@forcenetworks.com> 1.2.9-1.3.2
- Added definition to enable spambox
* Mon Jun 05 2006 Nick Hemmesch <nick@ndhsoft.com> 1.2.9-1.3.1
- Add SuSE 10.1 support
* Sat May 13 2006 Nick Hemmesch <nick@ndhsoft.com> 1.2.9-1.2.13
- Add Fedora Core 5 support
* Sun Apr 30 2006 Nick Hemmesch <nick@ndhsoft.com> 1.2.9-1.2.12
- Removed spam filtering account breaks quota enforcement
* Sun Nov 20 2005 Nick Hemmesch <nick@ndhsoft.com> 1.2.9-1.2.11
- Add SuSE 10.0 and Mandriva 2006.0 support
* Sat Oct 15 2005 Nick Hemmesch <nick@ndhsoft.com> 1.2.9-1.2.10
- Add Fedora Core 4 x86_64 support
* Sat Oct 01 2005 Nick Hemmesch <nick@ndhsoft.com> 1.2.9-1.2.9
- Add CentOS 4 x86_64 support
* Wed Sep 21 2005 Nick Hemmesch <nick@ndhsoft.com> 1.2.9-1.2.8
- Update to qmailadmin-1.2.9
* Thu Aug 25 2005 Nick Hemmesch <nick@ndhsoft.com> 1.2.8-1.2.7
- Update to qmailadmin-1.2.8
- Add user selectable maildrop filtering
* Fri Jul 01 2005 Nick Hemmesch <nick@ndhsoft.com> 1.2.7-1.2.6
- Add Fedora Core 4 support
* Wed Jun 08 2005 Nick Hemmesch <nick@ndhsoft.com> 1.2.7-1.2.5
- Update to qmailadmin-1.2.7 and add online help
* Fri Jun 03 2005 Torbjorn Turpeinen <tobbe@nyvalls.se> 1.2.1-1.2.4
- Gnu/Linux Mandrake 10.0,10.1,10.2 support
- Changed Mandrake 9.1,9.2 and 10.0 to apache-2x so all spec files has the same requirements.
* Sun Feb 27 2005 Nick Hemmesch <nick@ndhsoft.com> 1.2.1-1.2.3
- Add Fedora Core 3 support
- Add CentOS support
* Thu Jun 03 2004 Nick Hemmesch <nick@ndhsoft.com> 1.2.1-1.2.2
- Add Fedora Core 2 support
* Thu May 13 2004 Nick Hemmesch <nick@ndhsoft.com> 1.2.1-1.2.1
- Update to version 1.2.1
- Relocate qmailadmin to datadir
* Mon Dec 29 2003 Nick Hemmesch <nick@ndhsoft.com> 1.0.6-1.0.8
- Add Fedora Core 1 support
* Sun Nov 23 2003 Nick Hemmesch <nick@ndhsoft.com> 1.0.6-1.0.7
- Add Trustix 2.0 support
- Fix images to images-toaster
- Patch template.c to fix
* Thu May 15 2003 Miguel Beccari <miguel.beccari@clikka.com> 1.0.6-1.0.6
- Red Hat Linux 9.0 support (nick@ndhsoft.com)
- Gnu/Linux Mandrake 9.2 support
- Clean-ups on SPEC: compilation banner, better gcc detects
- Detect gcc-3.2.3
* Mon Mar 31 2003 Miguel Beccari <miguel.beccari@clikka.com> 1.0.6-1.0.5
- Conectiva Linux 7.0 support
- Better managing of apache user (related to distro)
* Sun Feb 15 2003 Nick Hemmesch <nick@ndhsoft.com> 1.0.6-1.0.4
- Support for Red Hat 8.0
* Wed Feb 05 2003 Miguel Beccari <miguel.beccari@clikka.com> 1.0.6-1.0.3
- Support for Red Hat 8.0 thanks to Andrew.J.Kay
* Sat Feb 01 2003 Miguel Beccari <miguel.beccari@clikka.com> 1.0.6-1.0.2
- Redo Macros to prepare supporting larger RPM OS.
We could be able to compile (and use) packages under every RPM based
distribution: we just need to write right requirements.
* Sat Jan 25 2003 Miguel Beccari <miguel.beccari@clikka.com> 1.0.6-1.0.1
- Added MDK 9.1 support
- Try to use gcc-3.2.1
- Added very little patch to compile with newest GLIBC
- Support dor new RPM-4.0.4
* Sat Oct 05 2002 Miguel Beccari <miguel.beccari@clikka.com> 1.0.6-0.9.2
- Soft clean-ups
* Sun Sep 29 2002 Miguel Beccari <miguel.beccari@clikka.com> 1.0.6-0.9.1
- RPM macros to detect Mandrake, RedHat, Trustix are OK again. They are
very basic but they should work.
* Fri Sep 27 2002 Miguel Beccari <miguel.beccari@clikka.com> 0.8.1.0.6-1
- Rebuilded under 0.8 tree.
- Important comments translated from Italian to English.
- Written rpm rebuilds instruction at the top of the file (in english).
* Sun Sep 22 2002 Miguel Beccari <miguel.beccari@clikka.com> 0.7.1.0.6-3
- Quota Fix
* Thu Aug 29 2002 Miguel Beccari <miguel.beccari@clikka.com> 0.7.1.0.6-2
- Deleted Mandrake Release Autodetection (creates problems)
* Fri Aug 16 2002 Miguel Beccari <miguel.beccari@clikka.com> 0.7.1.0.6-1
- New version: 0.7 toaster.
- Installation directly depends on apache-toaster-conf (that provides httpd
configurations for all web packages)
- Better macros to detect Mandrake Release
* Thu Aug 13 2002 Miguel Beccari <miguel.beccari@clikka.com> 0.6.1.0.6-1
- New version: 0.6 toaster.
* Mon Aug 12 2002 Miguel Beccari <miguel.beccari@clikka.com> 0.5.1.0.6-1
- Checks for gcc-3.2 (default compiler from now)
- New version: 0.5 toaster.
* Thu Aug 08 2002 Miguel Beccari <miguel.beccari@clikka.com> 0.4.1.0.6-1
- New version 1.0.6
- Better RedHat dependecies
- Rebuild against 0.4 toaster
* Thu Jul 30 2002 Miguel Beccari <miguel.beccari@clikka.com> 0.3.1.0.4-2
- Now packages have got 'no sex': you can rebuild them with command line
flags for specifics targets that are: RedHat, Trustix, and of course
Mandrake (that is default)
* Sun Jul 28 2002 Miguel Beccari <miguel.beccari@clikka.com> 0.3.1.0.4.1mdk
- toaster v. 0.3: now it is possible upgrading safely because of 'pversion'
that is package version and 'version' that is toaster version
* Thu Jul 25 2002 Miguel Beccari <miguel.beccari@clikka.com> 0.2-1.0.4.1mdk
- Fixed path images in cgi
- Changed /cgi-bin/ un /mail/
* Mon Jul 22 2002 Miguel Beccari <miguel.beccari@clikka.com> 0.1-1.0.4.4mdk
- Added index.html to explain what toaster do (to be finished)
* Thu Jul 18 2002 Miguel Beccari <miguel.beccari@clikka.com> 0.1-1.0.4.3mdk
- Added toaster version (we will need to mantain it too): is vtoaster 0.1
- Added tests to make gcc to be 3.1.1
- Very soft clean-ups.
* Wed Jul 17 2002 Miguel Beccari <miguel.beccari@clikka.com 1.0.4-2mdk
- Better SPEC (improvements and cleans)
* Tue Jul 16 2002 Miguel Beccari <mighi@clikka.com> 1-0-4 1mdk
- First package.