# !!!! This patch adds the missing .c files generated from mainline sources .rl # files using the 'ravel' tool. # If .rl differs they won't apply and it means the added .c must be re-generated # from the newest .rl files PATCH_LIST="fix-3.8.0-without-ragel.patch" FILE_LIST= SRC_FETCH_METHOD=http # retrieval method : # can be svn, git, http, ftp, filesystem # SRC_FETCH_METHOD=http # SRC_GIT_COMMIT=75ad7993b381542b3cfd839ead940eae7634937f SRC_FETCH_PATH="$PUBLIC_GIT_BASE/gslb/-/archive/${SRC_GIT_COMMIT}/gslb-${PKGVER}-git-${SRC_GIT_COMMIT}.tar.gz" # retrieval path : # SRC_FETCH_PATH=http://foo.com/test.tar.bz2 # # Use FLXHOSTOS, FLXHOSTARCH, HOSTCC, HOSTCXX for the machine used to build. # Use FLXTARGOS, FLXTARGARCH, CC, CXX, LD, for the target machine. # FLXMAKE usually is 'make', FLXPMAKE usually is 'make -j 2' # Build tools are in /$FLXTOOLDIR, toolchain root dir is /$FLXROOTDIR. # Current dir is /$CURDIR, package dir is /$PKGDIR, dest root dir is /$ROOTDIR. # Package name is $PKGRADIX-$PKGVER-$DISTVER # optimize for size #FLXARCH=$FLX_ARCH_SMALL MAKEDEPENDS=( 'libev-4.*:::*.a *.h' 'userspace-rcu-*:::*.a *.h' 'libsodium-*:::*.a *.h' 'libmaxminddb-*:::*.so *.so.* *.h' ) # format : # MAKEDEPENDS='packagename:versfx:architecture:globbing' # # exemple : # MAKEDEPENDS='tplparser-0local-flx0.0:albdev:i586:*.a *.h' function do_config { # Sometimes, broken packages will need LD="$CC" autoreconf -i 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" \ CPPFLAGS="-I$FLXROOTDIR/opt/db4/include" \ LDFLAGS="-I$FLXROOTDIR/opt/db4/lib" \ ./configure --build=${FLXHOST} --host=${FLXTARG} \ --prefix=/usr --sysconfdir=/etc } function do_compile_only { # ensure generated .c more recent than .rl touch src/zscan_rfc1035.c touch libgdnsd/vscf.c # parallel make $FLXPMAKE } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR set_default_perm $ROOTDIR }