forked from QMailToaster/vpopmail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libvpopmail.spec
167 lines (145 loc) · 5.98 KB
/
libvpopmail.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
Name: libvpopmail
Summary: Vpopmail libraries for QMail Toaster
Version: 5.4.33
Release: 0%{?dist}
License: GPL
Group: Networking/Other
URL: http://www.inter7.com/%{name}
Source0: http://downloads.sourceforge.net/project/vpopmail/vpopmail-stable/5.4.33/vpopmail-%{version}.tar.gz
#Source1: vpopmail.mysql
#Source2: vpopmail-secure-create-mysql
Patch0: vpopmail-toaster-5.4.33.patch
Patch1: vpopmail-build-no-root-5.4.33.patch
Patch2: vpopmail-build-no-qmail-5.4.33.patch
Patch3: libvpopmail-build-devel-5.4.33.patch
BuildRoot: %{_topdir}/BUILDROOT/%{name}-%{version}-%{release}.%{_arch}
%define debug_package %{nil}
%define vdir /home/vpopmail
%description
Headers and libs for building packages which use vpopmail.
#-------------------------------------------------------------------------------
%package -n %{name}-devel
#-------------------------------------------------------------------------------
Summary: vpopmail development headers and libs
Group: System/Servers
Provides: %{name}-static
Obsoletes: vpopmail-toaster
Obsoletes: vpopmail-toaster-doc
Conflicts: set-toaster, checkpassword
BuildRequires: automake
BuildRequires: mysql-devel >= 5.0.22
Requires: mysql >= 5.0.22
%description -n %{name}-devel
Headers and libs for building packages which use vpopmail.
vpopmail has been patched as follows:
etc/ is in /etc/libvpopmail (only devel related files)
include/ is in /usr/include/libvpopmail
lib/ is in /usr/lib/libvpopmail
libvpopmail 5.4.33
Current settings
---------------------------------------
vpopmail directory = /home/vpopmail
uid = 89
gid = 89
roaming users = OFF --disable-roaming-users (default)
password learning = OFF --disable-learn-passwords (default)
md5 passwords = ON --enable-md5-passwords (default)
file locking = ON --enable-file-locking (default)
vdelivermail fsync = OFF --disable-file-sync (default)
make seekable = ON --enable-make-seekable (default)
clear passwd = ON --enable-clear-passwd (default)
user dir hashing = OFF --disable-users-big-dir
address extensions = ON --enable-qmail-ext
ip alias = OFF --disable-ip-alias-domains (default)
auth module = mysql --enable-auth-module=mysql
mysql replication = OFF --disable-mysql-replication (default)
sql logging = OFF --disable-sql-logging (default)
mysql limits = OFF --disable-mysql-limits (default)
MySQL valias = ON --enable-valias
auth inc = -I/usr/include/mysql
auth lib = -L/usr/lib64/mysql -lmysqlclient -lz -lm
system passwords = OFF --disable-passwd (default)
pop syslog = log success and errors including passwords
--enable-logging=v
auth logging = ON --enable-auth-logging (default)
one domain per SQL table = --disable-many-domains
#-------------------------------------------------------------------------------
%prep
#-------------------------------------------------------------------------------
%setup -q -n vpopmail-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
#-------------------------------------------------------------------------------
%build
#-------------------------------------------------------------------------------
autoreconf
%{__automake}
%{__autoconf}
./configure --prefix=%{vdir} \
--enable-vpopuser=vpopmail \
--enable-vpopgroup=vchkpw \
--enable-libdir=%{_libdir}/mysql \
--disable-roaming-users \
--enable-tcprules-prog=/usr/bin/tcprules \
--enable-tcpserver-file=/etc/tcprules.d/tcp.smtp \
--enable-make-seekable \
--enable-clear-passwd \
--disable-users-big-dir \
--enable-qmail-ext \
--disable-ip-alias-domains \
--enable-auth-module=mysql \
--disable-passwd \
--enable-logging=v \
--enable-log-name=vpopmail \
--disable-mysql-limits \
--enable-valias \
--disable-many-domains \
--enable-non-root-build
# this is a hack. I don't know why cdb isn't being built with libvpopmail.a.
# cdb is from DJB, and should probably be removed at some point. Either that
# or it should be properly packaged as a library.
pushd cdb
make
popd
make libvpopmail.a
#-------------------------------------------------------------------------------
%install
#-------------------------------------------------------------------------------
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}%{_sysconfdir}/%{name} \
%{buildroot}%{_includedir}/%{name} \
%{buildroot}%{_libdir}/%{name} \
%{buildroot}%{vdir}/etc \
%{buildroot}%{vdir}/include \
%{buildroot}%{vdir}/lib \
%{buildroot}%{vdir}/doc
make DESTDIR=%{buildroot} install-data-local
# shubes 11/18/2013 - This is a hack.
# TODO: Need to get proper object library handling implemented
%ifarch x86_64
sed -i 's|/usr/lib/|/usr/lib64/|' %{buildroot}%{_sysconfdir}/%{name}/lib_deps
%endif
%{__mv} %{buildroot}%{vdir}/include/* %{buildroot}%{_includedir}/%{name}/.
%{__mv} %{buildroot}%{vdir}/lib/* %{buildroot}%{_libdir}/%{name}/.
%{__rm} -rf %{buildroot}%{vdir}
#-------------------------------------------------------------------------------
%clean
#-------------------------------------------------------------------------------
%{__rm} -rf %{buildroot}
#-------------------------------------------------------------------------------
%files -n %{name}-devel
#-------------------------------------------------------------------------------
%defattr (-,root,root)
%attr(0755,root,root) %dir %{_sysconfdir}/%{name}
%attr(0755,root,root) %dir %{_includedir}/%{name}
%attr(0755,root,root) %dir %{_libdir}/%{name}
%attr(0644,root,root) %{_sysconfdir}/%{name}/*_deps
%attr(0644,root,root) %{_includedir}/%{name}/*
%attr(0644,root,root) %{_libdir}/%{name}/*
#-------------------------------------------------------------------------------
%changelog
#-------------------------------------------------------------------------------
* Sat Dec 14 2013 Eric Shubert <[email protected]> 5.4.33-0.qt
- Created initial libvpopmail-devel package