summaryrefslogtreecommitdiff
path: root/recipes/bitlbee/bitlbee_1.0.4.bb
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/bitlbee/bitlbee_1.0.4.bb
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/bitlbee/bitlbee_1.0.4.bb')
-rw-r--r--recipes/bitlbee/bitlbee_1.0.4.bb59
1 files changed, 59 insertions, 0 deletions
diff --git a/recipes/bitlbee/bitlbee_1.0.4.bb b/recipes/bitlbee/bitlbee_1.0.4.bb
new file mode 100644
index 0000000000..41f7b1c97f
--- /dev/null
+++ b/recipes/bitlbee/bitlbee_1.0.4.bb
@@ -0,0 +1,59 @@
+DESCRIPTION = "Bitlbee is an IRC to IM gateway that support multiple IM protocols."
+HOMEPAGE = "http://www.bitlbee.org/"
+SECTION = "console/network"
+LICENSE = "GPLv2"
+DEPENDS = "glib-2.0 gnutls"
+PR = "r0"
+
+SRC_URI = "http://get.bitlbee.org/src/${P}.tar.gz \
+ file://configure.patch;patch=1 \
+ file://init-script"
+
+S = "${WORKDIR}/bitlbee-${PV}"
+
+EXTRA_OECONF = "--prefix=/usr \
+ --datadir=/usr/share/bitlbee \
+ --etcdir=/etc/bitlbee \
+ --oscar=0 \
+ --cpu=${TARGET_ARCH}"
+
+do_configure () {
+ # NOTE: bitlbee's configure script is not an autotool creation,
+ # so we do not use the default autotools_do_configure.
+ ./configure ${EXTRA_OECONF} || die "./configure failed"
+}
+
+do_compile () {
+ make CC="${CC}" LD="${LD}" || die "make failed"
+
+ # make bitlbeed forking server
+ cd ${S}/utils
+ ${CC} bitlbeed.c -o bitlbeed || die "bitlbeed failed to compile"
+}
+
+do_install () {
+ # install bitlbee
+ install -d ${D}${localstatedir}/lib/bitlbee
+ make install DESTDIR=${D} || die "install failed"
+ make install-etc DESTDIR=${D} || die "install failed"
+
+ # copy bitlbee forking server
+ install ${S}/utils/bitlbeed ${D}${sbindir}/bitlbeed
+
+ # copy init script
+ install -d ${D}${sysconfdir}/init.d
+ install ${WORKDIR}/init-script ${D}${sysconfdir}/init.d/bitlbee
+ sed -i -e "s:BITLBEED_EXEC:${sbindir}/bitlbeed:" ${D}${sysconfdir}/init.d/bitlbee
+ sed -i -e "s:BITLBEED_OPTS::" ${D}${sysconfdir}/init.d/bitlbee
+
+ # copy bitlbee utils
+ install -d ${D}${datadir}/bitlbee
+ cp ${S}/utils/* ${D}${datadir}/bitlbee/
+ rm ${D}${datadir}/bitlbee/bitlbeed*
+}
+
+pkg_postinst () {
+ chown nobody:nogroup ${localstatedir}/lib/bitlbee
+ chmod 700 ${localstatedir}/lib/bitlbee
+}
+