freeradius/freeradius.spec

changeset 306
cc6a45887422
parent 48
e12fbbfbe80e
child 307
937b4de09dc1
equal deleted inserted replaced
1:4e56e745f6be 2:1fe0004086bf
1 ## 1 ##
2 ## freeradius.spec -- OpenPKG RPM Package Specification 2 ## freeradius.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> 3 ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/>
4 ## 4 ##
5 ## Permission to use, copy, modify, and distribute this software for 5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that 6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all 7 ## the above copyright notice and this permission notice appear in all
8 ## copies. 8 ## copies.
32 Packager: OpenPKG Foundation e.V. 32 Packager: OpenPKG Foundation e.V.
33 Distribution: OpenPKG Community 33 Distribution: OpenPKG Community
34 Class: EVAL 34 Class: EVAL
35 Group: RADIUS 35 Group: RADIUS
36 License: GPL 36 License: GPL
37 Version: 2.1.3 37 Version: 2.1.10
38 Release: 20090106 38 Release: 20100929
39 39
40 # package options 40 # package options
41 %option with_mysql no 41 %option with_mysql no
42 %option with_openldap no 42 %option with_openldap no
43 %option with_pgsql no 43 %option with_pgsql no
47 Source0: ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-%{version}.tar.gz 47 Source0: ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-%{version}.tar.gz
48 Source1: rc.freeradius 48 Source1: rc.freeradius
49 Patch0: freeradius.patch 49 Patch0: freeradius.patch
50 50
51 # build information 51 # build information
52 Prefix: %{l_prefix} 52 BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc, libtool
53 BuildRoot: %{l_buildroot} 53 PreReq: OpenPKG, openpkg >= 20100101
54 BuildPreReq: OpenPKG, openpkg >= 20060823, make, gcc, libtool
55 PreReq: OpenPKG, openpkg >= 20060823
56 BuildPreReq: perl, openssl, gdbm, readline 54 BuildPreReq: perl, openssl, gdbm, readline
57 PreReq: perl, openssl, gdbm, readline 55 PreReq: perl, openssl, gdbm, readline
58 %if "%{with_mysql}" == "yes" 56 %if "%{with_mysql}" == "yes"
59 BuildPreReq: mysql, zlib 57 BuildPreReq: mysql, zlib
60 PreReq: mysql, zlib 58 PreReq: mysql, zlib
69 %endif 67 %endif
70 %if "%{with_snmp}" == "yes" 68 %if "%{with_snmp}" == "yes"
71 BuildPreReq: snmp 69 BuildPreReq: snmp
72 PreReq: snmp 70 PreReq: snmp
73 %endif 71 %endif
74 AutoReq: no
75 AutoReqProv: no
76 72
77 %description 73 %description
78 FreeRADIUS is one of the most modular and featureful RADIUS servers 74 FreeRADIUS is one of the most modular and featureful RADIUS servers
79 available today. It has been written by a team of developers who 75 available today. It has been written by a team of developers who
80 have more than a decade of collective experience in implementing 76 have more than a decade of collective experience in implementing
117 --disable-shared \ 113 --disable-shared \
118 --enable-static \ 114 --enable-static \
119 --with-logdir=%{l_prefix}/var/freeradius \ 115 --with-logdir=%{l_prefix}/var/freeradius \
120 --with-radacctdir=%{l_prefix}/var/freeradius \ 116 --with-radacctdir=%{l_prefix}/var/freeradius \
121 --with-raddbdir=%{l_prefix}/etc/freeradius \ 117 --with-raddbdir=%{l_prefix}/etc/freeradius \
122 --without-threads \ 118 --with-threads \
123 --with-openssl-includes=%{l_prefix}/include/openssl \ 119 --with-openssl-includes=%{l_prefix}/include/openssl \
124 --with-openssl-libraries=%{l_prefix}/lib/ \ 120 --with-openssl-libraries=%{l_prefix}/lib/ \
125 --with-rlm_perl \ 121 --with-rlm_perl \
126 %if "%{with_mysql}" == "yes" || "%{with_pgsql}" == "yes" 122 %if "%{with_mysql}" == "yes" || "%{with_pgsql}" == "yes"
127 --with-rlm_sql \ 123 --with-rlm_sql \
177 # build package 173 # build package
178 %{l_make} %{l_mflags} 174 %{l_make} %{l_mflags}
179 175
180 %install 176 %install
181 # install package 177 # install package
182 rm -rf $RPM_BUILD_ROOT
183 %{l_shtool} mkdir -f -p -m 755 \ 178 %{l_shtool} mkdir -f -p -m 755 \
184 $RPM_BUILD_ROOT%{l_prefix}/lib/freeradius 179 $RPM_BUILD_ROOT%{l_prefix}/lib/freeradius
185 %{l_make} %{l_mflags} install \ 180 %{l_make} %{l_mflags} install \
186 R=$RPM_BUILD_ROOT 181 R=$RPM_BUILD_ROOT
187 182
213 '%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/freeradius' 208 '%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/freeradius'
214 209
215 %files -f files 210 %files -f files
216 211
217 %clean 212 %clean
218 rm -rf $RPM_BUILD_ROOT 213
219

mercurial