summaryrefslogtreecommitdiff
path: root/package/pango
diff options
context:
space:
mode:
Diffstat (limited to 'package/pango')
-rw-r--r--package/pango/S25pango19
-rw-r--r--package/pango/pango.mk4
2 files changed, 23 insertions, 0 deletions
diff --git a/package/pango/S25pango b/package/pango/S25pango
new file mode 100644
index 000000000..b214bdc5f
--- /dev/null
+++ b/package/pango/S25pango
@@ -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
diff --git a/package/pango/pango.mk b/package/pango/pango.mk
index d1e4f28b9..9c7862e96 100644
--- a/package/pango/pango.mk
+++ b/package/pango/pango.mk
@@ -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 $@