pango: add init script to create /etc/pango/pango.modules
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 31 Dec 2008 09:35:11 +0000 (09:35 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 31 Dec 2008 09:35:11 +0000 (09:35 -0000)
It would be nicer to do this at compile time, but then we would need to
compile pango for the host as well.

package/pango/S25pango [new file with mode: 0644]
package/pango/pango.mk

diff --git a/package/pango/S25pango b/package/pango/S25pango
new file mode 100644 (file)
index 0000000..b214bdc
--- /dev/null
@@ -0,0 +1,19 @@
+#! /bin/sh
+#
+# run pango-querymodules if needed
+
+FILE=/etc/pango/pango.modules
+
+case "$1" in
+    start|"")
+       if [ ! -f "$FILE" ] ; then
+           /usr/bin/pango-querymodules > "$FILE"
+       fi
+       ;;
+    stop)
+       ;;
+    *)
+       echo "Usage: $0 {start|stop}" >&2
+       exit 1
+       ;;
+esac
index d1e4f28b963587a2510a5a37ccbf8f1cca7f2060..9c7862e964d6d9b49e50a83fec72f80443859966 100644 (file)
@@ -55,3 +55,7 @@ PANGO_CONF_OPT = --enable-shared --enable-static \
 PANGO_DEPENDENCIES = uclibc gettext libintl pkgconfig libglib2 $(XSERVER) cairo
 
 $(eval $(call AUTOTARGETS,package,pango))
+
+$(PANGO_HOOK_POST_INSTALL):
+       $(INSTALL) -m 755 package/pango/S25pango $(TARGET_DIR)/etc/init.d/
+       touch $@