From 137353cf43fbf82409e20fb8280e014f832da051 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 8 Nov 2011 12:37:49 +0100 Subject: [PATCH] new package: add package 'nettle' Signed-off-by: Stephan Raue --- packages/security/nettle/build | 37 ++++++++++++++++++++++++++++++++ packages/security/nettle/install | 29 +++++++++++++++++++++++++ packages/security/nettle/meta | 36 +++++++++++++++++++++++++++++++ 3 files changed, 102 insertions(+) create mode 100755 packages/security/nettle/build create mode 100755 packages/security/nettle/install create mode 100644 packages/security/nettle/meta diff --git a/packages/security/nettle/build b/packages/security/nettle/build new file mode 100755 index 0000000000..bb60b56693 --- /dev/null +++ b/packages/security/nettle/build @@ -0,0 +1,37 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +cd $PKG_BUILD +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-static \ + --enable-shared \ + --disable-openssl \ + --with-gnu-ld + +make +$MAKEINSTALL diff --git a/packages/security/nettle/install b/packages/security/nettle/install new file mode 100755 index 0000000000..1f374394e5 --- /dev/null +++ b/packages/security/nettle/install @@ -0,0 +1,29 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +mkdir -p $INSTALL/usr/lib + cp -P $PKG_BUILD/libnettle.so $INSTALL/usr/lib + ln -sf libnettle.so $INSTALL/usr/lib/`basename $PKG_BUILD/.lib/libnettle.so.[0-9]` + cp -P $PKG_BUILD/libhogweed.so $INSTALL/usr/lib + ln -sf libhogweed.so $INSTALL/usr/lib/`basename $PKG_BUILD/.lib/libhogweed.so.[0-9]` diff --git a/packages/security/nettle/meta b/packages/security/nettle/meta new file mode 100644 index 0000000000..aaa9ce2775 --- /dev/null +++ b/packages/security/nettle/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="nettle" +PKG_VERSION="2.4" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.lysator.liu.se/~nisse/nettle" +PKG_URL="http://www.lysator.liu.se/~nisse/archive/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS="gmp" +PKG_BUILD_DEPENDS="toolchain gmp" +PKG_PRIORITY="optional" +PKG_SECTION="security" +PKG_SHORTDESC="nettle: a cryptographic library" +PKG_LONGDESC="Nettle is a cryptographic library that is designed to fit easily in more or less any context: In crypto toolkits for object-oriented languages (C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space. In most contexts, you need more than the basic cryptographic algorithms, you also need some way to keep track of available algorithms, their properties and variants. You often have some algorithm selection process, often dictated by a protocol you want to implement." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="yes"