rpms/up-imapproxy/devel imapproxy.init, NONE, 1.1 up-imapproxy.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Jeff Carlson (jcarlson) fedora-extras-commits at redhat.com
Fri Sep 9 12:50:24 UTC 2005


Author: jcarlson

Update of /cvs/extras/rpms/up-imapproxy/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1058/devel

Modified Files:
	.cvsignore sources 
Added Files:
	imapproxy.init up-imapproxy.spec 
Log Message:
auto-import up-imapproxy-1.2.3-6 on branch devel from up-imapproxy-1.2.3-6.src.rpm


--- NEW FILE imapproxy.init ---
#!/bin/bash
#
# up-imapproxy: Starts the University of Pittsburgh IMAP Proxy
#
# chkconfig: - 75 25
# description: imapproxy was written to compensate for webmail clients that \
#              are unable to maintain persistent connections to an IMAP \
#              server. Most webmail clients need to log in to an IMAP server \
#              for nearly every single transaction. This behaviour can cause \
#              tragic performance problems on the IMAP server. imapproxy \
#              tries to deal with this problem by leaving server connections \
#              open for a short time after a webmail client logs out. When \
#              the webmail client connects again, imapproxy will determine if \
#              there's a cached connection available and reuse it if possible.
# processname: in.imapproxyd
# config: /etc/imapproxy.conf

# Source function library.
. /etc/init.d/functions

. /etc/sysconfig/network

# Check that networking is configured.
[ ${NETWORKING} = "no" ] && exit 0

start() {
	echo -n $"Starting imapproxyd: "
	daemon /usr/sbin/in.imapproxyd
	RETVAL=$?
	echo
	touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Shutting down imapproxyd: "
	killproc /usr/sbin/in.imapproxyd
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
	    rm -f $lockfile
	fi
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0
lockfile=/var/lock/subsys/imapproxy

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status in.imapproxyd
	;;
  restart|reload)
	restart
	;;
  condrestart)
        [ -f /var/lock/subsys/in.imapproxyd ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 1
esac

exit $?


--- NEW FILE up-imapproxy.spec ---
Summary: University of Pittsburgh IMAP Proxy
Name: up-imapproxy
Version: 1.2.3
Release: 6%{?dist}
License: GPL
Group: System Environment/Daemons
URL: http://www.imapproxy.org
Source0: http://www.imapproxy.org/downloads/up-imapproxy-%{version}.tar.gz
Source1: imapproxy.init
# Source1 can be downloaded from
# https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=118632
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig, /sbin/service
Requires(postun): /sbin/service
BuildRequires: openssl-devel tcp_wrappers ncurses-devel

%description
imapproxy was written to compensate for webmail clients that are
unable to maintain persistent connections to an IMAP server. Most
webmail clients need to log in to an IMAP server for nearly every
single transaction. This behaviour can cause tragic performance
problems on the IMAP server. imapproxy tries to deal with this problem
by leaving server connections open for a short time after a webmail
client logs out. When the webmail client connects again, imapproxy
will determine if there's a cached connection available and reuse it
if possible.

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
# The install-* Makefile targets don't support DESTDIR syntax, so work around.
install -D -m 0644 -p scripts/imapproxy.conf \
	$RPM_BUILD_ROOT%{_sysconfdir}/imapproxy.conf
install -D -m 0755 -p %{SOURCE1} \
	$RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/imapproxy
install -d -m 0755 $RPM_BUILD_ROOT%{_sbindir}
install -m 0755 bin/* $RPM_BUILD_ROOT%{_sbindir}
install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/run
touch $RPM_BUILD_ROOT%{_localstatedir}/run/pimpstats

%clean
rm -rf $RPM_BUILD_ROOT

%post
if [ $1 == 1 ] ; then
    /sbin/chkconfig --add imapproxy &> /dev/null || :
fi

%preun
if [ $1 == 0 ] ; then
    /sbin/service imapproxy stop &> /dev/null || :
    /sbin/chkconfig --del imapproxy || :
fi

%postun
/sbin/service imapproxy condrestart &> /dev/null || :

%files
%defattr(-,root,root,-)
%doc COPYING ChangeLog README README.debian README.known_issues README.ssl
%config(noreplace) %{_sysconfdir}/imapproxy.conf
%ghost %{_localstatedir}/run/pimpstats
     %{_sysconfdir}/rc.d/init.d/*
     %{_sbindir}/*

%changelog
* Fri Sep  9 2005 Jeff Carlson <jeff at ultimateevil.org> - 1.2.3-6
- Another change to the init script.

* Sat Sep  3 2005 Jeff Carlson <jeff at ultimateevil.org> - 1.2.3-5
- Preserve certain timestamps.

* Thu Sep  1 2005 Jeff Carlson <jeff at ultimateevil.org> - 1.2.3-4
- Fix rpmlint complaints.
- Paul also provided a replacement init script.
- Fixed some redundant BuildReqs.
- Tuned Requires, install, and files.
- Many thanks to Paul Howarth.

* Wed Aug 31 2005 Jeff Carlson <jeff at ultimateevil.org> - 1.2.3-3
- Added BuildRequires.

* Fri Aug 12 2005 Jeff Carlson <jeff at ultimateevil.org> - 1.2.3-2
- Multiple fixups recommended by spot.

* Mon Jul 18 2005 Jeff Carlson <jeff at ultimateevil.org> - 1.2.3-1
- Initial build.



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/up-imapproxy/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	9 Sep 2005 12:49:42 -0000	1.1
+++ .cvsignore	9 Sep 2005 12:50:22 -0000	1.2
@@ -0,0 +1 @@
+up-imapproxy-1.2.3.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/up-imapproxy/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	9 Sep 2005 12:49:42 -0000	1.1
+++ sources	9 Sep 2005 12:50:22 -0000	1.2
@@ -0,0 +1 @@
+ad4dafd1417903feb1e09ec569ff1ad5  up-imapproxy-1.2.3.tar.gz




More information about the fedora-extras-commits mailing list