PATCH_LIST=" 0001-agetty-support-silent-re-open-of-the-tty.patch 0002-agetty-release-the-terminal-for-5s-upon-a-SIGQUIT.patch " FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH="http://www.kernel.org/pub/linux/utils/util-linux/v${PKGVER%.[1-9]}/util-linux-$PKGVER.tar.xz" MAKEDEPENDS=("ncurses-*:::*.so *.so.* *.h" "readline-*:::*.so *.so.* *.h") function do_config { # Note: the toolchain needs to be updated to more recent kernels # than 2.6.32, because : # - setns isn't known # - securebits.h isn't available and prevents setpriv form being built export ac_cv_func_inotify_init1="no" # Use the code below to manually implement setns #if [ "$FLXARCH" == "x86_64" ]; then # export ac_cv_func_setns="no" # export ul_cv_syscall_setns="308" #elif [ "$FLXARCH" == "i386" ]; then # export ac_cv_func_setns="no" # export ul_cv_syscall_setns="346" #elif [ -n "$FLXARCH" -a -z "${FLXARCH##arm*}" ]; then # export ac_cv_func_setns="no" # export ul_cv_syscall_setns="(__NR_SYSCALL_BASE+375)" #fi PKG_CONFIG=/bin/false \ CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL" \ ac_cv_prog_ac_ct_NCURSES6_CONFIG=/bin/false \ NCURSES_LIBS=-lncurses \ ./configure \ --host=$FLXTARG --build=$FLXHOST --disable-nls \ --disable-widechar --with-ncurses --disable-su \ --enable-unshare --enable-nsenter --disable-setpriv \ --without-user --without-udev --without-libintl-prefix \ --without-ncursesw --without-systemd --without-user \ --with-ncurses --without-tinfo --without-econf \ --disable-cramfs --disable-bfs --disable-minix --disable-utmpdump \ --disable-bash-completion --disable-pylibmount \ --without-python --oldincludedir=$ROOTDIR/usr/include/ } function do_compile_only { # it is really necessary to specify GCC options again, otherwise they will # only be used within subdirectories $FLXPMAKE \ OPT="$GCC_OPT_SMALL $GCC_ARCH_SMALL $GCC_CPU_SMALL" \ MAN_DIR=/usr/man INFO_DIR=/usr/info } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR MAN_DIR=/usr/man INFO_DIR=/usr/info # we don't move etc/fdprm in 0.1.8 because earlier packages had it there # mkdir -p $EXAMPLEDIR/$PKGRADIX/$PKGVER # mv $ROOTDIR/etc $EXAMPLEDIR/$PKGRADIX/$PKGVER set_default_perm $ROOTDIR }