summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir Lamouri <volkmar@gentoo.org>2009-04-14 00:45:27 +0000
committerMounir Lamouri <volkmar@gentoo.org>2009-04-14 00:45:27 +0000
commit4263c14d5bb61ed0b1b1485ef87a9578bf3b4c9d (patch)
tree863ef49c8bbf0d7e76f4fe7118da4540ffd4dfb4 /net-libs
parentp.mask guarddog, temperature-app, ivcall, arno-iptables-firewall, ctmkit from... (diff)
downloadgentoo-2-4263c14d5bb61ed0b1b1485ef87a9578bf3b4c9d.tar.gz
gentoo-2-4263c14d5bb61ed0b1b1485ef87a9578bf3b4c9d.tar.bz2
gentoo-2-4263c14d5bb61ed0b1b1485ef87a9578bf3b4c9d.zip
Initial commit. See bug 257835
(Portage version: 2.1.6.7/cvs/Linux ppc)
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/libsrtp/ChangeLog10
-rw-r--r--net-libs/libsrtp/libsrtp-1.4.4.ebuild73
-rw-r--r--net-libs/libsrtp/metadata.xml16
3 files changed, 99 insertions, 0 deletions
diff --git a/net-libs/libsrtp/ChangeLog b/net-libs/libsrtp/ChangeLog
new file mode 100644
index 000000000000..dcf984c9982a
--- /dev/null
+++ b/net-libs/libsrtp/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-libs/libsrtp
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libsrtp/ChangeLog,v 1.1 2009/04/14 00:45:27 volkmar Exp $
+
+*libsrtp-1.4.4 (14 Apr 2009)
+
+ 14 Apr 2009; Mounir Lamouri <volkmar@gentoo.org> +metadata.xml,
+ +libsrtp-1.4.4.ebuild:
+ Initial commit. See bug 257835
+
diff --git a/net-libs/libsrtp/libsrtp-1.4.4.ebuild b/net-libs/libsrtp/libsrtp-1.4.4.ebuild
new file mode 100644
index 000000000000..58382a2e820c
--- /dev/null
+++ b/net-libs/libsrtp/libsrtp-1.4.4.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libsrtp/libsrtp-1.4.4.ebuild,v 1.1 2009/04/14 00:45:27 volkmar Exp $
+
+EAPI="2"
+
+MY_PN="srtp"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)"
+HOMEPAGE="http://srtp.sourceforge.net/srtp.html"
+SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+IUSE="aesicm console debug doc syslog"
+
+# NOTES:
+# kernel_linux USE flag has been disabled because compilation fails with
+# only generating a static lib, no dynamic lib
+
+S=${WORKDIR}/${MY_PN}
+
+src_configure() {
+ # stdout: default error output for messages in debug
+ # kernel-linux: breaks the build
+ # gdoi: disabled by upstream and breaks the build
+ econf \
+ --enable-stdout \
+ --disable-kernel-linux \
+ --disable-gdoi \
+ $(use_enable aesicm generic-aesicm) \
+ $(use_enable console) \
+ $(use_enable debug) \
+ $(use_enable syslog)
+}
+
+src_compile() {
+ # target all is building test
+ emake ${PN}.a || die "emake failed"
+}
+
+src_test() {
+ # getopt returns an int, not a char
+ sed -i -e "s/char q/int q/" \
+ test/rdbx_driver.c test/srtp_driver.c test/dtls_srtp_driver.c \
+ || die "fixing getopt errors failed"
+
+ # test/rtpw_test.sh is assuming . is in $PATH
+ sed -i -e "s:\$RTPW :./\$RTPW :" test/rtpw_test.sh \
+ || die "patching test/rtpw_test.sh failed"
+
+ # test/rtpw.c is using /usr/share/dict/words assuming it exists
+ # using test/rtpw.c guaratees the file exists in any case
+ sed -i -e "s:/usr/share/dict/words:rtpw.c:" test/rtpw.c \
+ || die "patching test/rtpw.c failed"
+
+ emake test || die "building test failed"
+ emake -j1 runtest || die "tests failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc CHANGES README TODO || die "dodoc failed"
+
+ if use doc; then
+ # libsrtp.pdf can also be generated with doxygen
+ # but it would be a waste of time as an up-to-date version is built
+ dodoc doc/*.txt doc/${PN}.pdf || die "dodoc failed"
+ fi
+}
diff --git a/net-libs/libsrtp/metadata.xml b/net-libs/libsrtp/metadata.xml
new file mode 100644
index 000000000000..ec51d1843cd9
--- /dev/null
+++ b/net-libs/libsrtp/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>voip</herd>
+ <maintainer>
+ <email>volkmar@gentoo.org</email>
+ <name>Mounir Lamouri</name>
+ </maintainer>
+ <use>
+ <flag name='aesicm'>Use AES ICM cryptographic algorithm</flag>
+ <flag name='console'>
+ Use /dev/console instead of stdout for error messages
+ </flag>
+ <flag name='syslog'>Use syslog for error messages</flag>
+ </use>
+</pkgmetadata>