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. |
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 |
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 \ |