rpms/elektra/devel elektra-0.6.10-nostart.patch, NONE, 1.1 elektra.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Chauvet (kwizart) fedora-extras-commits at redhat.com
Mon Mar 26 01:26:59 UTC 2007


Author: kwizart

Update of /cvs/extras/rpms/elektra/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11772/devel

Modified Files:
	.cvsignore sources 
Added Files:
	elektra-0.6.10-nostart.patch elektra.spec 
Log Message:
auto-import elektra-0.6.10-2.kwizart.fc6 on branch devel from elektra-0.6.10-2.kwizart.fc6.src.rpm

elektra-0.6.10-nostart.patch:

--- NEW FILE elektra-0.6.10-nostart.patch ---
--- elektra-0.6.10/scripts/kdbd.in.nostart	2007-03-08 12:58:40.000000000 +0100
+++ elektra-0.6.10/scripts/kdbd.in	2007-03-10 10:35:14.000000000 +0100
@@ -1,30 +1,30 @@
 #!/bin/bash
 #
-# kdbd:   Starts the Elektra Key Database Daemon
+# @kdbdname@:   Starts the Elektra Key Database Daemon
 #
-# chkconfig: 12345 00 99
-# description:  This is the overall daemon needed to correctly access Elektra
-#               key databases on backends like BerkeleyDB.
-#               The daemon will use the backend pointed
-#               by /lib/elektra/libelektra-ddefault.so.
-#               Though not recomended, an elektrified program can access a
-#               key database without this daemon. But different permissions
+# chkconfig: - 00 99
+# description:  This is the overall daemon needed to correctly access Elektra \
+#               key databases on backends like BerkeleyDB. \
+#               The daemon will use the backend pointed \
+#               by /lib/elektra/libelektra-ddefault.so. \
+#               Though not recomended, an elektrified program can access a \
+#               key database without this daemon. But different permissions \
 #               calculations will be performed.
 # processname: @sbindir@/@kdbdname@
-# config: 
-# config: 
+# pidfile: @localstatedir@/run/@kdbdname@/@kdbdname at .pid
+# config:
 #
 ### BEGIN INIT INFO
-# Provides: kdbd
+# Provides: @kdbdname@
 # Required-Start: 
-# Default-Stop: 0 6
+# Default-Stop: 0 1 6
 # Short-Description: Starts the Elektra Key Database access daemon
-# Description:  This is the overall daemon needed to correctly access Elektra
-#               key databases on backends like BerkeleyDB.
-#               The daemon will use the backend pointed
-#               by /lib/elektra/libelektra-ddefault.so.
-#               Though not recomended, an elektrified program can access a
-#               key database without this daemon. But different permissions
+# Description:  This is the overall daemon needed to correctly access Elektra \
+#               key databases on backends like BerkeleyDB. \
+#               The daemon will use the backend pointed \
+#               by /lib/elektra/libelektra-ddefault.so. \
+#               Though not recomended, an elektrified program can access a \
+#               key database without this daemon. But different permissions \
 #               calculations will be performed.
 ### END INIT INFO
 #
