Changeset: f0b667e0a337 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f0b667e0a337
Modified Files:
MonetDB.spec
Branch: Aug2011
Log Message:
Make sure /var/run/monetdb is created after installation on Fedora 15.
diffs (41 lines):
diff --git a/MonetDB.spec b/MonetDB.spec
--- a/MonetDB.spec
+++ b/MonetDB.spec
@@ -415,6 +415,10 @@ fi
Summary: MonetDB5 SQL server modules
Group: Applications/Databases
Requires: MonetDB5-server = %{version}-%{release}
+%if (0%{?fedora} > 14)
+# for systemd-tmpfiles
+Requires: systemd-units
+%endif
Obsoletes: MonetDB-SQL-devel
Obsoletes: %{name}-SQL
@@ -427,16 +431,23 @@ accelerators, SQL- and XML- frontends.
This package contains the SQL frontend for MonetDB5. If you want to
use SQL with MonetDB, you will need to install this package.
+%if (0%{?fedora} > 14)
+%post SQL-server5
+systemd-tmpfiles --create %{_sysconfdir}/tmpfiles.d/monetdbd.conf
+%endif
+
%files SQL-server5
%defattr(-,root,root)
%{_bindir}/monetdb
%{_bindir}/monetdbd
%dir %attr(775,monetdb,monetdb) %{_localstatedir}/log/monetdb
-%if ! (0%{?fedora} > 14)
+%if (0%{?fedora} > 14)
+# Fedora 15 and newer
+%{_sysconfdir}/tmpfiles.d/monetdbd.conf
+%else
+# Fedora 14 and older
%dir %attr(775,monetdb,monetdb) %{_localstatedir}/run/monetdb
%exclude %{_sysconfdir}/tmpfiles.d/monetdbd.conf
-%else
-%{_sysconfdir}/tmpfiles.d/monetdbd.conf
%endif
%config(noreplace) %{_localstatedir}/monetdb5/dbfarm/.merovingian_properties
%{_libdir}/monetdb5/autoload/*_sql.mal
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list