Add freeradius recipe
[strongswan.git] / testing / scripts / recipes / freeradius.mk
1 #!/usr/bin/make
2
3 PV = 2.2.0
4 PKG = freeradius-server-$(PV)
5 TAR = $(PKG).tar.bz2
6 SRC = ftp://ftp.freeradius.org/pub/freeradius/$(TAR)
7
8 NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN)
9
10 CONFIG_OPTS = \
11 --with-raddbdir=/etc/freeradius \
12 --sysconfdir=/etc \
13 --with-logdir=/var/log/freeradius \
14 --enable-developer \
15 --with-experimental-modules
16
17 all: install
18
19 $(TAR):
20 wget $(SRC)
21
22 $(PKG): $(TAR)
23 tar xfj $(TAR)
24
25 configure: $(PKG)
26 cd $(PKG) && ./configure $(CONFIG_OPTS)
27
28 build: configure
29 cd $(PKG) && make -j $(NUM_CPUS)
30
31 install: build
32 cd $(PKG) && make install