mirror of
https://github.com/rxrbln/t2sde.git
synced 2025-05-08 20:21:59 +08:00
38 lines
1.6 KiB
Plaintext
38 lines
1.6 KiB
Plaintext
# --- T2-COPYRIGHT-BEGIN ---
|
|
# t2/package/*/util-linux/util-linux.conf
|
|
# Copyright (C) 2004 - 2025 The T2 SDE Project
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# --- T2-COPYRIGHT-END ---
|
|
|
|
runmeson=0
|
|
|
|
if [ $prefix_auto = 1 ]; then
|
|
prefix=
|
|
set_confopt
|
|
var_append confopt ' ' '--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
|
|
|
|
var_append confopt ' ' "--runstatedir=$localstatedir/run"
|
|
atstage native || var_append confopt ' ' '--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 confopt ' ' '--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 confopt ' ' '--without-python'
|
|
pkginstalled ncurses || var_append confopt ' ' '--without-ncurses'
|
|
pkginstalled shadow && var_append confopt ' ' '--disable-su --disable-login --disable-nologin --disable-chfn-chsh'
|
|
pkginstalled sysvinit && var_append confopt ' ' '--disable-sulogin --disable-last --disable-mesg --disable-lastb'
|
|
pkginstalled sqlite || var_append confopt ' ' '--disable-liblastlog2'
|
|
#pkginstalled cryptsetup && var_append confopt ' ' '--with-cryptsetup'
|
|
pkginstalled eject && var_append confopt ' ' '--disable-eject'
|