summaryrefslogtreecommitdiff
path: root/recipes/siproxd/siproxd.inc
diff options
context:
space:
mode:
authorRoman I Khimov <khimov@altell.ru>2009-03-23 20:58:14 +0300
committerRoman I Khimov <khimov@altell.ru>2009-04-22 23:53:18 +0400
commitd070641ef249d0b9a335617685a3218e0bfe63b3 (patch)
tree42d1a860b42563786932ad776d45dbb52a03b346 /recipes/siproxd/siproxd.inc
parent934ef803ea8eb626888e88a9aa6d900f2edb3e7c (diff)
siproxd: new recipe
New recipe for siproxd 0.7.1 Acked-by: Koen Kooi <koen@openembedded.org>
Diffstat (limited to 'recipes/siproxd/siproxd.inc')
-rw-r--r--recipes/siproxd/siproxd.inc40
1 files changed, 40 insertions, 0 deletions
diff --git a/recipes/siproxd/siproxd.inc b/recipes/siproxd/siproxd.inc
new file mode 100644
index 0000000000..1e7f3aea7b
--- /dev/null
+++ b/recipes/siproxd/siproxd.inc
@@ -0,0 +1,40 @@
+DESCRIPTION = "SIP proxy/masquerading daemon"
+SECTION = "net"
+DEPENDS = "libosip2"
+LICENSE = "GPL"
+
+SRC_URI = " \
+ ${SOURCEFORGE_MIRROR}/siproxd/siproxd-${PV}.tar.gz \
+ file://siproxd.init \
+ "
+
+inherit autotools update-rc.d
+
+INITSCRIPT_NAME = "siproxd"
+
+EXTRA_OECONF = "--disable-doc"
+
+do_configure() {
+ gnu-configize
+ aclocal
+ libtoolize --copy --force
+ automake --add-missing
+ autoreconf
+ oe_runconf
+}
+
+do_install_append() {
+ cp ${D}/${sysconfdir}/siproxd.conf.example ${D}/${sysconfdir}/siproxd.conf
+ sed -ri "s,^#?(pid_file)\ *=\ *.*$,\1 = /var/run/siproxd.pid," ${D}/${sysconfdir}/siproxd.conf
+ sed -ri "s,^#?(plugindir)\ *=\ *.*$,\1 = ${libdir}/siproxd/," ${D}/${sysconfdir}/siproxd.conf
+ install -d ${D}/${sysconfdir}/init.d
+ install -m 755 ${WORKDIR}/siproxd.init ${D}/${sysconfdir}/init.d/siproxd
+}
+
+CONFFILES_${PN} = " \
+ ${sysconfdir}/siproxd.conf \
+ ${sysconfdir}/siproxd_passwd.cfg \
+ "
+
+FILES_${PN} = "${sysconfdir} ${sbindir} ${libdir}/siproxd/*.so.*"
+FILES_${PN}-dev += "${libdir}/siproxd/*.so ${libdir}/siproxd/*.a ${libdir}/siproxd/*.la"