PATCH_LIST="0000-default-configuration.patch 0001-dont-run-local-exim.patch" FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH=http://exim.mirror.fr/exim/exim4/exim-${PKGVER}.tar.bz2 MAKEDEPENDS=("openssl-*:::*.so *.so.* *.h" "pcre-*:::*.so *.so.* *.h" "db-4.*:::*.a *.h") function do_config { $FLXMAKE buildname="$FLXHOST" makefile Local/Makefile configure $FLXPMAKE -C "build-$FLXHOST" buildconfig $FLXPMAKE -C "build-$FLXHOST" os.h } function do_compile_only { # parallel make $FLXPMAKE -C "build-$FLXHOST" buildname="$FLXHOST" FULLECHO= \ CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR cq" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL" } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR buildname="$FLXHOST" FULLECHO= \ CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR cq" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL" || exit 1 mkdir -p $ROOTDIR/usr/share/examples/exim || exit 1 mv $ROOTDIR/etc/aliases $ROOTDIR/usr/share/examples/exim/ || exit 1 mv $ROOTDIR/etc/exim/exim.conf $ROOTDIR/usr/share/examples/exim/ || exit 1 mv $ROOTDIR/usr/sbin/exim-$PKGVER $ROOTDIR/usr/sbin/exim || exit 1 mkdir -p $ROOTDIR/sbin/init.d || exit 1 cp .flxpkg/add-ons/exim.init $ROOTDIR/sbin/init.d/exim || exit 1 chmod 555 $ROOTDIR/sbin/init.d/exim || exit 1 set_default_perm $ROOTDIR }