diff --git a/net-libs/otr/libotr-4.1.0.recipe b/net-libs/otr/libotr-4.1.0.recipe new file mode 100644 index 000000000..f1143bb63 --- /dev/null +++ b/net-libs/otr/libotr-4.1.0.recipe @@ -0,0 +1,81 @@ +SUMMARY="The Off-the-Record Messaging library" +DESCRIPTION="Off-the-Record (OTR) Messaging allows you to have private \ +conversations over instant messaging by providing: + +* Encryption +No one else can read your instant messages. +* Authentication +You are assured the correspondent is who you think it is. +* Deniability +The messages you send do not have digital signatures that are checkable by a \ +third party. Anyone can forge messages after a conversation to make them look \ +like they came from you. However, during a conversation, your correspondent is \ +assured the messages he sees are authentic and unmodified. +* Perfect forward secrecy +If you lose control of your private keys, no previous conversation is \ +compromised." +HOMEPAGE="https://otr.cypherpunks.ca/" +COPYRIGHT="2004-2015, The OTR Development Team" +LICENSE="GNU LGPL v2" +SOURCE_URI="https://otr.cypherpunks.ca/libotr-$portVersion.tar.gz" +CHECKSUM_SHA256="4fdb891940ec89d300190a98f69a9138248dcb8c8d337633fb981b8d0a9cd930" +REVISION="1" +ARCHITECTURES="x86 ?x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 x86" + +PROVIDES=" + libotr$secondaryArchSuffix = $portVersion + lib:libotr$secondaryArchSuffix + cmd:otr_mackey$secondaryArchSuffix + cmd:otr_modify$secondaryArchSuffix + cmd:otr_parse$secondaryArchSuffix + cmd:otr_readforge$secondaryArchSuffix + cmd:otr_remac$secondaryArchSuffix + cmd:otr_sesskeys$secondaryArchSuffix + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libgcrypt$secondaryArchSuffix + lib:libgpg_error$secondaryArchSuffix + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libgcrypt$secondaryArchSuffix + devel:libgpg_error$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + runConfigure ./configure + sed -i 's/-fstack-protector-all//g' src/Makefile + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs libotr + fixPkgconfig + + # devel package + packageEntries devel \ + $developDir +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + libotr${secondaryArchSuffix}_devel = $portVersion + devel:libotr$secondaryArchSuffix + " +REQUIRES_devel=" + libotr$secondaryArchSuffix == $portVersion base + "