PATCH_LIST="0001-lcd-make-lcdwrite-conflict-resistant.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 }