[dnrd] Fix systemd unit 755 wrong permission. Scratch a build to see what will happen to the building due t

Christopher Meng cicku at fedoraproject.org
Sun Mar 30 07:42:00 UTC 2014


commit aa32c910fb444f4cbe08790c1539d5ba4475eea4
Author: Christopher Meng <i at cicku.me>
Date:   Sun Mar 30 15:40:57 2014 +0800

    Fix systemd unit 755 wrong permission.
    Scratch a build to see what will happen to the building due to new redhat-rpm-config.

 dnrd.spec |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/dnrd.spec b/dnrd.spec
index ff854be..1d26fd3 100644
--- a/dnrd.spec
+++ b/dnrd.spec
@@ -2,13 +2,14 @@
 
 Name:              dnrd
 Version:           2.20.3
-Release:           13%{?dist}
+Release:           14%{?dist}
 Summary:           Domain Name Relay Daemon
 License:           GPLv2
 URL:               http://dnrd.sourceforge.net
 Source0:           http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 Source1:           %{name}.service
 Source2:           %{name}.conf.sample
+#Patch0:            dnrd-2.20.3-gcc-format-security-fix.patch
 BuildRequires:     systemd
 Requires(post):    systemd
 Requires(preun):   systemd
@@ -30,11 +31,10 @@ sed -i 's/\r//' COPYING
 make %{?_smp_mflags}
 
 %install
-make install INSTALL="install -p" DESTDIR=%{buildroot}
-mkdir -p %{buildroot}%{_sysconfdir}/%{name}
-install -p -m644 %{S:2} %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
-mkdir -p %{buildroot}%{_unitdir}
-install -p -m755 %{S:1} %{buildroot}%{_unitdir}/%{name}.service
+%make_install
+mkdir -p %{buildroot}%{_sysconfdir}/%{name} %{buildroot}%{_unitdir}
+install -pm644 %{S:1} %{buildroot}%{_unitdir}/%{name}.service
+install -pm644 %{S:2} %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
 
 %post
 %systemd_post %{name}.service
@@ -65,6 +65,10 @@ install -p -m755 %{S:1} %{buildroot}%{_unitdir}/%{name}.service
 %config(noreplace) %{_sysconfdir}/%{name}/dnrd.conf
 
 %changelog
+* Wed Feb 12 2014 Christopher Meng <rpm at cicku.me> - 2.20.3-14
+- GCC dumb format-security fix.
+- Fix systemd unit permission.
+
 * Wed Aug 07 2013 Christopher Meng <rpm at cicku.me> - 2.20.3-13
 - Build with PIE support(BZ#958037).
 - Migrating to new systemd macro(BZ#850095).


More information about the scm-commits mailing list