From 5942809d6c59890f45041ba34138f5dede98924c Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 23 Dec 2013 22:14:41 +0100 Subject: [PATCH] nettle: convert to new package format Signed-off-by: Stephan Raue --- packages/security/nettle/build | 38 ------------------- packages/security/nettle/install | 27 ------------- packages/security/nettle/{meta => package.mk} | 15 +++++++- 3 files changed, 13 insertions(+), 67 deletions(-) delete mode 100755 packages/security/nettle/build delete mode 100755 packages/security/nettle/install rename packages/security/nettle/{meta => package.mk} (88%) diff --git a/packages/security/nettle/build b/packages/security/nettle/build deleted file mode 100755 index d71af72613..0000000000 --- a/packages/security/nettle/build +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) -# -# OpenELEC 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 of the License, or -# (at your option) any later version. -# -# OpenELEC 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. If not, see . -################################################################################ - -. config/options $1 - -# dont build parallel - MAKEFLAGS=-j1 - -cd $PKG_BUILD -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --enable-static \ - --enable-shared \ - --disable-openssl \ - --with-gnu-ld - -make -$MAKEINSTALL diff --git a/packages/security/nettle/install b/packages/security/nettle/install deleted file mode 100755 index 0feae9c414..0000000000 --- a/packages/security/nettle/install +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) -# -# OpenELEC 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 of the License, or -# (at your option) any later version. -# -# OpenELEC 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. If not, see . -################################################################################ - -. 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/package.mk similarity index 88% rename from packages/security/nettle/meta rename to packages/security/nettle/package.mk index 9d8082fabe..3d81578fd5 100644 --- a/packages/security/nettle/meta +++ b/packages/security/nettle/package.mk @@ -24,11 +24,22 @@ 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_BUILD_DEPENDS_TARGET="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_IS_ADDON="no" PKG_AUTORECONF="yes" + +PKG_CONFIGURE_OPTS_TARGET="--enable-static --disable-openssl" + +pre_configure_target() { +# dont build parallel + MAKEFLAGS=-j1 +} + +post_makeinstall_target() { + rm -rf $INSTALL/usr/bin +} \ No newline at end of file