PATCH_LIST=" 0001-agetty-support-silent-re-open-of-the-tty.patch 0002-agetty-release-the-terminal-for-5s-upon-a-SIGQUIT.patch 0003-setns-old-kernel.patch " FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH="http://ftp.kernel.org/pub/linux/utils/util-linux/v${PKGVER%.[1-9]}/util-linux-$PKGVER.tar.xz" MAKEDEPENDS=("ncurses-*:::*.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 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 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" \ ./configure \ --host=$FLXTARG --build=$FLXHOST --disable-nls \ --with-ncurses --disable-su \ --enable-unshare --enable-nsenter --disable-setpriv \ --without-user --without-udev --without-libintl-prefix \ --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 }