2013-08-01 16:20:16 +02:00
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
2016-01-02 17:29:56 +01:00
# Copyright (C) 2009-2016 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"
2016-11-16 00:13:28 +00:00
PKG_VERSION = "2.28.1"
2013-08-01 16:20:16 +02:00
PKG_REV = "1"
PKG_ARCH = "any"
PKG_LICENSE = "GPL"
2016-04-20 11:52:07 -07:00
PKG_URL = " http://www.kernel.org/pub/linux/utils/util-linux/v2.28/ $PKG_NAME - $PKG_VERSION .tar.xz "
2014-01-30 14:31:10 +01:00
PKG_DEPENDS_TARGET = "toolchain"
2014-06-07 00:23:49 +02:00
PKG_DEPENDS_INIT = "toolchain"
2013-08-01 16:20:16 +02:00
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"
2015-09-10 16:45:24 +02:00
UTILLINUX_CONFIG_DEFAULT = " --disable-gtk-doc \
--disable-nls \
--disable-rpath \
--enable-tls \
--disable-all-programs \
--enable-chsh-only-listed \
--enable-libmount-force-mountinfo \
--disable-bash-completion \
--disable-colors-default \
--disable-pylibmount \
--disable-pg-bell \
--disable-use-tty-group \
--disable-makeinstall-chown \
--disable-makeinstall-setuid \
--with-gnu-ld \
--without-selinux \
--without-audit \
--without-udev \
--without-ncurses \
--without-readline \
--without-slang \
--without-termcap \
--without-tinfo \
--without-utempter \
--without-util \
--without-libz \
--without-user \
--without-systemd \
--without-smack \
--without-python \
--without-systemdsystemunitdir"
PKG_CONFIGURE_OPTS_TARGET = " $UTILLINUX_CONFIG_DEFAULT \
2013-08-01 16:20:16 +02:00
--enable-libuuid \
--enable-libblkid \
--enable-libmount \
2014-12-15 02:44:35 +01:00
--enable-libsmartcols \
--enable-losetup \
2013-08-01 16:20:16 +02:00
--enable-fsck \
2015-09-10 16:45:24 +02:00
--enable-blkid"
2013-08-01 16:20:16 +02:00
2015-09-10 16:45:24 +02:00
i f [ "$SWAP_SUPPORT" = "yes" ] ; t h e n
PKG_CONFIGURE_OPTS_TARGET = " $PKG_CONFIGURE_OPTS_TARGET --enable-swapon "
f i
2014-07-26 14:56:35 +02:00
2015-09-12 10:47:33 +02:00
PKG_CONFIGURE_OPTS_HOST = " --enable-static \
--disable-shared \
$UTILLINUX_CONFIG_DEFAULT \
--enable-uuidgen \
--enable-libuuid"
2015-09-10 16:45:24 +02:00
2016-12-04 13:23:46 -08:00
PKG_CONFIGURE_OPTS_INIT = " $UTILLINUX_CONFIG_DEFAULT \
2015-09-10 16:45:24 +02:00
--enable-libblkid \
--enable-libmount \
--enable-fsck"
2015-09-12 10:47:33 +02:00
2015-09-10 16:45:24 +02:00
i f [ "$INITRAMFS_PARTED_SUPPORT" = "yes" ] ; t h e n
PKG_CONFIGURE_OPTS_INIT = " $PKG_CONFIGURE_OPTS_INIT --enable-mkfs --enable-libuuid "
f i
2013-09-16 22:14:55 +03:00
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 ( ) {
if [ " $SWAP_SUPPORT " = "yes" ] ; then
2016-03-11 22:31:41 +01:00
mkdir -p $INSTALL /usr/lib/libreelec
cp -PR $PKG_DIR /scripts/mount-swap $INSTALL /usr/lib/libreelec
2013-08-01 16:20:16 +02:00
mkdir -p $INSTALL /etc
2014-01-04 00:08:43 +01:00
cat $PKG_DIR /config/swap.conf | \
sed -e " s,@SWAPFILESIZE@, $SWAPFILESIZE ,g " \
-e " s,@SWAP_ENABLED_DEFAULT@, $SWAP_ENABLED_DEFAULT ,g " \
> $INSTALL /etc/swap.conf
2013-08-01 16:20:16 +02:00
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
}