X-Git-Url: https://git.hcoop.net/hcoop/debian/courier-authlib.git/blobdiff_plain/b92f8a0725abfd548aa6f569c298dd69c1b1b79c..2c58f61c7faca7723da35ffd7924af764108e9fd:/courier-authlib.spec.in diff --git a/courier-authlib.spec.in b/courier-authlib.spec.in index 91bacef..93a5610 100644 --- a/courier-authlib.spec.in +++ b/courier-authlib.spec.in @@ -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. @@ -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