2013-08-01 16:20:16 +02:00
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
2013-12-21 21:51:48 +01:00
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
2013-08-01 16:20:16 +02:00
#
2013-12-21 21:51:48 +01:00
# OpenELEC is free software: you can redistribute it and/or modify
2013-08-01 16:20:16 +02:00
# it under the terms of the GNU General Public License as published by
2013-12-21 21:51:48 +01:00
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
2013-08-01 16:20:16 +02:00
#
2013-12-21 21:51:48 +01:00
# OpenELEC is distributed in the hope that it will be useful,
2013-08-01 16:20:16 +02:00
# but WITHOUT ANY WARRANTY; without even the implied warranty of
2013-12-21 21:51:48 +01:00
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2013-08-01 16:20:16 +02:00
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
2013-12-21 21:51:48 +01:00
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
2013-08-01 16:20:16 +02:00
################################################################################
PKG_NAME = "util-linux"
2013-11-12 21:38:50 +01:00
PKG_VERSION = "2.24"
2013-08-01 16:20:16 +02:00
PKG_REV = "1"
PKG_ARCH = "any"
PKG_LICENSE = "GPL"
2013-11-12 21:38:50 +01:00
PKG_URL = " http://www.kernel.org/pub/linux/utils/util-linux/v2.24/ $PKG_NAME - $PKG_VERSION .tar.xz "
2013-08-01 16:20:16 +02:00
PKG_DEPENDS = ""
PKG_BUILD_DEPENDS_TARGET = "toolchain"
PKG_PRIORITY = "optional"
PKG_SECTION = "system"
PKG_SHORTDESC = "util-linux: Miscellaneous system utilities for Linux"
PKG_LONGDESC = "The util-linux package contains a large variety of low-level system utilities that are necessary for a Linux system to function. Among many features, Util-linux contains the fdisk configuration tool and the login program."
PKG_IS_ADDON = "no"
PKG_AUTORECONF = "yes"
PKG_CONFIGURE_OPTS_TARGET = " --disable-gtk-doc \
--disable-nls \
--disable-rpath \
--enable-tls \
--enable-libuuid \
--enable-libblkid \
--enable-libmount \
--disable-deprecated-mount \
--disable-mount \
--enable-fsck \
--disable-partx \
--enable-uuidd \
--disable-mountpoint \
--disable-fallocate \
--disable-unshare \
--disable-arch \
--disable-ddate \
--disable-eject \
--disable-agetty \
--disable-cramfs \
--disable-switch-root \
--disable-pivot-root \
--disable-elvtune \
--disable-kill \
--disable-last \
--disable-utmpdump \
--disable-line \
--disable-mesg \
--disable-raw \
--disable-rename \
--disable-reset \
--disable-vipw \
--disable-newgrp \
--disable-chfn-chsh \
--enable-chsh-only-listed \
--disable-login \
--disable-login-chown-vcs \
--disable-login-stat-mail \
--disable-sulogin \
--disable-su \
--disable-runuser \
--disable-ul \
--disable-more \
--disable-pg \
--disable-setterm \
--disable-schedutils \
--disable-wall \
--disable-write \
--disable-chkdupexe \
--disable-socket-activation \
--disable-pg-bell \
--disable-require-password \
--disable-use-tty-group \
--disable-makeinstall-chown \
--disable-makeinstall-setuid \
--with-gnu-ld \
--without-selinux \
--without-audit \
--without-udev \
--without-ncurses \
--without-slang \
--without-utempter \
--without-systemdsystemunitdir"
2013-09-16 22:14:55 +03:00
PKG_CONFIGURE_OPTS_HOST = " $PKG_CONFIGURE_OPTS_TARGET "
2013-08-01 16:20:16 +02:00
p o s t _ m a k e i n s t a l l _ t a r g e t ( ) {
rm -rf $INSTALL /usr/bin
rm -rf $INSTALL /usr/sbin
rm -rf $INSTALL /usr/share
mkdir -p $INSTALL /usr/sbin
cp .libs/blkid $INSTALL /usr/sbin
cp .libs/fsck $INSTALL /usr/sbin
if [ " $SWAP_SUPPORT " = "yes" ] ; then
mkdir -p $INSTALL /usr/sbin
cp .libs/swapon $INSTALL /usr/sbin
cp .libs/swapoff $INSTALL /usr/sbin
2013-08-16 15:21:59 +02:00
mkdir -p $INSTALL /usr/lib/openelec
cp -PR $PKG_DIR /scripts/mount-swap $INSTALL /usr/lib/openelec
2013-08-01 16:20:16 +02:00
mkdir -p $INSTALL /etc
cat $PKG_DIR /config/swap.conf | sed -e " s,@SWAPFILESIZE@, $SWAPFILESIZE ,g " > $INSTALL /etc/swap.conf
fi
}
2013-08-16 15:21:59 +02:00
p o s t _ i n s t a l l ( ) {
if [ " $SWAP_SUPPORT " = "yes" ] ; then
enable_service swap.service
fi
}