PATCH_LIST= FILE_LIST= SRC_FETCH_METHOD=http SRC_GIT_COMMIT=bfe3038 SRC_FETCH_PATH=https://github.com/FreeRADIUS/${PKGRADIX}/archive/${SRC_GIT_COMMIT}/${PKGRADIX}-${SRC_GIT_COMMIT}.tar.gz # 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=( "pam-*:::*.h *.so *.so.*" ) function do_config { # Sometimes, broken packages will need LD="$CC" 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" \ ./configure --build=${FLXHOST} --host=${FLXTARG} --prefix="${ROOTDIR}/usr" } function do_compile_only { # parallel make $FLXPMAKE CFLAGS='-Wall -fPIC -DCONF_FILE=\"/etc/security/pam_radius.conf\"' } function do_prepack { mkdir -p "${ROOTDIR}/usr/lib/security/" cp pam_radius_auth.so "${ROOTDIR}/usr/lib/security/pam_radius.so" set_default_perm $ROOTDIR }