]> git.pld-linux.org Git - packages/couchdb.git/commitdiff
- add tmpfiles.d
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 26 Feb 2012 11:40:06 +0000 (11:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    couchdb.spec -> 1.7
    couchdb.tmpfiles -> 1.1

couchdb.spec
couchdb.tmpfiles [new file with mode: 0644]

index d69255da1fc3143f764a6215a717acd476a40a7a..b300f794596ddd3dbe683fae5ff60651b4a6b399 100644 (file)
@@ -20,6 +20,7 @@ Group:                Applications
 Source0:       http://www.apache.org/dist/couchdb/%{version}/apache-%{name}-%{version}.tar.gz
 # Source0-md5: 001cf286b72492617e9ffba271702a00
 Source1:       %{name}.init
+Source2:       %{name}.tmpfiles
 URL:           http://couchdb.apache.org/
 BuildRequires: autoconf >= 2.59
 BuildRequires: automake >= 1.6.3
@@ -32,7 +33,7 @@ BuildRequires:        libicu-devel >= 3.4.1
 BuildRequires: libtool
 BuildRequires: pakchois-devel
 BuildRequires: pkgconfig
-BuildRequires: rpmbuild(macros) >= 1.228
+BuildRequires: rpmbuild(macros) >= 1.647
 Requires(post,preun):  /sbin/chkconfig
 Requires(pre): /bin/id
 Requires(pre): /usr/bin/getgid
@@ -43,8 +44,6 @@ Provides:     group(couchdb)
 Provides:      user(couchdb)
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define        no_install_post_check_tmpfiles 1
-
 %description
 Apache CouchDB is a distributed, fault-tolerant and schema-free
 document-oriented database accessible via a RESTful HTTP/JSON API.
@@ -84,9 +83,12 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
 mv $RPM_BUILD_ROOT%{_sysconfdir}/default/couchdb $RPM_BUILD_ROOT/etc/sysconfig
 
-mv $RPM_BUILD_ROOT/etc/rc.d/{,init.d}/%{name}
+%{__rm} $RPM_BUILD_ROOT/etc/rc.d/%{name}
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 
+install -d $RPM_BUILD_ROOT%{systemdtmpfilesdir}
+cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
+
 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
 
 %clean
@@ -123,6 +125,7 @@ fi
 
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%{systemdtmpfilesdir}/couchdb.conf
 
 # XXX: sbindir?
 %attr(755,root,root) %{_bindir}/couchdb
@@ -177,3 +180,5 @@ fi
 
 %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/couchdb
 %attr(700,couchdb,couchdb) %dir %{_localstatedir}/log/couchdb
+
+%attr(755,couchdb,root) %dir /var/run/couchdb
diff --git a/couchdb.tmpfiles b/couchdb.tmpfiles
new file mode 100644 (file)
index 0000000..c19c662
--- /dev/null
@@ -0,0 +1 @@
+d /var/run/couchdb 0755 couchdb root
This page took 0.035054 seconds and 4 git commands to generate.