X-Git-Url: https://git.hcoop.net/hcoop/debian/courier-authlib.git/blobdiff_plain/ac40fd9eb9d1980c90dc009d526a23ead1ec0f76..refs/tags/upstream/0.63.0:/courier-authlib.spec diff --git a/courier-authlib.spec b/courier-authlib.spec index a02fbca..0673c9d 100644 --- a/courier-authlib.spec +++ b/courier-authlib.spec @@ -1,4 +1,4 @@ -# $Id: courier-authlib.spec.in,v 1.14 2008/07/13 14:53:39 mrsam Exp $ +# $Id: courier-authlib.spec.in,v 1.18 2009/12/18 04:24:20 mrsam Exp $ # # Copyright 1998 - 2008 Double Precision, Inc. See COPYING for # distribution information. @@ -13,7 +13,7 @@ ################################################################################ Name: courier-authlib -Version: 0.61.0 +Version: 0.63.0 Release: 1%{?dist}%{?courier_release} Summary: Courier authentication library @@ -144,7 +144,7 @@ program, then communicates through messages on stdin and stdout. %prep %setup -q -%configure --with-redhat +%configure -C --with-redhat %build %{__make} -s %{_smp_mflags} @@ -154,12 +154,14 @@ rm -rf $RPM_BUILD_ROOT MAKEFLAGS= %{__make} -j 1 install DESTDIR=$RPM_BUILD_ROOT %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/courier-authlib/*.a %{__install} -m 555 sysconftool $RPM_BUILD_ROOT%{_libexecdir}/courier-authlib -%{__install} -m 555 authmigrate $RPM_BUILD_ROOT%{_libexecdir}/courier-authlib ./courierauthconfig --configfiles >configtmp -. configtmp +. ./configtmp -./authmksock $RPM_BUILD_ROOT%{_localstatedir}/spool/authdaemon/socket || exit 1 +d=`pwd` +cd $RPM_BUILD_ROOT%{_localstatedir}/spool/authdaemon || exit 1 +$d/authmksock ./socket || exit 1 +cd $d || exit 1 touch $RPM_BUILD_ROOT%{_localstatedir}/spool/authdaemon/pid.lock || exit 1 touch $RPM_BUILD_ROOT%{_localstatedir}/spool/authdaemon/pid || exit 1 %{__chmod} 777 $RPM_BUILD_ROOT%{_localstatedir}/spool/authdaemon/socket || exit 1 @@ -224,7 +226,6 @@ done $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/courier-authlib %post -%{_libexecdir}/courier-authlib/authmigrate >/dev/null %{_libexecdir}/courier-authlib/sysconftool %{_sysconfdir}/authlib/*.dist >/dev/null /sbin/chkconfig --del courier-authlib @@ -248,7 +249,7 @@ rm -rf $RPM_BUILD_ROOT %files -f configfiles.base %defattr(-,root,root,-) %doc README README*html README.authmysql.myownquery README.ldap -%doc NEWS COPYING* AUTHORS ChangeLog authldap.schema +%doc NEWS COPYING* AUTHORS ChangeLog /etc/rc.d/init.d/* %ghost %attr(600, root, root) %{_localstatedir}/spool/authdaemon/pid.lock %ghost %attr(644, root, root) %{_localstatedir}/spool/authdaemon/pid @@ -267,7 +268,7 @@ rm -rf $RPM_BUILD_ROOT %files -f configfiles.ldap ldap %defattr(-,root,root,-) -%doc authldap.schema +%doc authldap.schema authldap.ldif %files -f configfiles.mysql mysql