From a57afd04c8e92072dd973b09cd520eed59aa1070 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 17 Dec 2011 02:25:58 +0100 Subject: [PATCH] new package: add package 'module-init-tools' Signed-off-by: Stephan Raue --- packages/sysutils/module-init-tools/build | 35 +++++++++++++++++++++ packages/sysutils/module-init-tools/meta | 37 +++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100755 packages/sysutils/module-init-tools/build create mode 100644 packages/sysutils/module-init-tools/meta diff --git a/packages/sysutils/module-init-tools/build b/packages/sysutils/module-init-tools/build new file mode 100755 index 0000000000..0df68aec0f --- /dev/null +++ b/packages/sysutils/module-init-tools/build @@ -0,0 +1,35 @@ +#!/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 + +setup_toolchain host + +cd $PKG_BUILD + +./configure --host=$HOST_NAME \ + --build=$HOST_NAME \ + --prefix=$ROOT/$TOOLCHAIN \ + +make depmod + +cp build/depmod $ROOT/$TOOLCHAIN/bin diff --git a/packages/sysutils/module-init-tools/meta b/packages/sysutils/module-init-tools/meta new file mode 100644 index 0000000000..78a1a72ce1 --- /dev/null +++ b/packages/sysutils/module-init-tools/meta @@ -0,0 +1,37 @@ +################################################################################ +# 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="module-init-tools" +PKG_VERSION="3.16" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="ftp://ftp.kernel.org/pub/linux/utils/kernel/module-init-tools/" +#PKG_URL="http://kernel.org/pub/linux/utils/kernel/module-init-tools/$PKG_NAME-$PKG_VERSION.tar.xz" +PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="system" +PKG_SHORTDESC="module-init-tools: The programs needed to load and unload Linux Kernel Modules" +PKG_LONGDESC="The Linux kernel allows new kernel pieces to be loaded and old ones to be unloaded while the kernel continues to run. These loadable pieces are called modules, and can include device drivers and filesystems among other things. This package includes program to load and unload programs both automatically and manually." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no"