-
Notifications
You must be signed in to change notification settings - Fork 0
/
alpine-svn.spec
247 lines (219 loc) · 8.71 KB
/
alpine-svn.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
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
Summary: University of Washington Pine mail user agent
Name: alpine
Version: 20090226svn
Release: 1
License: Apache License
Group: Applications/Mail
URL: http://www.washington.edu/alpine
Source: snapshots.tar.gz
Patch1: alpine-web-2.00-config.patch
Vendor: University of Washington
Packager: David Diffenbaugh <[email protected]>
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: openssl >= 0.9.8h, openldap-devel >= 2.4, aspell
Requires: openldap >= 2.4, aspell >= 0.60.5, aspell-en >= 0.60.5
Provides: pine
Obsoletes: pine
%description
Alpine -- an Alternatively Licensed Program for Internet
News & Email -- is a tool for reading, sending, and managing
electronic messages. Alpine is the successor to Pine and was
developed by Computing & Communications at the University of
Washington.
Though originally designed for inexperienced email users,
Alpine supports many advanced features, and an ever-growing number of
configuration and personal-preference options.
%package web
Summary: Web components for Alternative Pine mail user agent implementation
Group: Applications/Mail
Requires: %{name} = %{version}-%{release}
Requires: apache, ispell
BuildRequires: tcl
#Note: When we built this it failed because it couldn't find tclsh, since we had /usr/local/bin/tclsh8.4, doing ln -s tclsh8.4 tclsh fixed the problem
%description web
Alpine -- an Alternatively Licensed Program for Internet
News & Email -- is a tool for reading, sending, and managing
electronic messages. Alpine is the successor to Pine and was
developed by Computing & Communications at the University of
Washington.
Though originally designed for inexperienced email users,
Alpine supports many advanced features, and an ever-growing number of
configuration and personal-preference options.
%prep
%setup -q -n snapshots
cd web
%patch1 -p0
cd ..
%build
PATH="/opt/SUNWspro/bin:/usr/local/gnu/bin:${PATH}" \
CC="cc" CXX="CC" CPPFLAGS="-I/usr/local/include" \
LD="/usr/ccs/bin/ld" CFLAGS="-g -xs" \
LDFLAGS="-L/usr/local/lib -R/usr/local/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -llber -lnsl -lsocket -Bdirect -zdefs"
export PATH CC CXX CPPFLAGS LD LDFLAGS CFLAGS
sed 's/\/usr\/bin\/tclsh/\/usr\/local\/bin\/tclsh/g' web/lib/pkgcreate > web/lib/pkgcreate.fix
mv web/lib/pkgcreate.fix web/lib/pkgcreate
chmod +x web/lib/pkgcreate
cd web/bin
rm tclsh
ln -s /usr/local/bin/tclsh tclsh
cd ../..
#We want to link against sun curses not ncurses so change -lncurses to -lcurses
#because alpine has display issues with Solaris Terminal Emulation when build against ncurses
mv configure configure.wrong ; sed -e s/-lncurses/-lcurses/ configure.wrong > configure
chmod 755 configure
./configure \
--prefix="/usr/local" \
--with-spellcheck-prog="aspell" \
--with-ssl-dir="/usr/local/ssl" \
--with-ssl-lib-dir="/usr/local/ssl/lib" \
--without-krb5 \
--with-ldap-include-dir="/usr/local/include" \
--with-ldap-lib-dir="/usr/local/lib" \
--without-ipv6 \
--disable-nls \
--enable-quotas \
--with-system-pinerc="/usr/local/lib/pine.conf" \
--with-system-fixed-pinerc="/usr/local/lib/pine.conf.fixed"
cd imap
sed -e "s/PASSWDTYPE=std/PASSWDTYPE=pmb/g" Makefile > Makefile.test
sed -e "s/SSLTYPE=nopwd/SSLTYPE=unix.nopwd/g" Makefile.test > Makefile.test2
mv -f Makefile.test2 Makefile
cd src/osdep/unix/
sed -e "s/PASSWDTYPE=std/PASSWDTYPE=pmb/g" Makefile > Makefile.test
sed -e "s/SSLTYPE=nopwd/SSLTYPE=unix.nopwd/g" Makefile.test > Makefile.test2
mv -f Makefile.test2 Makefile
cd ../../../..
gmake
cd web/src
gmake
cd ../..
%install
%{__rm} -rf %{buildroot}
%{__install} -Dp -m0755 alpine/alpine %{buildroot}/usr/local/bin/alpine
%{__install} -Dp -m0755 pico/pico %{buildroot}/usr/local/bin/pico
%{__install} -Dp -m0755 pico/pilot %{buildroot}/usr/local/bin/pilot
%{__install} -Dp -m0755 alpine/rpload %{buildroot}/usr/local/bin/rpload
%{__install} -Dp -m0755 alpine/rpdump %{buildroot}/usr/local/bin/rpdump
%{__install} -Dp -m0755 imap/mailutil/mailutil %{buildroot}/usr/local/bin/mailutil
%{__install} -Dp -m0755 imap/mlock/mlock %{buildroot}/usr/local/sbin/mlock
%{__install} -Dp -m0644 doc/alpine.1 %{buildroot}/usr/local/man/man1/alpine.1
%{__install} -Dp -m0644 doc/pico.1 %{buildroot}/usr/local/man/man1/pico.1
%{__install} -Dp -m0644 doc/pilot.1 %{buildroot}/usr/local/man/man1/pilot.1
%{__install} -Dp -m0644 doc/rpload.1 %{buildroot}/usr/local/man/man1/rpload.1
%{__install} -Dp -m0644 doc/rpdump.1 %{buildroot}/usr/local/man/man1/rpdump.1
%{__install} -Dp -m0644 imap/src/mailutil/mailutil.1 %{buildroot}/usr/local/man/man1/mailutil.1
# Install web component
cd web/src
gmake install
cd ../..
mkdir -p %{buildroot}/usr/local/libexec/config
cd web
rm detach
cd cgi
rm detach
cd alpine
cd 2.0
rm alpine.tcl
cd lib
rm yui
cd ../../../../../
cp -R web %{buildroot}/usr/local/libexec/alpine-%{version}
#make a bogus /var/local/tmp/webpine in the buildroot so that we can link to it
mkdir -p %{buildroot}/var/local/tmp
touch %{buildroot}/var/local/tmp/webpine
cd %{buildroot}/usr/local/libexec/alpine-%{version}
ln -s ../../../../var/local/tmp/webpine detach
cd cgi
ln -s ../../../../../var/local/tmp/webpine detach
cd alpine
cd 2.0
ln -s ../../../../../usr/local/libexec/config/alpine.tcl
#cd ../alpine/2.0
#ln -s ../../../../../usr/local/libexec/config/alpine.tcl
#cd ../../
rm -rf src
#remove the buildroot var so it doesn't get packaged
rm -rf %{buildroot}/var
cd %{buildroot}
cd usr/local/bin
ln -s alpine pine
cd ../../..
cd usr/local/man/man1
ln -s alpine.1 pine.1
%clean
%{__rm} -rf %{buildroot}
%post web
cat <<EOF
================================================================
You MUST link alpine-web to the appropriate Apache document
root. Normally this is done with a link to the apache space, but
a virtual host is preferred in httpd.conf
you may also wish to:
ln -s /usr/local/libexec/alpine-%{version} /usr/local/libexec/alpine
================================================================
EOF
%files
%defattr(-, root, root, 0755)
%doc LICENSE NOTICE README VERSION doc/*.txt
%doc /usr/local/man/man1/alpine.1
%doc /usr/local/man/man1/mailutil.1
%doc /usr/local/man/man1/pico.1
%doc /usr/local/man/man1/pilot.1
%doc /usr/local/man/man1/rpdump.1
%doc /usr/local/man/man1/rpload.1
%doc /usr/local/man/man1/pine.1
/usr/local/bin/alpine
/usr/local/bin/mailutil
/usr/local/bin/pico
/usr/local/bin/pilot
/usr/local/bin/pine
/usr/local/bin/rpdump
/usr/local/bin/rpload
%defattr(2755, root, mail, 0755)
/usr/local/sbin/mlock
%files web
%defattr(-, root, root, 0755)
/usr/local/libexec/alpine-%{version}/*
%changelog
* Thu Feb 26 2009 David Diffenbaugh <[email protected]> - 20090226svn-1
- rebuild of latest SVN snapshot of revision 1220
* Tue Dec 23 2008 Brian Schubert <[email protected]> - 20081223svn-1
- SVN snapshot build to see if SEGV is fixed
* Mon Oct 20 2008 Brian Schubert <[email protected]> - 2.00-2
- Respin against openldap 2.4
* Wed Aug 27 2008 David Diffenbaugh <[email protected]> - 2.00-1
- bumped to 2.00
- checked patches and spec file for accuracy
- updated web config patch
* Fri Mar 21 2008 David Diffenbaugh <[email protected]> - 1.10-1
- bumped version, commented out Patch0 - no longer needed
- modified Patch1 so that deskmail.conf is still removed
* Fri Feb 08 2008 David Diffenbaugh <[email protected]> - 1.00-14
- added correct linking for detach -> /var/local/tmp/webpine
* Tue Feb 05 2008 David Diffenbaugh <[email protected]> - 1.00-13
- removed -xO0 from CFLAGS as per Sun's Forum , added requires tcl
* Mon Jan 28 2008 David Diffenbaugh <[email protected]> - 1.00-12
- reverted back to aspell
* Mon Jan 28 2008 David Diffenbaugh <[email protected]> - 1.00-11
- removed requires aspell and aspell-en, changed configure to build against Sun spell
* Fri Jan 25 2008 David Diffenbaugh <[email protected]> - 1.00-10
- added requires: aspell >= 0.60.5 and aspell-en >= 0.60.5, removed BuildConflicts ncurses
* Tue Jan 22 2008 David Diffenbaugh <[email protected]> - 1.00-9
- same as 8
* Fri Jan 18 2008 David Diffenbaugh <[email protected]> - 1.00-8
- added BuildConflicts: ncurses
* Tue Jan 08 2008 David Lee Halik <[email protected]> - 1.00-7
- Fixed alpine-web segfault
* Fri Dec 21 2007 David Lee Halik <[email protected]> - 1.00-1
- First stable release
* Wed Dec 19 2007 David Lee Halik <[email protected]> - 0.999999-3
- Added alpine-web subpackage
* Fri Dec 07 2007 David Lee Halik <[email protected]> - 0.999999-1
- Bump to 0.999999
* Mon Nov 12 2007 David Lee Halik <[email protected]> - 0.99999-4
- Removed Maildir support ;)
* Sat Nov 10 2007 David Lee Halik <[email protected]> - 0.99999
- Bump and setenv() fix
- Added Maildir support
* Fri Nov 02 2007 David Lee Halik <[email protected]> - 0.9999
- Initial Rutgers Build.