Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] fluxbox: add xsession profile
@ 2011-10-10  9:21 yegorslists at googlemail.com
  2011-10-10  9:21 ` [Buildroot] [PATCH 2/3] xdm: bump to 1.1.11 yegorslists at googlemail.com
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: yegorslists at googlemail.com @ 2011-10-10  9:21 UTC (permalink / raw)
  To: buildroot

From: Yegor Yefremov <yegorslists@googlemail.com>

add .xsession profile to get fluxbox being started automatically
by XDM

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 package/fluxbox/.xsession  |    1 +
 package/fluxbox/fluxbox.mk |    6 ++++++
 2 files changed, 7 insertions(+), 0 deletions(-)
 create mode 100644 package/fluxbox/.xsession

diff --git a/package/fluxbox/.xsession b/package/fluxbox/.xsession
new file mode 100644
index 0000000..3775bad
--- /dev/null
+++ b/package/fluxbox/.xsession
@@ -0,0 +1 @@
+exec startfluxbox
diff --git a/package/fluxbox/fluxbox.mk b/package/fluxbox/fluxbox.mk
index 85a8eae..e0f6e4e 100644
--- a/package/fluxbox/fluxbox.mk
+++ b/package/fluxbox/fluxbox.mk
@@ -13,4 +13,10 @@ FLUXBOX_CONF_OPT = --x-includes=$(STAGING_DIR)/usr/include/X11 \
 
 FLUXBOX_DEPENDENCIES = xlib_libX11 $(if $(BR2_PACKAGE_LIBICONV),libiconv)
 
+define FLUXBOX_INSTALL_XSESSION_FILE
+	$(INSTALL) -m 0644 package/fluxbox/.xsession $(TARGET_DIR)/root/.xsession
+endef
+
+FLUXBOX_POST_INSTALL_TARGET_HOOKS += FLUXBOX_INSTALL_XSESSION_FILE
+
 $(eval $(call AUTOTARGETS))
-- 
1.7.1.1

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

* [Buildroot] [PATCH 2/3] xdm: bump to 1.1.11
  2011-10-10  9:21 [Buildroot] [PATCH 1/3] fluxbox: add xsession profile yegorslists at googlemail.com
@ 2011-10-10  9:21 ` yegorslists at googlemail.com
  2011-12-07 10:32   ` Yegor Yefremov
  2011-12-07 20:18   ` Peter Korsgaard
  2011-10-10  9:22 ` [Buildroot] [PATCH 3/3] xdm: install startup script yegorslists at googlemail.com
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 9+ messages in thread
From: yegorslists at googlemail.com @ 2011-10-10  9:21 UTC (permalink / raw)
  To: buildroot

From: Yegor Yefremov <yegorslists@googlemail.com>

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 package/x11r7/xapp_xdm/xapp_xdm.mk |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/package/x11r7/xapp_xdm/xapp_xdm.mk b/package/x11r7/xapp_xdm/xapp_xdm.mk
index 4dc0d02..81e2acd 100644
--- a/package/x11r7/xapp_xdm/xapp_xdm.mk
+++ b/package/x11r7/xapp_xdm/xapp_xdm.mk
@@ -4,10 +4,11 @@
 #
 ################################################################################
 
-XAPP_XDM_VERSION = 1.1.6
+XAPP_XDM_VERSION = 1.1.11
 XAPP_XDM_SOURCE = xdm-$(XAPP_XDM_VERSION).tar.bz2
 XAPP_XDM_SITE = http://xorg.freedesktop.org/releases/individual/app
 XAPP_XDM_CONF_ENV = ac_cv_file__dev_urandom=yes
 XAPP_XDM_DEPENDENCIES = xapp_xinit xapp_sessreg xapp_xrdb xlib_libX11 xlib_libXaw xlib_libXdmcp xlib_libXinerama xlib_libXt xproto_xineramaproto xproto_xproto
+XAPP_XDM_CONF_OPT = --with-utmp-file=/var/adm/utmpx --with-wtmp-file=/var/adm/wtmpx
 
 $(eval $(call AUTOTARGETS))
-- 
1.7.1.1

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

* [Buildroot] [PATCH 3/3] xdm: install startup script
  2011-10-10  9:21 [Buildroot] [PATCH 1/3] fluxbox: add xsession profile yegorslists at googlemail.com
  2011-10-10  9:21 ` [Buildroot] [PATCH 2/3] xdm: bump to 1.1.11 yegorslists at googlemail.com