@@ -49,7 +49,7 @@
 #[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd
 
 start () {
-	[ -d @localstatedir@/run/$prog ] || mkdir @localstatedir@/run/$prog
+#	[ -d @localstatedir@/run/$prog ] || mkdir @localstatedir@/run/$prog
 #    [ -d /var/db/nscd ] || mkdir /var/db/nscd
 #    secure=""
 	echo -n $"Starting $prog: "


--- NEW FILE elektra.spec ---
Summary:       A key/value pair database to store software configurations
Name:          elektra
Version:       0.6.10
Release:       2%{?dist}
Group:         System Environment/Libraries
License:       BSD
URL:           http://www.libelektra.org
Source0:       http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:        elektra-0.6.10-nostart.patch
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# doxygen: to build the API documentation
# libxslt, docbook-style-xsl: to build man pages from docbook with xsltproc program
# db4-devel: for the Berkeley DB backend
# libxml2-devel: for the kdbtools library build
BuildRequires: doxygen db4-devel libxml2-devel docbook-style-xsl libxslt
# gettext-devel: for the autoconf ICONV macro only

Requires(post): /sbin/ldconfig
Requires(post):  /sbin/chkconfig
Requires(preun): /sbin/chkconfig, /sbin/service


%description
Elektra provides a universal and secure framework to store configuration
parameters in a hierarchical key-value pair mechanism, instead of each
program using its own text configuration files. This allows any program
to read and save its configuration with a consistent API, and allows
them to be aware of other applications' configurations, permitting
easy application integration. While architecturally similar to other OS
registries, Elektra does not have most of the problems found in those
implementations.

This package also contains a Berkeley DB backend for Elektra, to let 
Elektra use Berkeley DB databases to store its keys and daemon which can
be used as a proxy for access to the keys.


%package devel
Summary:      Include files and API documentation to build elektrified programs
Group:        Development/System
Requires:     pkgconfig 
Requires:     %{name} = %{version}-%{release}

%description devel
Elektra provides a universal and secure framework to store configuration
parameters in a hierarchical key-value pair tree.

This package contains development specific things as include files to 
create elektrified programs.



# GConf2-devel: for the testing GConf2 backend for Elektra

#%description backend-gconf

#This package contains a GConf backend for Elektra, to let Elektra use a GConf
#daemon to store its keys.


%prep
%setup -q
%patch0 -p1 -b .nostart

%build
%configure \
     --includedir=%{_includedir}/elektra \
     --program-prefix=%{name}- \
     --disable-static \
     --disable-rpath \
     --with-ulibdir=%{_libdir} \
     --with-docbook=%{_datadir}/sgml/docbook/xsl-stylesheets
make %{?_smp_mflags}

# Not used for now
# --disable-xmltest
# --with-hlvl-backenddir
# --with-kdbschemadir
# --with-default-backend
# --with-default-dbackend


%install
rm -rf $RPM_BUILD_ROOT

make DESTDIR=$RPM_BUILD_ROOT install

# Remove statically linked kdb - lib
rm $RPM_BUILD_ROOT%{_bindir}/elektra-kdb_static
rm $RPM_BUILD_ROOT%{_libdir}/libelektra.a

# file in profile.d is sourced, remove shebang and execute bits
sed -i -e 's;#!/bin/sh;;' $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/elektra-elektraenv.sh
chmod a-x $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/elektra-elektraenv.sh

#Fix symlink should be relative - Be aware of SONAME changes!
ln -fs ../libelektratools.so.1  $RPM_BUILD_ROOT%{_libdir}/elektra/libelektratools.so

## doc fixes
rm -rf __doc __doc-devel
mkdir __doc
mv  $RPM_BUILD_ROOT%{_datadir}/doc/elektra/* __doc
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/elektra
mkdir __doc-devel
mv  $RPM_BUILD_ROOT%{_datadir}/doc/elektra-devel/* __doc-devel
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/elektra-devel

## man fixes (from program prefix)
mv $RPM_BUILD_ROOT%{_mandir}/man5/elektra-elektra.5 $RPM_BUILD_ROOT%{_mandir}/man5/elektra.5
mv $RPM_BUILD_ROOT%{_mandir}/man7/elektra-elektra.7 $RPM_BUILD_ROOT%{_mandir}/man7/elektra.7

mkdir -p $RPM_BUILD_ROOT%{_initrddir}
mv $RPM_BUILD_ROOT%{_sysconfdir}/init.d/elektra-kdbd $RPM_BUILD_ROOT%{_initrddir}
rmdir $RPM_BUILD_ROOT%{_sysconfdir}/init.d/

# for the socket and the pidfile
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/elektra-kdbd/

%clean
rm -rf $RPM_BUILD_ROOT


%post
/sbin/ldconfig
if [ "$1" -eq "1" ]; then
  # Create basic key structure for apps
  elektra-kdb set -t dir system/sw
  elektra-kdb set system/sw/kdb/schemapath "%{_datadir}/sgml/elektra-0.1.1/elektra.xsd"
fi

/sbin/chkconfig --add elektra-kdbd

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

%postun -p /sbin/ldconfig


%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog README INSTALL
%doc __doc/*
%{_initrddir}/elektra-kdbd
%{_bindir}/elektra-kdb
%{_sbindir}/elektra-kdbd
%exclude %{_libdir}/*.la
%exclude %{_libdir}/elektra/*.la
%{_libdir}/elektra
%{_libdir}/libelektra*.so.*
# Do not use (noreplace) for this config file.
%config %{_sysconfdir}/profile.d/*.sh
%{_mandir}/man1/*
%{_mandir}/man7/*
%{_mandir}/man5/*
%{_datadir}/sgml/
%dir %{_localstatedir}/run/elektra-kdbd/

%files devel
%defattr(-,root,root,-)
%doc __doc-devel/*
%{_includedir}/elektra
%{_libdir}/libelektra.so
%{_libdir}/libelektratools.so
%{_libdir}/pkgconfig/*
%{_mandir}/man3/*



%changelog
* Mon Mar 12 2007 kwizart < kwizart at gmail.com > - 0.6.10-2
- Disable static packages

* Sat Mar 10 2007 Patrice Dumas <pertusus at free.fr> 0.6.10-1
- update to 0.6.10
- use canonical scriptlets
- minor cleanups
- fix kdbd initscript

* Thu Feb 23 2007 kwizart < kwizart at gmail.com > - 0.6.8-1
- Update to 0.6.8
- Add init.d script elektra-kdbd change name to elektrad
- Add chckconfig in pre and preun
- Warning "segmentation error" on /usr/sbin/elektra-kdbd 
- TODO - PAM implementation if needed

* Thu Feb 22 2007 kwizart < kwizart at gmail.com > - 0.6.4-5
- Removed requires profile.d directory
- Fix rm __doc __doc-devel
- Recover static package with elektra-kdb_static
- Fix config file need to be replaced
- Exclude *.la from libdir/elektra and libdir
- Fix man names resulting from program prefix

* Wed Feb 21 2007 kwizart < kwizart at gmail.com > - 0.6.4-4
- Merge static package to "" package (needed for recovery).
- Revert Fix for sourced files in /etc/profile.d (config)
- Fix __doc files same as __doc-devel (missed)
- Fix include path in elektra sub directory at configure step
- Fix post step according to name changes

* Tue Feb 20 2007 kwizart < kwizart at gmail.com > - 0.6.4-3
- Fix ldconfig postun in pre
- Fix configure in /bin /sbin to be /usr/bin /usr/sbin
  we can revert back from this point if needed
- Don't remove profile.d requires anymore
- Let make install doc in place en then correct if needed
- Create static-devel package

* Sun Oct 15 2006 Patrice Dumas <pertusus at free.fr> 0.6.4-2
- split a subpackage for static libraries

* Sat Oct  7 2006 Patrice Dumas <pertusus at free.fr> 0.6.4-1
- Update to 0.6.4, cleanups

* Thu Jun 02 2006 Avi Alkalay <avi at unix.sh> 0.6.3-1
- Initial packaging



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/elektra/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	25 Mar 2007 17:40:25 -0000	1.1
+++ .cvsignore	26 Mar 2007 01:26:26 -0000	1.2
@@ -0,0 +1 @@
+elektra-0.6.10.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/elektra/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	25 Mar 2007 17:40:25 -0000	1.1
+++ sources	26 Mar 2007 01:26:26 -0000	1.2
@@ -0,0 +1 @@
+dc8b22ac8eddecd7d0b32d13fde4a2e0  elektra-0.6.10.tar.gz




More information about the fedora-extras-commits mailing list