diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/abiword/abiword_2.4.2.bb | 52 | ||||
-rwxr-xr-x | packages/irda-utils/files/init | 26 | ||||
-rw-r--r-- | packages/irda-utils/irda-utils_0.9.16.bb | 35 |
3 files changed, 106 insertions, 7 deletions
diff --git a/packages/abiword/abiword_2.4.2.bb b/packages/abiword/abiword_2.4.2.bb new file mode 100644 index 0000000000..26a16dfc32 --- /dev/null +++ b/packages/abiword/abiword_2.4.2.bb @@ -0,0 +1,52 @@ +DESCRIPTION ="AbiWord is free word processing program similar to Microsoft(r) Word"" +HOMEPAGE="http://www.abiword.org"" +MAINTAINER="Koen Kooi <koen@handhelds.org>" +LICENSE="GPLv2" + +DEPENDS = "cdump-native libgsf libgnomeprint libgnomeprintui libglade libfribidi enchant jpeg libpng perl glibc libxml2" +RDEPENDS = "enchant glibc-gconv-ibm850 glibc-gconv-cp1252 \ + glibc-gconv-iso8859-15 glibc-gconv-iso8859-1" +PR="r0" + +SRC_URI = "http://www.abiword.org/downloads/abiword/${PV}/source/abiword-${PV}.tar.gz \ + file://cdump-hack.patch;patch=1" +S = "${WORKDIR}/abiword-${PV}/abi" + +FILES_${PN} += " ${datadir}/icons/* \ +${datadir}/AbiSuite-2.4/AbiWord/glade \ +${datadir}/AbiSuite-2.4/AbiWord/scripts \ +${datadir}/AbiSuite-2.4/AbiWord/system.profile-en \ +${datadir}/AbiSuite-2.4/AbiWord/system.profile-en_GB \ +#${datadir}/AbiSuite-2.4/templates/A4.awt \ +#${datadir}/AbiSuite-2.4/templates/US-Letter.awt \ +${datadir}/AbiSuite-2.4/templates/normal.awt \ +${datadir}/AbiSuite-2.4/templates/normal.awt-en_GB \ +${datadir}/AbiSuite-2.4/templates/Employee-Directory.awt \ +${datadir}/AbiSuite-2.4/templates/Business-Report.awt \ +${datadir}/AbiSuite-2.4/templates/Fax-Coversheet.awt \ +${datadir}/AbiSuite-2.4/templates/Resume.awt \ +${datadir}/AbiSuite-2.4/templates/Two-Columns.awt \ +${datadir}/AbiSuite-2.4/templates/Memo.awt \ +${datadir}/AbiSuite-2.4/templates/Press-Release.awt " + +inherit autotools + +#abiword needs this native tool +export BUILD_CDUMPTOOL="${STAGING_BINDIR}/cdump" + +PARALLEL_MAKE="" + +do_configure () { + cd ${S} + ./autogen.sh + ./configure --prefix=/usr --host=${TARGET_SYS} --disable-pspell --enable-enchant +# --enable-debug + cp -f ${STAGING_BINDIR}/cdump src/tools/cdump/xp/ +} + +do_install_append() { + install -d ${D}${datadir}/pixmaps/ + mv ${D}${datadir}/icons/* ${D}${datadir}/pixmaps/ +} + + diff --git a/packages/irda-utils/files/init b/packages/irda-utils/files/init index f644e59295..f1594aae87 100755 --- a/packages/irda-utils/files/init +++ b/packages/irda-utils/files/init @@ -1,21 +1,35 @@ #! /bin/sh -DESC=irattach +# Source IrDA networking configuration. +. /etc/sysconfig/irda + +# Check that irda is up. +[ ${IRDA} = "no" ] && exit 0 + +[ -f /usr/sbin/irattach ] || exit 0 + +ARGS= +if [ $DONGLE ]; then + ARGS="$ARGS -d $DONGLE" +fi +if [ "$DISCOVERY" = "yes" ];then + ARGS="$ARGS -s" +fi case "$1" in start) - echo -n "Starting $DESC: " - irattach /dev/ttyS1 > /dev/null 2>&1 & + echo -n "Starting IrDA: " + irattach ${DEVICE} ${ARGS} > /dev/null 2>&1 & echo "$NAME." ;; stop) - echo -n "Stopping $DESC: " + echo -n "Stopping IrDA: " killall irattach > /dev/null 2>&1 echo "$NAME." ;; restart|force-reload) - echo -n "Restarting $DESC: " - irattach /dev/ttyS1 > /dev/null 2>&1 & + echo -n "Restarting IrDA: " + irattach ${DEVICE} ${ARGS} > /dev/null 2>&1 & sleep 1 killall irattach > /dev/null 2>&1 echo "$NAME." diff --git a/packages/irda-utils/irda-utils_0.9.16.bb b/packages/irda-utils/irda-utils_0.9.16.bb index 2e09edd841..4acfeff04d 100644 --- a/packages/irda-utils/irda-utils_0.9.16.bb +++ b/packages/irda-utils/irda-utils_0.9.16.bb @@ -3,7 +3,7 @@ IrDA allows communication over Infrared with other devices \ such as phones and laptops." SECTION = "base" LICENSE = "GPL" -PR = "r2" +PR = "r3" SRC_URI = "${SOURCEFORGE_MIRROR}/irda/irda-utils-${PV}.tar.gz \ file://configure.patch;patch=1 \ @@ -30,3 +30,36 @@ do_install () { install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/irattach } + +pkg_postinst () { +#!/bin/sh + +module_id() { + awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo + } + +if [ ! -f /etc/sysconfig/irda ]; then + + case `module_id` in + "HP iPAQ H2200" | "HP iPAQ HX4700") + IRDA=yes + DEVICE=/dev/tts/2 + DONGLE= + DISCOVERY= + ;; + *) + IRDA=yes + DEVICE=/dev/ttyS1 + DONGLE= + DISCOVERY= + ;; + esac + + echo "IRDA=$IRDA" > /etc/sysconfig/irda + if [ $IRDA = "yes" ]; then + echo "DEVICE=$DEVICE" >> /etc/sysconfig/irda + echo "DONGLE=$DONGLE" >> /etc/sysconfig/irda + echo "DISCOVERY=$DISCOVERY" >> /etc/sysconfig/irda + fi +fi +} |