Add freeradius recipe
authorReto Buerki <reet@codelabs.ch>
Wed, 21 Nov 2012 17:39:08 +0000 (18:39 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 18 Dec 2012 15:00:21 +0000 (16:00 +0100)
testing/scripts/recipes/freeradius.mk [new file with mode: 0644]

diff --git a/testing/scripts/recipes/freeradius.mk b/testing/scripts/recipes/freeradius.mk
new file mode 100644 (file)
index 0000000..89e25c0
--- /dev/null
@@ -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