Home » Mailing lists » Devel » [PATCH] Relocate cron master file from pkgdatadir to pkgconfdir
[PATCH] Relocate cron master file from pkgdatadir to pkgconfdir [message #10858] |
Tue, 06 March 2007 00:35  |
ldv
Messages: 24 Registered: June 2006
|
Junior Member |
|
|
Configuration files should not be placed in datadir, and the
cron master file is marked with %config(noreplace) attribute.
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
paths.am | 2 +-
vzctl.spec | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/paths.am b/paths.am
index b8354c9..9f65692 100644
--- a/paths.am
+++ b/paths.am
@@ -20,7 +20,7 @@ bashcdir = $(sysconfdir)/bash_completion.d
endif
if ENABLE_CRON
-cronddir = $(pkgdatadir)/cron
+cronddir = $(pkgconfdir)/cron
dst_cronddir= $(sysconfdir)/cron.d
endif
diff --git a/vzctl.spec b/vzctl.spec
index 9dc219f..d2253f3 100644
--- a/vzctl.spec
+++ b/vzctl.spec
@@ -1,5 +1,4 @@
%define _initddir %_sysconfdir/init.d
-%define _crondir /usr/share/vzctl/cron
%define _vzdir /vz
%define _lockdir %{_vzdir}/lock
%define _dumpdir %{_vzdir}/dump
@@ -11,6 +10,7 @@
%define _vpsconfdir %_sysconfdir/sysconfig/vz-scripts
%define _netdir %_sysconfdir/sysconfig/network-scripts
%define _logrdir %_sysconfdir/logrotate.d
+%define _crondir %{_configdir}/cron
%define _distconfdir %{_configdir}/dists
%define _namesdir %{_configdir}/names
%define _distscriptdir %{_distconfdir}/scripts
@@ -76,13 +76,13 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%attr(755,root,root) %{_initddir}/vz
-%attr(644,root,root) %config(noreplace) %{_crondir}/vz
%ghost /etc/cron.d/vz
%dir %attr(755,root,root) %{_lockdir}
%dir %attr(755,root,root) %{_dumpdir}
%dir %attr(755,root,root) %{_cachedir}
%dir %attr(755,root,root) %{_veipdir}
%dir %attr(755,root,root) %{_configdir}
+%dir %attr(755,root,root) %{_crondir}
%dir %attr(755,root,root) %{_namesdir}
%dir %attr(755,root,root) %{_vpsconfdir}
%dir %attr(755,root,root) %{_distconfdir}
@@ -128,6 +128,7 @@ rm -rf $RPM_BUILD_ROOT
%config(noreplace) %{_configdir}/vz.conf
%config(noreplace) %{_distconfdir}/*.conf
+%attr(644,root,root) %config(noreplace) %{_crondir}/vz
%config %{_vpsconfdir}/ve-vps.basic.conf-sample
%config %{_vpsconfdir}/ve-light.conf-sample
%config %{_vpsconfdir}/0.conf
--
1.5.0.3.GIT
|
|
|
Re: [PATCH] Relocate cron master file from pkgdatadir to pkgconfdir [message #10864 is a reply to message #10858] |
Tue, 06 March 2007 08:16  |
|
Dmitry V. Levin wrote:
> Configuration files should not be placed in datadir
Agreed
> and the
> cron master file is marked with %config(noreplace) attribute.
>
Well, it is already marked with %config(noreplace).
So -- I do understand and agree with the patch, but I do not understand
this comment about noreplace. Please clarify.
> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
> ---
> paths.am | 2 +-
> vzctl.spec | 5 +++--
> 2 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/paths.am b/paths.am
> index b8354c9..9f65692 100644
> --- a/paths.am
> +++ b/paths.am
> @@ -20,7 +20,7 @@ bashcdir = $(sysconfdir)/bash_completion.d
> endif
>
> if ENABLE_CRON
> -cronddir = $(pkgdatadir)/cron
> +cronddir = $(pkgconfdir)/cron
> dst_cronddir= $(sysconfdir)/cron.d
> endif
>
> diff --git a/vzctl.spec b/vzctl.spec
> index 9dc219f..d2253f3 100644
> --- a/vzctl.spec
> +++ b/vzctl.spec
> @@ -1,5 +1,4 @@
> %define _initddir %_sysconfdir/init.d
> -%define _crondir /usr/share/vzctl/cron
> %define _vzdir /vz
> %define _lockdir %{_vzdir}/lock
> %define _dumpdir %{_vzdir}/dump
> @@ -11,6 +10,7 @@
> %define _vpsconfdir %_sysconfdir/sysconfig/vz-scripts
> %define _netdir %_sysconfdir/sysconfig/network-scripts
> %define _logrdir %_sysconfdir/logrotate.d
> +%define _crondir %{_configdir}/cron
> %define _distconfdir %{_configdir}/dists
> %define _namesdir %{_configdir}/names
> %define _distscriptdir %{_distconfdir}/scripts
> @@ -76,13 +76,13 @@ rm -rf $RPM_BUILD_ROOT
> %files
> %defattr(-,root,root)
> %attr(755,root,root) %{_initddir}/vz
> -%attr(644,root,root) %config(noreplace) %{_crondir}/vz
> %ghost /etc/cron.d/vz
> %dir %attr(755,root,root) %{_lockdir}
> %dir %attr(755,root,root) %{_dumpdir}
> %dir %attr(755,root,root) %{_cachedir}
> %dir %attr(755,root,root) %{_veipdir}
> %dir %attr(755,root,root) %{_configdir}
> +%dir %attr(755,root,root) %{_crondir}
> %dir %attr(755,root,root) %{_namesdir}
> %dir %attr(755,root,root) %{_vpsconfdir}
> %dir %attr(755,root,root) %{_distconfdir}
> @@ -128,6 +128,7 @@ rm -rf $RPM_BUILD_ROOT
>
> %config(noreplace) %{_configdir}/vz.conf
> %config(noreplace) %{_distconfdir}/*.conf
> +%attr(644,root,root) %config(noreplace) %{_crondir}/vz
> %config %{_vpsconfdir}/ve-vps.basic.conf-sample
> %config %{_vpsconfdir}/ve-light.conf-sample
> %config %{_vpsconfdir}/0.conf
>
> ------------------------------------------------------------ ------------
>
|
|
|
Goto Forum:
Current Time: Mon Jul 28 22:25:06 GMT 2025
Total time taken to generate the page: 0.73647 seconds
|