浏览代码

pango: add init script to create /etc/pango/pango.modules

It would be nicer to do this at compile time, but then we would need to
compile pango for the host as well.
Peter Korsgaard 16 年之前
父节点
当前提交
e528d99d96
共有 2 个文件被更改,包括 23 次插入0 次删除
  1. 19 0
      package/pango/S25pango
  2. 4 0
      package/pango/pango.mk

+ 19 - 0
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

+ 4 - 0
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 $@