[go: up one dir, main page]

File: imapproxy.spec

package info (click to toggle)
up-imapproxy 1.2.4-10.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 756 kB
  • ctags: 235
  • sloc: ansic: 3,801; sh: 2,869; makefile: 133
file content (84 lines) | stat: -rw-r--r-- 1,942 bytes parent folder | download
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
#This is imapproxy rpm spec file

%define ver	1.2.4
%define rel	1
%define prefix	/usr/local

%define withkrb5 0
# Check for option at command line, ie:
# rpmbuild -bb imapproxy.spec --define 'with_krb5 1'
# with_krb5 indicates the Kerberos includes are needed (ie: Red Hat Linux 9)
%{?with_krb5:%define withkrb5 1}

Summary:	Imapproxy Daemon
Name:		up-imapproxy
Version:	%ver
Release:	%rel
#Copyright:	Dave McMurtrie
License:        GPL
Group:		Networking/Daemons
Source0:	http://www.imapproxy.org/downloads/up-imapproxy-%{ver}.tar.gz
#Source1:	imapproxy.conf
#Source2:	imapproxy.init
Url:		http://www.imapproxy.org
Packager:	Devrim SERAL <devrim@gazi.edu.tr>
#BuildRoot:	/var/tmp/imapproxy-%{ver}-root
BuildRoot:	%{_tmppath}/%{name}-%{ver}-root

%description
This is a connection caching imapproxy daemon for proxied imap connections

%prep
%setup 

%build
chmod 755 ./configure
#make clean

%if %{withkrb5}
./configure --with-prefix=%{prefix} --with-krb5=/usr/kerberos
%else
./configure --with-prefix=%{prefix}
%endif
make OPT_FLAGS="$RPM_OPT_FLAGS" 

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT/etc
install -d $RPM_BUILD_ROOT/etc/init.d
install -d $RPM_BUILD_ROOT/%{prefix}/sbin

make prefix=$RPM_BUILD_ROOT%{prefix} rpm_prefix=$RPM_BUILD_ROOT  rpm-install

%clean
rm -rf $RPM_BUILD_ROOT

%pre
if [ -f /etc/imapproxy.conf ]; then
	cp -a /etc/imapproxy.conf /etc/imapproxy.conf.old
fi


%post
/sbin/chkconfig --add imapproxy

%preun
/sbin/chkconfig --del imapproxy 

%files
%defattr(-, root, root)
%config /etc/imapproxy.conf
%doc README ChangeLog
%attr(750,root,root) 		/etc/init.d/imapproxy
%attr(750,root,root) 		%{prefix}/sbin/in.imapproxyd
%attr(750,root,root) 		%{prefix}/sbin/pimpstat

%changelog
* Fri Jun 10 2005 William Hooper <whooper@freeshell.org>
- Removed obsolete Copyright tag
- Added License tag
- Removed extra Source tags

* Tue Mar 18 2003 Devrim SERAL<devrim@gazi.edu.tr>
- Created imapproxy.spec file