SPECS: gnarwl.spec - subpackage for ldap schema (openldap-schema-I...
glen
glen at pld-linux.org
Thu Jul 20 10:56:55 CEST 2006
Author: glen Date: Thu Jul 20 08:56:55 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- subpackage for ldap schema (openldap-schema-ISPEnv2)
- let root own the files
---- Files affected:
SPECS:
gnarwl.spec (1.19 -> 1.20)
---- Diffs:
================================================================
Index: SPECS/gnarwl.spec
diff -u SPECS/gnarwl.spec:1.19 SPECS/gnarwl.spec:1.20
--- SPECS/gnarwl.spec:1.19 Sat Apr 15 14:58:22 2006
+++ SPECS/gnarwl.spec Thu Jul 20 10:56:49 2006
@@ -3,7 +3,7 @@
Summary(pl): Gnu Neat Auto Reply With LDAP - autoresponder korzystający z LDAP
Name: gnarwl
Version: 3.3
-Release: 5
+Release: 5.2
License: GPL
Group: Applications/Mail
Source0: http://www.home.unix-ag.org/patrick/software/gnarwl/%{name}-%{version}.tgz
@@ -16,16 +16,18 @@
BuildRequires: groff
BuildRequires: openldap-devel >= 2.3.0
BuildRequires: rpmbuild(macros) >= 1.202
+Requires(postun): /usr/sbin/groupdel
+Requires(postun): /usr/sbin/userdel
Requires(pre): /bin/id
Requires(pre): /usr/bin/getgid
Requires(pre): /usr/sbin/groupadd
Requires(pre): /usr/sbin/useradd
-Requires(postun): /usr/sbin/groupdel
-Requires(postun): /usr/sbin/userdel
Provides: group(gnarwl)
Provides: user(gnarwl)
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define schemadir /usr/share/openldap/schema
+
%description
Gnarwl is a email auto reply/vacation tool, intented to be used on
mailservers, on which users may not (nescessarily) have
@@ -37,6 +39,16 @@
prawdziwych kont systemowych, a informacje o użytkownikach znajdują
się w bazie LDAP.
+%package -n openldap-schema-ISPEnv2
+Summary: LDAP schema for gnarwl
+Group: Networking/Daemons
+Requires(post,postun): sed >= 4.0
+Requires: openldap-servers
+Requires: sed >= 4.0
+
+%description -n openldap-schema-ISPEnv2
+This package contains ISPEnv2.schema to be used with gnarwl.
+
%prep
%setup -q
%patch0 -p1
@@ -55,6 +67,9 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+install -D doc/ISPEnv2.schema $RPM_BUILD_ROOT%{schemadir}/ISPEnv2.schema
+rm -rf $RPM_BUILD_ROOT/usr/share/doc/packages/gnarwl
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -62,35 +77,59 @@
%groupadd -g 26 gnarwl
%useradd -u 26 -d /var/lib/gnarwl -s /usr/bin/gnarwl -c "Gnarwl User" -g gnarwl gnarwl
+%post
+if [ "$1" = 1 ]; then
+%banner -e %{name} <<'EOF'
+The OpenLDAP schema for gnarwl can be installed with openldap-schema-ISPEnv2 package.
+EOF
+fi
+
%postun
if [ "$1" = "0" ]; then
%userremove gnarwl
%groupremove gnarwl
fi
+%post -n openldap-schema-ISPEnv2
+%openldap_schema_register %{schemadir}/ISPEnv2.schema -d core,cosine
+%service -q ldap restart
+
+%postun -n openldap-schema-ISPEnv2
+if [ "$1" = "0" ]; then
+ %openldap_schema_unregister %{schemadir}/ISPEnv2.schema
+ %service -q ldap restart
+fi
+
%files
%defattr(644,root,root,755)
-%doc doc/{AUTHORS,FAQ,HISTORY,INSTALL,ISPEnv2.schema,ISPEnv.schema,LICENSE,README,README.upgrade,example.ldif}
+%doc doc/{AUTHORS,FAQ,HISTORY,INSTALL,ISPEnv.schema,LICENSE,README,README.upgrade,example.ldif}
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_sbindir}/*
%config(noreplace) %verify(not md5 mtime size) %attr(640,root,gnarwl) %{_sysconfdir}/gnarwl.cfg
-# TODO let root own the files
-%attr(755,gnarwl,gnarwl) %dir %{_var}/lib/gnarwl
-%attr(755,gnarwl,gnarwl) %dir %{_var}/lib/gnarwl/block
-%attr(755,gnarwl,gnarwl) %dir %{_var}/lib/gnarwl/bin
-%attr(640,gnarwl,gnarwl) %{_var}/lib/gnarwl/.forward
-%attr(640,gnarwl,gnarwl) %{_var}/lib/gnarwl/blacklist.db
-%attr(640,gnarwl,gnarwl) %{_var}/lib/gnarwl/badheaders.db
-%attr(640,gnarwl,gnarwl) %{_var}/lib/gnarwl/footer.txt
-%attr(640,gnarwl,gnarwl) %{_var}/lib/gnarwl/header.txt
+%attr(755,root,gnarwl) %dir %{_var}/lib/gnarwl
+%attr(755,root,gnarwl) %dir %{_var}/lib/gnarwl/block
+%attr(755,root,gnarwl) %dir %{_var}/lib/gnarwl/bin
+%attr(640,root,gnarwl) %{_var}/lib/gnarwl/.forward
+%attr(640,root,gnarwl) %{_var}/lib/gnarwl/blacklist.db
+%attr(640,root,gnarwl) %{_var}/lib/gnarwl/badheaders.db
+%attr(640,root,gnarwl) %{_var}/lib/gnarwl/footer.txt
+%attr(640,root,gnarwl) %{_var}/lib/gnarwl/header.txt
%{_mandir}/man*/*
+%files -n openldap-schema-ISPEnv2
+%defattr(644,root,root,755)
+%{schemadir}/*.schema
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.20 2006/07/20 08:56:49 glen
+- subpackage for ldap schema (openldap-schema-ISPEnv2)
+- let root own the files
+
Revision 1.19 2006/04/15 12:58:22 glen
- rel 5
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/gnarwl.spec?r1=1.19&r2=1.20&f=u
More information about the pld-cvs-commit
mailing list