charon-systemd: Don't use atexit() to deinitialize the daemon
[strongswan.git] / testing / scripts / recipes / 003_freeradius.mk
1 #!/usr/bin/make
2
3 PV = 2.2.8
4 PKG = freeradius-server-$(PV)
5 TAR = $(PKG).tar.bz2
6 SRC = ftp://ftp.freeradius.org/pub/freeradius/old/$(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 PATCHES = \
18 freeradius-eap-sim-identity \
19 freeradius-tnc-fhh
20
21 all: install
22
23 $(TAR):
24 wget $(SRC)
25
26 .$(PKG)-unpacked: $(TAR)
27 tar xfj $(TAR)
28 @touch $@
29
30 .$(PKG)-patches-applied: .$(PKG)-unpacked
31 cd $(PKG) && cat $(addprefix ../patches/, $(PATCHES)) | patch -p1
32 @touch $@
33
34 .$(PKG)-configured: .$(PKG)-patches-applied
35 cd $(PKG) && ./configure $(CONFIG_OPTS)
36 @touch $@
37
38 .$(PKG)-built: .$(PKG)-configured
39 cd $(PKG) && make -j $(NUM_CPUS)
40 @touch $@
41
42 install: .$(PKG)-built
43 cd $(PKG) && make install