@ 2011-10-10  9:22 ` yegorslists at googlemail.com
  2011-12-07 10:32   ` Yegor Yefremov
  2011-12-07 20:32   ` Peter Korsgaard
  2011-12-07 10:31 ` [Buildroot] [PATCH 1/3] fluxbox: add xsession profile Yegor Yefremov
  2011-12-07 20:14 ` Peter Korsgaard
  3 siblings, 2 replies; 9+ messages in thread
From: yegorslists at googlemail.com @ 2011-10-10  9:22 UTC (permalink / raw)
  To: buildroot

From: Yegor Yefremov <yegorslists@googlemail.com>

install S99xdm to /etc/init.d to start XDM automatically

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 package/x11r7/xapp_xdm/S99xdm      |   27 +++++++++++++++++++++++++++
 package/x11r7/xapp_xdm/xapp_xdm.mk |    6 ++++++
 2 files changed, 33 insertions(+), 0 deletions(-)
 create mode 100644 package/x11r7/xapp_xdm/S99xdm

diff --git a/package/x11r7/xapp_xdm/S99xdm b/package/x11r7/xapp_xdm/S99xdm
new file mode 100644
index 0000000..57b5d92
--- /dev/null
+++ b/package/x11r7/xapp_xdm/S99xdm
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+XDM_BIN=/usr/bin/xdm
+
+case "$1" in
+    start)
+        echo -n "Starting XDM: "
+        $XDM_BIN
+        echo "done"
+        ;;
+    stop)
+	echo "Stopping XDM"
+        killall -q xdm
+        ;;
+    restart)
+        /etc/init.d/S99xdm stop
+        /etc/init.d/S99xdm start
+        ;;
+    *)
+        echo "Usage: $0 {start|stop|restart}"
+        exit 1
+        ;;
+esac
+
+
+exit 0
+
diff --git a/package/x11r7/xapp_xdm/xapp_xdm.mk b/package/x11r7/xapp_xdm/xapp_xdm.mk
index 81e2acd..d0fc2fc 100644
--- a/package/x11r7/xapp_xdm/xapp_xdm.mk
+++ b/package/x11r7/xapp_xdm/xapp_xdm.mk
@@ -11,4 +11,10 @@ XAPP_XDM_CONF_ENV = ac_cv_file__dev_urandom=yes
 XAPP_XDM_DEPENDENCIES = xapp_xinit xapp_sessreg xapp_xrdb xlib_libX11 xlib_libXaw xlib_libXdmcp xlib_libXinerama xlib_libXt xproto_xineramaproto xproto_xproto
 XAPP_XDM_CONF_OPT = --with-utmp-file=/var/adm/utmpx --with-wtmp-file=/var/adm/wtmpx
 
+define XAPP_XDM_INSTALL_STARTUP_SCRIPT
+	$(INSTALL) -m 0755 package/x11r7/xapp_xdm/S99xdm $(TARGET_DIR)/etc/init.d/S99xdm
+endef
+
+XAPP_XDM_POST_INSTALL_TARGET_HOOKS += XAPP_XDM_INSTALL_STARTUP_SCRIPT
+
 $(eval $(call AUTOTARGETS))
-- 
1.7.1.1

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

* [Buildroot] [PATCH 1/3] fluxbox: add xsession profile
  2011-10-10  9:21 [Buildroot] [PATCH 1/3] fluxbox: add xsession profile yegorslists at googlemail.com
  2011-10-10  9:21 ` [Buildroot] [PATCH 2/3] xdm: bump to 1.1.11 yegorslists at googlemail.com
  2011-10-10  9:22 ` [Buildroot] [PATCH 3/3] xdm: install startup script yegorslists at googlemail.com
@ 2011-12-07 10:31 ` Yegor Yefremov
  2011-12-07 20:14 ` Peter Korsgaard
  3 siblings, 0 replies; 9+ messages in thread
From: Yegor Yefremov @ 2011-12-07 10:31 UTC (permalink / raw)
  To: buildroot

Am 10.10.2011 11:21, schrieb yegorslists at googlemail.com:
> From: Yegor Yefremov <yegorslists@googlemail.com>
> 
> add .xsession profile to get fluxbox being started automatically
> by XDM
> 
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
>  package/fluxbox/.xsession  |    1 +
>  package/fluxbox/fluxbox.mk |    6 ++++++
>  2 files changed, 7 insertions(+), 0 deletions(-)
>  create mode 100644 package/fluxbox/.xsession
> 
> diff --git a/package/fluxbox/.xsession b/package/fluxbox/.xsession
> new file mode 100644
> index 0000000..3775bad
> --- /dev/null
> +++ b/package/fluxbox/.xsession
> @@ -0,0 +1 @@
> +exec startfluxbox
> diff --git a/package/fluxbox/fluxbox.mk b/package/fluxbox/fluxbox.mk
> index 85a8eae..e0f6e4e 100644
> --- a/package/fluxbox/fluxbox.mk
> +++ b/package/fluxbox/fluxbox.mk
> @@ -13,4 +13,10 @@ FLUXBOX_CONF_OPT = --x-includes=$(STAGING_DIR)/usr/include/X11 \
>  
>  FLUXBOX_DEPENDENCIES = xlib_libX11 $(if $(BR2_PACKAGE_LIBICONV),libiconv)
>  
> +define FLUXBOX_INSTALL_XSESSION_FILE
> +	$(INSTALL) -m 0644 package/fluxbox/.xsession $(TARGET_DIR)/root/.xsession
> +endef
> +
> +FLUXBOX_POST_INSTALL_TARGET_HOOKS += FLUXBOX_INSTALL_XSESSION_FILE
> +
>  $(eval $(call AUTOTARGETS))

ping?

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

* [Buildroot] [PATCH 2/3] xdm: bump to 1.1.11
  2011-10-10  9:21 ` [Buildroot] [PATCH 2/3] xdm: bump to 1.1.11 yegorslists at googlemail.com
@ 2011-12-07 10:32   ` Yegor Yefremov
  2011-12-07 20:18   ` Peter Korsgaard
  1 sibling, 0 replies; 9+ messages in thread
From: Yegor Yefremov @ 2011-12-07 10:32 UTC (permalink / raw)
  To: buildroot

Am 10.10.2011 11:21, schrieb yegorslists at googlemail.com:
> From: Yegor Yefremov <yegorslists@googlemail.com>
> 
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
>  package/x11r7/xapp_xdm/xapp_xdm.mk |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/package/x11r7/xapp_xdm/xapp_xdm.mk b/package/x11r7/xapp_xdm/xapp_xdm.mk
> index 4dc0d02..81e2acd 100644
> --- a/package/x11r7/xapp_xdm/xapp_xdm.mk
> +++ b/package/x11r7/xapp_xdm/xapp_xdm.mk
> @@ -4,10 +4,11 @@
>  #
>  ################################################################################
>  
> -XAPP_XDM_VERSION = 1.1.6
> +XAPP_XDM_VERSION = 1.1.11
>  XAPP_XDM_SOURCE = xdm-$(XAPP_XDM_VERSION).tar.bz2
>  XAPP_XDM_SITE = http://xorg.freedesktop.org/releases/individual/app
>  XAPP_XDM_CONF_ENV = ac_cv_file__dev_urandom=yes
>  XAPP_XDM_DEPENDENCIES = xapp_xinit xapp_sessreg xapp_xrdb xlib_libX11 xlib_libXaw xlib_libXdmcp xlib_libXinerama xlib_libXt xproto_xineramaproto xproto_xproto
> +XAPP_XDM_CONF_OPT = --with-utmp-file=/var/adm/utmpx --with-wtmp-file=/var/adm/wtmpx
>  
>  $(eval $(call AUTOTARGETS))

ping?

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

