PATCH_LIST=" 0001-lcd-make-lcdwrite-conflict-resistant.patch 0002-scripts-hotplug-protect-against-potential-spaces-in-.patch 0003-scripts-hotplug-add-support-for-scriptable-rules.patch 0004-scripts-add-an-example-usb-serial-script-for-hotplug.patch 0005-glibc-2.28-compat.patch 0006-init-rename-print-to-debug.patch 0007-init-add-print-and-println.patch 0008-init-add-limited-length-versions-of-print-println.patch 0009-init-add-a-new-help-command.patch 0010-init-sort-commands-by-alphabetic-order.patch 0011-init-add-a-little-description-for-each-help-command.patch 0012-init-make-the-help-command-support-an-optional-comma.patch 0013-init-make-addint-support-32-bit-values.patch 0014-init-report-errno-value-in-case-of-error.patch 0015-scripts-pcidev-keep-modprobe-silent-when-resolving-a.patch 0016-scripts-pcidev-skip-the-alias-resolution-phase-for-l.patch " SRC_FETCH_PATH="http://git.formilux.org/?p=dist/src/flxutils.git;a=snapshot;h=v${PKGVER};sf=tgz" SRC_FETCH_METHOD="http" SMALL_SUBDIRS="findcdrom init mktmp remount uname wd mii ifenslave lcd grub-mbr-default pause" FAST_SUBDIRS="flx signfs" function do_compile { # the default build options are already set to small here for dir in $SMALL_SUBDIRS; do $FLXMAKE -C $dir STRIP=$STRIP OBJDUMP=$OBJDUMP CC="$CC" UCLIBC= || exit 1 done # these are the only two dirs using COPTS for dir in $FAST_SUBDIRS; do $FLXMAKE -C $dir COPTS="$GCC_ARCH_COMMON $GCC_CPU_COMMON $GCC_OPT_FAST -fno-strict-aliasing" STRIP=$STRIP OBJDUMP=$OBJDUMP CC="$CC" UCLIBC= || exit 1 done } function do_distclean { for dir in $SMALL_SUBDIRS $FAST_SUBDIRS; do $FLXMAKE -C $dir clean $FLXMAKE -C $dir distclean $FLXMAKE -C $dir mrproper done ( do_delpack ) } function do_clean { for dir in $SMALL_SUBDIRS $FAST_SUBDIRS; do $FLXPMAKE -C $dir clean done ( do_delpack ) } function do_prepack { mkdir -p $ROOTDIR/sbin $ROOTDIR/bin $ROOTDIR/usr/bin $ROOTDIR/usr/share/examples/flxutils/init $ROOTDIR/usr/sbin $ROOTDIR/usr/man/man8 cp findcdrom/findcdrom $ROOTDIR/sbin/ cp grub-mbr-default/grub-mbr-default $ROOTDIR/sbin/ cp flx/flx pause/pause signfs/signfs mktmp/mktmp remount/remountr lcd/lcd{tee,write} $ROOTDIR/bin/ ln -s flx $ROOTDIR/bin/flxcheck ln -s flx $ROOTDIR/bin/flxsign ln -s remountr $ROOTDIR/bin/remountw cp -R ifenslave/ifenslave-1.0.1[12] init/init init/mkdev wd/wdd mii/mii-diag scripts/{pci-listall,pcidev,noctrlaltdel,mkinstall.old,mkinstall,hotplug} $ROOTDIR/sbin/ cp -R ifenslave/ifenslave-1.1.0 $ROOTDIR/sbin/ifenslave cp scripts/{reset,flxsearch,flxextract,flxrescan} $ROOTDIR/usr/bin/ cp wd/wdd.8 $ROOTDIR/usr/man/man8/ cp scripts/{flxadd,flxfix} $ROOTDIR/usr/sbin cp init/examples/* $ROOTDIR/usr/share/examples/flxutils/init/ set_default_perm $ROOTDIR chmod 640 $ROOTDIR/usr/share/examples/flxutils/init/* # flxfix is useful for normal users too. chmod 755 $ROOTDIR/usr/sbin/flxfix } function do_tar_src { git config tar.umask 022 git archive --format=tar --prefix=$PKGRADIX-$PKGVER/ HEAD | gzip -c9 > $PKGRADIX-$PKGVER.tgz }