From: Mirko Vogt Date: Wed, 21 Jan 2009 21:02:54 +0000 (+0000) Subject: introduce new uci option "autostart" and modify xserver init scripts and window manag... X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e59d547c787ed36142cc62c3b5bd569e4e8b9d20;p=openwrt%2Fsvn-archive%2Ffeeds.git introduce new uci option "autostart" and modify xserver init scripts and window managers to make use of it SVN-Revision: 14140 --- diff --git a/desktop/wm/karmen/Makefile b/desktop/wm/karmen/Makefile index 69683f0..1e206f4 100644 --- a/desktop/wm/karmen/Makefile +++ b/desktop/wm/karmen/Makefile @@ -45,6 +45,17 @@ define Package/karmen/install $(INSTALL_BIN) \ $(PKG_INSTALL_DIR)/usr/bin/* \ $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/etc/uci-defaults + $(INSTALL_DATA) \ + ./files/uci-defaults/x11 \ + $(1)/etc/uci-defaults/ +endef + +define Package/karmen/postinst + #!/bin/sh + [ -n "$${IPKG_INSTROOT}" ] && exit + . /etc/functions.sh + uci_apply_defaults endef $(eval $(call BuildPackage,karmen)) diff --git a/desktop/wm/karmen/files/uci-defaults/x11 b/desktop/wm/karmen/files/uci-defaults/x11 new file mode 100644 index 0000000..aad2d58 --- /dev/null +++ b/desktop/wm/karmen/files/uci-defaults/x11 @@ -0,0 +1 @@ +uci set x11.@desktop[0].autostart=karmen diff --git a/desktop/wm/openbox/Makefile b/desktop/wm/openbox/Makefile index 490f884..5b8f3fb 100644 --- a/desktop/wm/openbox/Makefile +++ b/desktop/wm/openbox/Makefile @@ -106,6 +106,18 @@ define Build/InstallDev $(INSTALL_DATA) \ $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \ $(1)/usr/lib/pkgconfig/ + + $(INSTALL_DIR) $(1)/etc/uci-defaults + $(INSTALL_DATA) \ + ./files/uci-defaults/* \ + $(1)/etc/uci-defaults/ +endef + +define Package/openbox/postinst + #!/bin/sh + [ -n "$${IPKG_INSTROOT}" ] && exit + . /etc/functions.sh + uci_apply_defaults endef $(eval $(call BuildPackage,openbox)) diff --git a/desktop/wm/openbox/files/uci-defaults/x11 b/desktop/wm/openbox/files/uci-defaults/x11 new file mode 100644 index 0000000..2062fb5 --- /dev/null +++ b/desktop/wm/openbox/files/uci-defaults/x11 @@ -0,0 +1 @@ +uci set x11.@desktop[0].autostart=openbox diff --git a/efl/enlightenment/Makefile b/efl/enlightenment/Makefile index 78dac20..aaa96f3 100644 --- a/efl/enlightenment/Makefile +++ b/efl/enlightenment/Makefile @@ -62,7 +62,7 @@ define Build/Compile endef define Build/InstallDev - mkdir -p $(1)/usr/include $(1)/usr/lib $(1)/usr/bin $(1)/usr/share + $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/bin $(1)/usr/share $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ @@ -70,22 +70,27 @@ define Build/InstallDev endef define Package/enlightenment/install - $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/bin $(1)/usr/share + $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/bin $(1)/usr/share $(1)/etc/uci-defaults $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ $(CP) $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/ - echo "#!/bin/sh" > $(1)/usr/bin/WM - echo -n "/usr/bin/enlightenment_start -profile " >> $(1)/usr/bin/WM - $(if $(CONFIG_E17_ILLUME),echo "illume" >> $(1)/usr/bin/WM) - $(if $(CONFIG_E17_MINIMALIST),echo "minimalist" >> $(1)/usr/bin/WM) - $(if $(CONFIG_E17_NETBOOK),echo "netbook" >> $(1)/usr/bin/WM) - $(if $(CONFIG_E17_SCALEABLE),echo "scaleable" >> $(1)/usr/bin/WM) - $(if $(CONFIG_E17_STANDARD),echo "standard" >> $(1)/usr/bin/WM) - chmod +x $(1)/usr/bin/WM + $(INSTALL_DATA) ./files/uci-defaults/x11 $(1)/etc/uci-defaults/ + $(if $(CONFIG_E17_ILLUME),echo "illume" >> $(1)/etc/uci-defaults/x11) + $(if $(CONFIG_E17_MINIMALIST),echo "minimalist" >> $(1)/etc/uci-defaults/x11) + $(if $(CONFIG_E17_NETBOOK),echo "netbook" >> $(1)/etc/uci-defaults/x11) + $(if $(CONFIG_E17_SCALEABLE),echo "scaleable" >> $(1)/etc/uci-defaults/x11) + $(if $(CONFIG_E17_STANDARD),echo "standard" >> $(1)/etc/uci-defaults/x11) find $(1)/ -name *.la | xargs rm -f find $(1)/ -name *.a | xargs rm -f endef +define Package/enlightenment/postinst + #!/bin/sh + [ -n "$${IPKG_INSTROOT}" ] && exit + . /etc/functions.sh + uci_apply_defaults +endef + $(eval $(call BuildPackage,enlightenment)) $(eval $(call RequireCommand,edje_cc, \ Command not found - please install edje with edje-cc enabled \ diff --git a/efl/enlightenment/files/uci-defaults/x11 b/efl/enlightenment/files/uci-defaults/x11 new file mode 100644 index 0000000..0c8852f --- /dev/null +++ b/efl/enlightenment/files/uci-defaults/x11 @@ -0,0 +1 @@ +uci set x11.@desktop[0].autostart=enlightenment_start -profile \ No newline at end of file diff --git a/xfce/wm/xfwm4/Makefile b/xfce/wm/xfwm4/Makefile index e44823e..c794e35 100644 --- a/xfce/wm/xfwm4/Makefile +++ b/xfce/wm/xfwm4/Makefile @@ -65,6 +65,18 @@ define Package/xfwm4/install $(INSTALL_DATA) \ $(PKG_INSTALL_DIR)/usr/share/xfwm4/* \ $(1)/usr/share/xfwm4/ + + $(INSTALL_DIR) $(1)/etc/uci-defaults + $(INSTALL_DATA) \ + ./files/uci-defaults/x11 \ + $(1)/etc/uci-defaults/ +endef + +define Package/xfwm4/postinst + #!/bin/sh + [ -n "$${IPKG_INSTROOT}" ] && exit + . /etc/functions.sh + uci_apply_defaults endef $(eval $(call BuildPackage,xfwm4)) diff --git a/xfce/wm/xfwm4/files/uci-defaults/x11 b/xfce/wm/xfwm4/files/uci-defaults/x11 new file mode 100644 index 0000000..0629b2e --- /dev/null +++ b/xfce/wm/xfwm4/files/uci-defaults/x11 @@ -0,0 +1 @@ +uci set x11.@desktop[0].autostart=xfce4