* [Buildroot] [PATCH 3/3] xdm: install startup script
  2011-10-10  9:22 ` [Buildroot] [PATCH 3/3] xdm: install startup script yegorslists at googlemail.com
@ 2011-12-07 10:32   ` Yegor Yefremov
  2011-12-07 20:32   ` Peter Korsgaard
  1 sibling, 0 replies; 9+ messages in thread
From: Yegor Yefremov @ 2011-12-07 10:32 UTC (permalink / raw)
  To: buildroot

Am 10.10.2011 11:22, schrieb yegorslists at googlemail.com:
> From: Yegor Yefremov <yegorslists@googlemail.com>
> 
> install S99xdm to /etc/init.d to start XDM automatically
> 
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
>  package/x11r7/xapp_xdm/S99xdm      |   27 +++++++++++++++++++++++++++
>  package/x11r7/xapp_xdm/xapp_xdm.mk |    6 ++++++
>  2 files changed, 33 insertions(+), 0 deletions(-)
>  create mode 100644 package/x11r7/xapp_xdm/S99xdm
> 
> diff --git a/package/x11r7/xapp_xdm/S99xdm b/package/x11r7/xapp_xdm/S99xdm
> new file mode 100644
> index 0000000..57b5d92
> --- /dev/null
> +++ b/package/x11r7/xapp_xdm/S99xdm
> @@ -0,0 +1,27 @@
> +#!/bin/sh
> +
> +XDM_BIN=/usr/bin/xdm
> +
> +case "$1" in
> +    start)
> +        echo -n "Starting XDM: "
> +        $XDM_BIN
> +        echo "done"
> +        ;;
> +    stop)
> +	echo "Stopping XDM"
> +        killall -q xdm
> +        ;;
> +    restart)
> +        /etc/init.d/S99xdm stop
> +        /etc/init.d/S99xdm start
> +        ;;
> +    *)
> +        echo "Usage: $0 {start|stop|restart}"
> +        exit 1
> +        ;;
> +esac
> +
> +
> +exit 0
> +
> diff --git a/package/x11r7/xapp_xdm/xapp_xdm.mk b/package/x11r7/xapp_xdm/xapp_xdm.mk
> index 81e2acd..d0fc2fc 100644
> --- a/package/x11r7/xapp_xdm/xapp_xdm.mk
> +++ b/package/x11r7/xapp_xdm/xapp_xdm.mk
> @@ -11,4 +11,10 @@ XAPP_XDM_CONF_ENV = ac_cv_file__dev_urandom=yes
>  XAPP_XDM_DEPENDENCIES = xapp_xinit xapp_sessreg xapp_xrdb xlib_libX11 xlib_libXaw xlib_libXdmcp xlib_libXinerama xlib_libXt xproto_xineramaproto xproto_xproto
>  XAPP_XDM_CONF_OPT = --with-utmp-file=/var/adm/utmpx --with-wtmp-file=/var/adm/wtmpx
>  
> +define XAPP_XDM_INSTALL_STARTUP_SCRIPT
> +	$(INSTALL) -m 0755 package/x11r7/xapp_xdm/S99xdm $(TARGET_DIR)/etc/init.d/S99xdm
> +endef
> +
> +XAPP_XDM_POST_INSTALL_TARGET_HOOKS += XAPP_XDM_INSTALL_STARTUP_SCRIPT
> +
>  $(eval $(call AUTOTARGETS))

ping?

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

* [Buildroot] [PATCH 1/3] fluxbox: add xsession profile
  2011-10-10  9:21 [Buildroot] [PATCH 1/3] fluxbox: add xsession profile yegorslists at googlemail.com
                   ` (2 preceding siblings ...)
  2011-12-07 10:31 ` [Buildroot] [PATCH 1/3] fluxbox: add xsession profile Yegor Yefremov
@ 2011-12-07 20:14 ` Peter Korsgaard
  3 siblings, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2011-12-07 20:14 UTC (permalink / raw)
  To: buildroot

>>>>> "yegorslists" == yegorslists  <yegorslists@googlemail.com> writes:

 yegorslists> From: Yegor Yefremov <yegorslists@googlemail.com>
 yegorslists> add .xsession profile to get fluxbox being started automatically
 yegorslists> by XDM

