Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] svn commit: [25555] trunk/buildroot/package/logrotate
@ 2009-03-05 19:00 jacmet at uclibc.org
  2009-03-07 19:34 ` Hiroshi Shinji
  0 siblings, 1 reply; 3+ messages in thread
From: jacmet at uclibc.org @ 2009-03-05 19:00 UTC (permalink / raw)
  To: buildroot

Author: jacmet
Date: 2009-03-05 19:00:17 +0000 (Thu, 05 Mar 2009)
New Revision: 25555

Log:
logrotate: only install logrotate.conf if not present in target_skeleton

Allow platforms to provide a custom logrotate.conf in their target_skeleton.

Modified:
   trunk/buildroot/package/logrotate/logrotate.mk


Changeset:
Modified: trunk/buildroot/package/logrotate/logrotate.mk
===================================================================
--- trunk/buildroot/package/logrotate/logrotate.mk	2009-03-05 19:00:11 UTC (rev 25554)
+++ trunk/buildroot/package/logrotate/logrotate.mk	2009-03-05 19:00:17 UTC (rev 25555)
@@ -18,7 +18,9 @@
 
 $(TARGET_DIR)/$(LOGROTATE_TARGET_BINARY): $(LOGROTATE_DIR)/$(LOGROTATE_BINARY)
 	$(MAKE) PREFIX=$(TARGET_DIR) -C $(LOGROTATE_DIR) install
-	$(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf
+	if [ ! -f $(TARGET_DIR)/etc/logrotate.conf ]; then
+		$(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf;
+	fi
 	$(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/logrotate.d
 
 logrotate: popt $(TARGET_DIR)/$(LOGROTATE_TARGET_BINARY)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] svn commit: [25555] trunk/buildroot/package/logrotate
  2009-03-05 19:00 [Buildroot] svn commit: [25555] trunk/buildroot/package/logrotate jacmet at uclibc.org
@ 2009-03-07 19:34 ` Hiroshi Shinji
  2009-03-07 20:16   ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Hiroshi Shinji @ 2009-03-07 19:34 UTC (permalink / raw)
  To: buildroot

Hi,

> +       if [ ! -f $(TARGET_DIR)/etc/logrotate.conf ]; then
> +               $(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf;

You need to append backslashes to the end of these lines.

Regards,


2009/3/6  <jacmet@uclibc.org>:
> Author: jacmet
> Date: 2009-03-05 19:00:17 +0000 (Thu, 05 Mar 2009)
> New Revision: 25555
>
> Log:
> logrotate: only install logrotate.conf if not present in target_skeleton
>
> Allow platforms to provide a custom logrotate.conf in their target_skeleton.
>
> Modified:
>   trunk/buildroot/package/logrotate/logrotate.mk
>
>
> Changeset:
> Modified: trunk/buildroot/package/logrotate/logrotate.mk
> ===================================================================
> --- trunk/buildroot/package/logrotate/logrotate.mk      2009-03-05 19:00:11 UTC (rev 25554)
> +++ trunk/buildroot/package/logrotate/logrotate.mk      2009-03-05 19:00:17 UTC (rev 25555)
> @@ -18,7 +18,9 @@
>
>  $(TARGET_DIR)/$(LOGROTATE_TARGET_BINARY): $(LOGROTATE_DIR)/$(LOGROTATE_BINARY)
>        $(MAKE) PREFIX=$(TARGET_DIR) -C $(LOGROTATE_DIR) install
> -       $(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf
> +       if [ ! -f $(TARGET_DIR)/etc/logrotate.conf ]; then
> +               $(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf;
> +       fi
>        $(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/logrotate.d
>
>  logrotate: popt $(TARGET_DIR)/$(LOGROTATE_TARGET_BINARY)
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>


-- 
?? ?
hiroshi.shinji at gmail.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] svn commit: [25555] trunk/buildroot/package/logrotate
  2009-03-07 19:34 ` Hiroshi Shinji
@ 2009-03-07 20:16   ` Peter Korsgaard
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2009-03-07 20:16 UTC (permalink / raw)
  To: buildroot

>>>>> "Hiroshi" == Hiroshi Shinji <hiroshi.shinji@gmail.com> writes:

 Hiroshi> Hi,
 >> +       if [ ! -f $(TARGET_DIR)/etc/logrotate.conf ]; then
 >> +               $(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf;

 Hiroshi> You need to append backslashes to the end of these lines.

But ofcourse - Thanks.

That's what I get from trying to do too many things at once.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-07 20:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-05 19:00 [Buildroot] svn commit: [25555] trunk/buildroot/package/logrotate jacmet at uclibc.org
2009-03-07 19:34 ` Hiroshi Shinji
2009-03-07 20:16   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox