# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/util-linux/util-linux.conf # Copyright (C) 2004 - 2023 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- runmeson=0 if [ $prefix_auto = 1 ]; then prefix= set_confopt var_append extraconfopt ' ' '--datarootdir=$datadir' var_append makeopt ' ' "usrbin_execdir=/usr/bin usrsbin_execdir=/usr/sbin usrlib_execdir=/usr/${libdir##*/}" var_append makeinstopt ' ' "usrbin_execdir=/usr/bin usrsbin_execdir=/usr/sbin usrlib_execdir=/usr/${libdir##*/}" fi atstage native || var_append extraconfopt ' ' '--without-python' # partx is nice to have (we ship it since a long time) and kill is usually # supplied by other packages (procps, busybox, embutils, etc.) var_append extraconfopt ' ' '--enable-partx --disable-kill' # cross build tweak, I started patching it but stopped at the 20th file if atstage cross && [ $SDECFG_LIBC = 'uclibc' ]; then var_append GCC_WRAPPER_APPEND ' ' '--include locale.h' fi var_append GCC_WRAPPER_APPEND ' ' -std=gnu99 pkginstalled python || var_append extraconfopt ' ' '--without-python' pkginstalled ncurses || var_append extraconfopt ' ' '--without-ncurses' pkginstalled shadow && var_append extraconfopt ' ' '--disable-su --disable-login --disable-nologin --disable-chfn-chsh' pkginstalled sysvinit && var_append extraconfopt ' ' '--disable-sulogin --disable-last --disable-mesg --disable-lastb' #pkginstalled cryptsetup && var_append extraconfopt ' ' '--with-cryptsetup' pkginstalled eject && var_append extraconfopt ' ' '--disable-eject'