#
# TODO:
-# - pl
# - files
# - post, preun
# - triggers to allow upgrade from courier,courier-imap,sqwebmail
#
Summary: Courier authentication library
-Summary(pl): -
+Summary(pl): Biblioteka uwierzytelniania Couriera
Name: courier-authlib
%define snap 20041116
Version: 0.50
Release: 0.%{snap}.0.1
License: GPL
Group: Networking/Daemons
-Source0: http://www.courier-mta.org/beta/%{name}/%{name}-%{version}.%{snap}.tar.bz2
+Source0: http://www.courier-mta.org/beta/courier-authlib/%{name}-%{version}.%{snap}.tar.bz2
# Source0-md5: d6afed924f2195f55e17082336d679a7
-URL: http://www.courier-mta.org
+URL: http://www.courier-mta.org/
Requires(post,preun): /sbin/chkconfig
BuildRequires: expect
BuildRequires: gdbm-devel
for other Courier applications.
%description -l pl
--
+Biblioteka uwierzytelniania Couriera dostarcza us³ugi uwierzytelniania
+dla innych aplikacji Couriera.
%package devel
-Summary: Development libraries for the Courier authentication library.
-Summary(pl): -
+Summary: Development files for the Courier authentication library
+Summary(pl): Pliki programistyczne dla biblioteki uwierzytelniania Couriera
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
-This package contains the development libraries and files needed to
-compile Courier packages that use this authentication library. Install
-this package in order to build the rest of the Courier packages. After
-they are built and installed this package can be removed. Files in
-this package are not needed at runtime.
+This package contains the development files needed to compile Courier
+packages that use this authentication library. Install this package in
+order to build the rest of the Courier packages. After they are built
+and installed this package can be removed. Files in this package are
+not needed at runtime.
%description devel -l pl
--
+Ten pakiet zawiera pliki programistyczne potrzebne do kompilacji
+pakietów Couriera u¿ywaj±cych biblioteki uwierzytelniania. Nale¿y go
+zainstalowaæ aby zbudowaæ resztê pakietów Couriera. Po ich zbudowaniu
+i zainstalowaniu ten pakiet mo¿na usun±æ. Pliki z tego pakietu nie s±
+potrzebne w czasie dzia³ania programów.
%package authldap
Summary: LDAP support for the Courier authentication library
-Summary(pl): -
+Summary(pl): Obs³uga LDAP dla biblioteki uwierzytelniania Couriera
Group: Networking/Daemons
PreReq: %{name} = %{version}-%{release}
using LDAP.
%description authldap -l pl
--
+Ten pakiet dodaje obs³ugê LDAP do biblioteki uwierzytelniania
+Couriera. Nale¿y go zainstalowaæ aby móc uwierzytelniaæ siê z u¿yciem
+LDAP.
%package authmysql
-Summary: MySQL support for the Courier authentication library.
-Summary(pl): -
+Summary: MySQL support for the Courier authentication library
+Summary(pl): Obs³uga MySQL dla biblioteki uwierzytelniania Couriera
Group: Networking/Daemons
PreReq: %{name} = %{version}-%{release}
using MySQL.
%description authmysql -l pl
--
+Ten pakiet dodaje obs³ugê MySQL do biblioteki uwierzytelniania
+Couriera. Nale¿y go zainstalowaæ aby móc uwierzytelniaæ siê z u¿yciem
+MySQL.
%package authpgsql
Summary: PostgreSQL support for the Courier authentication library
-Summary(pl): -
+Summary(pl): Obs³uga PostgreSQL dla biblioteki uwierzytelniania Couriera
Group: Networking/Daemons
PreReq: %{name} = %{version}-%{release}
authenticate using PostgreSQL.
%description authpgsql -l pl
--
+Ten pakiet dodaje obs³ugê PostgreSQL do biblioteki uwierzytelniania
+Couriera. Nale¿y go zainstalowaæ aby móc uwierzytelniaæ siê z u¿yciem
+PostgreSQL.
%package userdb
Summary: Userdb support for the Courier authentication library
-Summary(pl): -
+Summary(pl): Obs³uga userdb dla biblioteki uwierzytelniania Couriera
Group: Networking/Daemons
PreReq: %{name} = %{version}-%{release}
Install this package in order to be able to authenticate with userdb.
%description userdb -l pl
--
+Ten pakiet dodaje obs³ugê userdb do biblioteki uwierzytelniania
+Couriera. Userdb to prosty sposób zarz±dzania wirtualnymi kontami
+pocztowymi przy u¿yciu pliku bazy danych opartej na GDBM.
+
+Nale¿y go zainstalowaæ aby móc uwierzytelniaæ siê z u¿yciem userdb.
%prep
%setup -q -n %{name}-%{version}.%{snap}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
+install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
-install courier-authlib.sysvinit $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/courier-authlib
+install courier-authlib.sysvinit $RPM_BUILD_ROOT/etcdir}/rc.d/init.d/courier-authlib
# make config files
./sysconftool $RPM_BUILD_ROOT%{_sysconfdir}/authlib/*.dist
# remove static library - for now
rm -f $RPM_BUILD_ROOT%{_libdir}/courier-authlib/*.a
+%clean
+rm -rf $RPM_BUILD_ROOT
+
%post
%{_libexecdir}/courier-authlib/authmigrate >/dev/null
/sbin/chkconfig --add courier-authlib
%preun
-if test -x %{_sbindir}/authdaemond
-then
+if [ -x %{_sbindir}/authdaemond ]; then
%{_sbindir}/authdaemond >/dev/null 2>&1 || /bin/true
fi
-if test "$1" = "0"
-then
+if [ "$1" = "0" ]; then
/sbin/chkconfig --del courier-authlib
fi
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
%defattr(644,root,root,755)
%doc README README*html README.authmysql.myownquery