Committed with some fixes, thanks.

 yegorslists> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
 yegorslists> ---
 yegorslists>  package/fluxbox/.xsession  |    1 +
 yegorslists>  package/fluxbox/fluxbox.mk |    6 ++++++
 yegorslists>  2 files changed, 7 insertions(+), 0 deletions(-)
 yegorslists>  create mode 100644 package/fluxbox/.xsession

 yegorslists> diff --git a/package/fluxbox/.xsession b/package/fluxbox/.xsession
 yegorslists> new file mode 100644
 yegorslists> index 0000000..3775bad
 yegorslists> --- /dev/null
 yegorslists> +++ b/package/fluxbox/.xsession

I prefer to call it xsession, so it isn't hidden.

 yegorslists> @@ -0,0 +1 @@
 yegorslists> +exec startfluxbox

.xsession scripts afaik should be executable shell scripts.

 yegorslists> diff --git a/package/fluxbox/fluxbox.mk b/package/fluxbox/fluxbox.mk
 yegorslists> index 85a8eae..e0f6e4e 100644
 yegorslists> --- a/package/fluxbox/fluxbox.mk
 yegorslists> +++ b/package/fluxbox/fluxbox.mk
 yegorslists> @@ -13,4 +13,10 @@ FLUXBOX_CONF_OPT = --x-includes=$(STAGING_DIR)/usr/include/X11 \
 
 yegorslists>  FLUXBOX_DEPENDENCIES = xlib_libX11 $(if $(BR2_PACKAGE_LIBICONV),libiconv)
 
 yegorslists> +define FLUXBOX_INSTALL_XSESSION_FILE
 yegorslists> +	$(INSTALL) -m 0644 package/fluxbox/.xsession $(TARGET_DIR)/root/.xsession

We should only install this if it isn't available in the fs skeleton, so
you can provide a custom version. Also use 0755 permissions so it
becomes executable and lastly use install -D so it doesn't fail if
skeleton doesn't have /root/.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 2/3] xdm: bump to 1.1.11
  2011-10-10  9:21 ` [Buildroot] [PATCH 2/3] xdm: bump to 1.1.11 yegorslists at googlemail.com
  2011-12-07 10:32   ` Yegor Yefremov
@ 2011-12-07 20:18   ` Peter Korsgaard
  1 sibling, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2011-12-07 20:18 UTC (permalink / raw)
  To: buildroot

>>>>> "yegorslists" == yegorslists  <yegorslists@googlemail.com> writes:

 yegorslists> From: Yegor Yefremov <yegorslists@googlemail.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 3/3] xdm: install startup script
  2011-10-10  9:22 ` [Buildroot] [PATCH 3/3] xdm: install startup script yegorslists at googlemail.com
  2011-12-07 10:32   ` Yegor Yefremov
@ 2011-12-07 20:32   ` Peter Korsgaard
  1 sibling, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2011-12-07 20:32 UTC (permalink / raw)
  To: buildroot

>>>>> "yegorslists" == yegorslists  <yegorslists@googlemail.com> writes:

 yegorslists> From: Yegor Yefremov <yegorslists@googlemail.com>
 yegorslists> install S99xdm to /etc/init.d to start XDM automatically

Committed with small fixes, thanks.
 
 yegorslists> +define XAPP_XDM_INSTALL_STARTUP_SCRIPT
 yegorslists> +	$(INSTALL) -m 0755 package/x11r7/xapp_xdm/S99xdm $(TARGET_DIR)/etc/init.d/S99xdm

Remember to use install -D to ensure destination dir exists.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2011-12-07 20:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-10  9:21 [Buildroot] [PATCH 1/3] fluxbox: add xsession profile yegorslists at googlemail.com
2011-10-10  9:21 ` [Buildroot] [PATCH 2/3] xdm: bump to 1.1.11 yegorslists at googlemail.com
2011-12-07 10:32   ` Yegor Yefremov
2011-12-07 20:18   ` Peter Korsgaard
2011-10-10  9:22 ` [Buildroot] [PATCH 3/3] xdm: install startup script yegorslists at googlemail.com
2011-12-07 10:32   ` Yegor Yefremov
2011-12-07 20:32   ` Peter Korsgaard
2011-12-07 10:31 ` [Buildroot] [PATCH 1/3] fluxbox: add xsession profile Yegor Yefremov
2011-12-07 20:14 ` Peter Korsgaard

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