From 4fe6a5f7cc69ac3501361a458931bb8c768e80c3 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Fri, 29 Apr 2011 13:38:23 +0200 Subject: [PATCH] new package: add package 'redis' Signed-off-by: Stephan Raue --- packages/sysutils/redis/build | 30 +++++++++++++++++++++ packages/sysutils/redis/init.d/58_redis | 30 +++++++++++++++++++++ packages/sysutils/redis/install | 33 +++++++++++++++++++++++ packages/sysutils/redis/meta | 36 +++++++++++++++++++++++++ 4 files changed, 129 insertions(+) create mode 100755 packages/sysutils/redis/build create mode 100644 packages/sysutils/redis/init.d/58_redis create mode 100755 packages/sysutils/redis/install create mode 100644 packages/sysutils/redis/meta diff --git a/packages/sysutils/redis/build b/packages/sysutils/redis/build new file mode 100755 index 0000000000..ce39c77de2 --- /dev/null +++ b/packages/sysutils/redis/build @@ -0,0 +1,30 @@ +#!/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 + +make + +$STRIP src/redis-server +$STRIP src/redis-cli diff --git a/packages/sysutils/redis/init.d/58_redis b/packages/sysutils/redis/init.d/58_redis new file mode 100644 index 0000000000..2f4e8de0a4 --- /dev/null +++ b/packages/sysutils/redis/init.d/58_redis @@ -0,0 +1,30 @@ +################################################################################ +# Copyright (C) 2009-2010 OpenELEC.tv +# http://www.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 +################################################################################ + +# Starting Redis Server +# +# runlevels: openelec, textmode + +( + wait_for_network + + progress "starting Redis server" + /usr/sbin/redis-server /etc/redis.conf +)& diff --git a/packages/sysutils/redis/install b/packages/sysutils/redis/install new file mode 100755 index 0000000000..97203fe750 --- /dev/null +++ b/packages/sysutils/redis/install @@ -0,0 +1,33 @@ +#!/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/etc + cp -P $PKG_BUILD/redis.conf $INSTALL/etc + +mkdir -p $INSTALL/usr/bin + cp -P $PKG_BUILD/src/redis-cli $INSTALL/usr/bin + +mkdir -p $INSTALL/usr/sbin + cp -P $PKG_BUILD/src/redis-server $INSTALL/usr/sbin + diff --git a/packages/sysutils/redis/meta b/packages/sysutils/redis/meta new file mode 100644 index 0000000000..e31d42bdd4 --- /dev/null +++ b/packages/sysutils/redis/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="redis" +PKG_VERSION="2.2.4" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="OpenSource" +PKG_SITE="http://www.redis.io" +PKG_URL="http://redis.googlecode.com/files/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="sysutils" +PKG_SHORTDESC="redis: an open source, advanced key-value store" +PKG_LONGDESC="Redis is an open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no"