]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - pkgs/freeradius/freeradius.nm
Merge remote-tracking branch 'maniacikarus/proxy'
[people/arne_f/ipfire-3.x.git] / pkgs / freeradius / freeradius.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = freeradius-server
28 PKG_VER = 2.1.9
29 PKG_REL = 1
30
31 PKG_MAINTAINER =
32 PKG_GROUPS = System/Daemons
33 PKG_URL = http://www.freeradius.org
34 PKG_LICENSE = GPLv2+ and LGPLv2+
35 PKG_SUMMARY = High-performance and highly configurable free RADIUS server.
36
37 PKG_BUILD_DEPS+= gdbm-devel libpcap-devel libtool libtool-devel openssl-devel \
38 perl
39
40 # Freeradius requires make to generate it's certificates
41 PKG_DEPS += make
42
43 define PKG_DESCRIPTION
44 The FreeRADIUS Server Project is a high performance and highly \
45 configurable GPL'd free RADIUS server. \
46 FreeRADIUS is an Internet authentication daemon, which implements \
47 the RADIUS protocol, as defined in RFC 2865. It allows \
48 Network Access Servers to perform authentication for dial-up users.
49 endef
50
51 PKG_TARBALL = $(THISAPP).tar.gz
52
53 define QUALITY_AGENT_WHITELIST_RPATH
54 /usr/lib/freeradius
55 endef
56
57 define STAGE_BUILD
58 cd $(DIR_APP) && \
59 ./configure \
60 $(CONFIGURE_ARCH) \
61 --prefix=/usr \
62 --sysconfdir=/etc \
63 --libdir=/usr/lib/freeradius \
64 --localstatedir=/var \
65 --with-system-libtool \
66 --with-threads \
67 --with-thread-pool \
68 --disable-ltdl-install \
69 --with-gnu-ld \
70 --without-rlm_eap_ikev2 \
71 --without-rlm_sql_iodbc \
72 --without-rlm_sql_firebird \
73 --without-rlm_sql_db2 \
74 --without-rlm_sql_oracle
75
76 cd $(DIR_APP) && make LIBTOOL="libtool --tag=CC" #$(PARALLELISMFLAGS)
77 endef
78
79 define STAGE_INSTALL
80 cd $(DIR_APP) && R=$(BUILDROOT) make install
81 endef
82
83 define STAGE_INSTALL_CMDS
84 -mkdir -pv $(BUILDROOT)/etc/logrotate.d/
85 cp -vf $(DIR_SOURCE)/logrotate/freeradius $(BUILDROOT)/etc/logrotate.d/
86 endef
87
88 # Generate certificates after installation
89 # Command: cd /etc/raddb/certs/ && make Makefile