PATCH_LIST="coreutils-disable-gets-test.diff coreutils-strcmp-safe.diff coreutils-unlinkat-warning.diff" FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH="http://ftp.gnu.org/gnu/coreutils/coreutils-8.7.tar.gz" MAKEDEPENDS= function do_config { # the ACL patch needs to regenerate the following file which does not always # work. It's enough to touch the destination to avoid a complete re-make. touch doc/coreutils.info # If the system does not have a valid /usr/include/path.h with such PATHs, it # is preferable to redefine them. Otherwise, "su" will have random useless # things. CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ ac_cv_func_lutimes=no \ ac_cv_func_lchmod=no \ am_cv_func_iconv=no \ ac_fsusage_space=yes \ fu_cv_sys_stat_statvfs=yes \ CFLAGS="-DLEAP_SECONDS_POSSIBLE=0 -D_PATH_DEFPATH_ROOT='\"/sbin:/usr/sbin:/bin:/usr/bin\"'" \ ./configure --prefix=/usr --bindir=/bin --sbindir=/sbin --sysconfdir=/etc \ --disable-assert --disable-acl --disable-xattr --enable-largefile --includedir=$FLXROOTDIR/usr/include/ --host=$FLXTARG --build=$FLXHOST } function do_compile_only { $FLXPMAKE $FLXPMAKE -C src hostname } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR rmdir $ROOTDIR/usr/lib >/dev/null 2>&1 mkdir -p $ROOTDIR/usr/bin && ln -s ../../bin/env $ROOTDIR/usr/bin/env set_default_perm $ROOTDIR cp src/hostname $ROOTDIR/bin/hostname chown root:adm $ROOTDIR/bin/hostname chmod 0511 $ROOTDIR/bin/hostname cp src/su $ROOTDIR/bin/su chown root:adm $ROOTDIR/bin/su chmod 4511 $ROOTDIR/bin/su } function do_clean { make distclean rm -f src/version.[ch]t ( do_delpack ) return 0 }