From 991d661710385c2b76a68bc2068de6ded75a9c79 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 20 May 2013 00:28:20 +0200 Subject: [PATCH] new package: add package 'e2fsprogs-initramfs' Signed-off-by: Stephan Raue --- packages/initramfs/meta | 2 +- .../sysutils/e2fsprogs-initramfs/install | 38 +++++++++++++++++++ .../sysutils/e2fsprogs-initramfs/meta | 36 ++++++++++++++++++ 3 files changed, 75 insertions(+), 1 deletion(-) create mode 100755 packages/initramfs/sysutils/e2fsprogs-initramfs/install create mode 100644 packages/initramfs/sysutils/e2fsprogs-initramfs/meta diff --git a/packages/initramfs/meta b/packages/initramfs/meta index d0432d1b4b..024c0512eb 100644 --- a/packages/initramfs/meta +++ b/packages/initramfs/meta @@ -25,7 +25,7 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://www.openelec.tv" PKG_URL="" -PKG_DEPENDS="eglibc-initramfs busybox-initramfs linux-initramfs plymouth-lite diskdev_cmds-initramfs dosfstools-initramfs" +PKG_DEPENDS="eglibc-initramfs busybox-initramfs linux-initramfs plymouth-lite diskdev_cmds-initramfs dosfstools-initramfs e2fsprogs-initramfs" PKG_BUILD_DEPENDS="toolchain eglibc-initramfs busybox-initramfs" PKG_PRIORITY="optional" PKG_SECTION="initramfs" diff --git a/packages/initramfs/sysutils/e2fsprogs-initramfs/install b/packages/initramfs/sysutils/e2fsprogs-initramfs/install new file mode 100755 index 0000000000..e9bd21ea76 --- /dev/null +++ b/packages/initramfs/sysutils/e2fsprogs-initramfs/install @@ -0,0 +1,38 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +E2FSPROGS_DIR="$BUILD/e2fsprogs-*" + +mkdir -p $INSTALL/sbin + cp $E2FSPROGS_DIR/e2fsck/e2fsck $INSTALL/sbin + ln -sf e2fsck $INSTALL/sbin/fsck.ext2 + ln -sf e2fsck $INSTALL/sbin/fsck.ext3 + ln -sf e2fsck $INSTALL/sbin/fsck.ext4 + ln -sf e2fsck $INSTALL/sbin/fsck.ext4dev + cp $E2FSPROGS_DIR/misc/mke2fs $INSTALL/sbin + ln -sf mke2fs $INSTALL/sbin/mkfs.ext2 + ln -sf mke2fs $INSTALL/sbin/mkfs.ext3 + ln -sf mke2fs $INSTALL/sbin/mkfs.ext4 + ln -sf mke2fs $INSTALL/sbin/mkfs.ext4dev + cp $E2FSPROGS_DIR/misc/fsck $INSTALL/sbin diff --git a/packages/initramfs/sysutils/e2fsprogs-initramfs/meta b/packages/initramfs/sysutils/e2fsprogs-initramfs/meta new file mode 100644 index 0000000000..0ddc45f9e1 --- /dev/null +++ b/packages/initramfs/sysutils/e2fsprogs-initramfs/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="e2fsprogs-initramfs" +PKG_VERSION="" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://e2fsprogs.sourceforge.net/" +PKG_URL="" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain e2fsprogs" +PKG_PRIORITY="optional" +PKG_SECTION="tools" +PKG_SHORTDESC="e2fsprogs: Utilities for use with the ext2 filesystem" +PKG_LONGDESC="The filesystem utilities for the EXT2 filesystem, including e2fsck, mke2fs, dumpe2fs, fsck, and others." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no"