From adbb5cbd43f5790316de7a71031307b66a7eafe8 Mon Sep 17 00:00:00 2001 From: Reto Buerki Date: Wed, 21 Nov 2012 18:39:08 +0100 Subject: [PATCH] Add freeradius recipe --- testing/scripts/recipes/freeradius.mk | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 testing/scripts/recipes/freeradius.mk diff --git a/testing/scripts/recipes/freeradius.mk b/testing/scripts/recipes/freeradius.mk new file mode 100644 index 000000000..89e25c090 --- /dev/null +++ b/testing/scripts/recipes/freeradius.mk @@ -0,0 +1,32 @@ +#!/usr/bin/make + +PV = 2.2.0 +PKG = freeradius-server-$(PV) +TAR = $(PKG).tar.bz2 +SRC = ftp://ftp.freeradius.org/pub/freeradius/$(TAR) + +NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN) + +CONFIG_OPTS = \ + --with-raddbdir=/etc/freeradius \ + --sysconfdir=/etc \ + --with-logdir=/var/log/freeradius \ + --enable-developer \ + --with-experimental-modules + +all: install + +$(TAR): + wget $(SRC) + +$(PKG): $(TAR) + tar xfj $(TAR) + +configure: $(PKG) + cd $(PKG) && ./configure $(CONFIG_OPTS) + +build: configure + cd $(PKG) && make -j $(NUM_CPUS) + +install: build + cd $(PKG) && make install