Can't build rpm for freeradius-1.1.2 on fedora core 5

DonKiShoot donkishoot at wanadoo.fr
Wed Jul 5 09:38:10 CEST 2006


Hello all and sorry for my poor english,

I'm trying to build the rpm of freeradius-1.1.2 on my fedora core 5 as 
explain in the wiki
because i couldn't find it on the web and i have got actually a bug with 
freeradius-1.0.5-1.2 that i hope this release correct.

If someone could help me, maybe it's not necessary for me to upgrade and 
make this rpm :

With freeradius-1.0.5-1.2 and ActiveDirectory, if i don't use an unique 
OU with all my users, there is a bug.
Freeradius says something like DSID-0C090627 ... not all the time but 
90% of the time and it is very rageous.
On the web i saw something about referral, about large scope, etc ... 
and i don't understand anything.
As my users are separated in different OU, i must use a large scope.

For exemple, with this, it's ok at 100% of time :
       ldap {
               basedn = 'OU=Users,OU=Paris,DC=worldcompany,DC=loc'
               filter = 
'(sAMAccountname=%{Stripped-User-Name:-%{User-Name}})'
               base_filter = '(&(objectClass=user)(c=FR))'
       }
But with this, it's ok at 10% of time :
       ldap {
               basedn = 'DC=worldcompany,DC=loc'
               filter = 
'(sAMAccountname=%{Stripped-User-Name:-%{User-Name}})'
               base_filter = '(&(objectClass=user)(c=FR))'
       }

If it is really a bug then help me building my rpm, please ;-)
When building it with rpmbuild -bb freeradius.spec, all seems good but 
at the end.
It says that there is an error with install files non packed

What can i do ? Is there an error in the .spec file ?

##########################################################
Vérification des fichiers non empaquetés: /usr/lib/rpm/check-files 
/var/tmp/freeradius-root
erreur: Fichier(s) installé(s) (mais non empaquetés):
  /usr/share/doc/freeradius/Acct-Type
  /usr/share/doc/freeradius/Autz-Type
  /usr/share/doc/freeradius/CYGWIN
  /usr/share/doc/freeradius/ChangeLog
  /usr/share/doc/freeradius/DIFFS
  /usr/share/doc/freeradius/MACOSX
  /usr/share/doc/freeradius/OS2
  /usr/share/doc/freeradius/Post-Auth-Type
  /usr/share/doc/freeradius/RADIUS-LDAP-eDirectory
  /usr/share/doc/freeradius/RADIUS-SQL.schema
  /usr/share/doc/freeradius/README
  /usr/share/doc/freeradius/Session-Type
  /usr/share/doc/freeradius/Simultaneous-Use
  /usr/share/doc/freeradius/aaa.txt
  /usr/share/doc/freeradius/ascend
  /usr/share/doc/freeradius/bay
  /usr/share/doc/freeradius/bugs
  /usr/share/doc/freeradius/cisco
  /usr/share/doc/freeradius/coding-methods.txt
  /usr/share/doc/freeradius/configurable_failover
  /usr/share/doc/freeradius/duplicate-users
  /usr/share/doc/freeradius/examples/iplanet.ldif
  /usr/share/doc/freeradius/examples/iplanet.schema
  /usr/share/doc/freeradius/examples/mssql.sql
  /usr/share/doc/freeradius/examples/mysql.sql
  /usr/share/doc/freeradius/examples/openldap.schema
  /usr/share/doc/freeradius/examples/oracle.sql
  /usr/share/doc/freeradius/examples/postgresql.sql
  /usr/share/doc/freeradius/ldap_howto.txt
  /usr/share/doc/freeradius/load-balance.txt
  /usr/share/doc/freeradius/misc-nas
  /usr/share/doc/freeradius/module_interface
  /usr/share/doc/freeradius/mssql
  /usr/share/doc/freeradius/performance-testing
  /usr/share/doc/freeradius/processing_users_file
  /usr/share/doc/freeradius/proxy
  /usr/share/doc/freeradius/radrelay
  /usr/share/doc/freeradius/release-method.txt
  /usr/share/doc/freeradius/rfc/attributes.html
  /usr/share/doc/freeradius/rfc/draft-kamath-pppext-eap-mschapv2-00.txt
  /usr/share/doc/freeradius/rfc/draft-sterman-aaa-sip-00.txt
  /usr/share/doc/freeradius/rfc/leap.txt
  /usr/share/doc/freeradius/rfc/pppext-eap-sim-12.txt
  /usr/share/doc/freeradius/rfc/rfc1157.txt
  /usr/share/doc/freeradius/rfc/rfc1227.txt
  /usr/share/doc/freeradius/rfc/rfc1448.txt
  /usr/share/doc/freeradius/rfc/rfc1901.txt
  /usr/share/doc/freeradius/rfc/rfc1905.txt
  /usr/share/doc/freeradius/rfc/rfc2058.txt
  /usr/share/doc/freeradius/rfc/rfc2059.txt
  /usr/share/doc/freeradius/rfc/rfc2138.txt
  /usr/share/doc/freeradius/rfc/rfc2139.txt
  /usr/share/doc/freeradius/rfc/rfc2243.txt
  /usr/share/doc/freeradius/rfc/rfc2289.txt
  /usr/share/doc/freeradius/rfc/rfc2433.txt
  /usr/share/doc/freeradius/rfc/rfc2548.txt
  /usr/share/doc/freeradius/rfc/rfc2618.txt
  /usr/share/doc/freeradius/rfc/rfc2619.txt
  /usr/share/doc/freeradius/rfc/rfc2620.txt
  /usr/share/doc/freeradius/rfc/rfc2621.txt
  /usr/share/doc/freeradius/rfc/rfc2716.txt
  /usr/share/doc/freeradius/rfc/rfc2759.txt
  /usr/share/doc/freeradius/rfc/rfc2809.txt
  /usr/share/doc/freeradius/rfc/rfc2865.txt
  /usr/share/doc/freeradius/rfc/rfc2866.txt
  /usr/share/doc/freeradius/rfc/rfc2867.txt
  /usr/share/doc/freeradius/rfc/rfc2868.txt
  /usr/share/doc/freeradius/rfc/rfc2869.txt
  /usr/share/doc/freeradius/rfc/rfc2882.txt
  /usr/share/doc/freeradius/rfc/rfc2924.txt
  /usr/share/doc/freeradius/rfc/rfc3162.txt
  /usr/share/doc/freeradius/rfc/rfc3575.txt
  /usr/share/doc/freeradius/rfc/rfc3576.txt
  /usr/share/doc/freeradius/rfc/rfc3579.txt
  /usr/share/doc/freeradius/rfc/rfc3580.txt
  /usr/share/doc/freeradius/rlm_attr_filter
  /usr/share/doc/freeradius/rlm_dbm
  /usr/share/doc/freeradius/rlm_digest
  /usr/share/doc/freeradius/rlm_eap
  /usr/share/doc/freeradius/rlm_fastusers
  /usr/share/doc/freeradius/rlm_krb5
  /usr/share/doc/freeradius/rlm_ldap
  /usr/share/doc/freeradius/rlm_otp
  /usr/share/doc/freeradius/rlm_pam
  /usr/share/doc/freeradius/rlm_passwd
  /usr/share/doc/freeradius/rlm_python
  /usr/share/doc/freeradius/rlm_sim_triplets
  /usr/share/doc/freeradius/rlm_sql
  /usr/share/doc/freeradius/rlm_sqlcounter
  /usr/share/doc/freeradius/supervise-radiusd.txt
  /usr/share/doc/freeradius/tuning_guide
  /usr/share/doc/freeradius/variables.txt


Erreur de construction de RPM:
   Fichier(s) installé(s) (mais non empaquetés):
  /usr/share/doc/freeradius/Acct-Type
  /usr/share/doc/freeradius/Autz-Type
  /usr/share/doc/freeradius/CYGWIN
  /usr/share/doc/freeradius/ChangeLog
  /usr/share/doc/freeradius/DIFFS
  /usr/share/doc/freeradius/MACOSX
  /usr/share/doc/freeradius/OS2
  /usr/share/doc/freeradius/Post-Auth-Type
  /usr/share/doc/freeradius/RADIUS-LDAP-eDirectory
  /usr/share/doc/freeradius/RADIUS-SQL.schema
  /usr/share/doc/freeradius/README
  /usr/share/doc/freeradius/Session-Type
  /usr/share/doc/freeradius/Simultaneous-Use
  /usr/share/doc/freeradius/aaa.txt
  /usr/share/doc/freeradius/ascend
  /usr/share/doc/freeradius/bay
  /usr/share/doc/freeradius/bugs
  /usr/share/doc/freeradius/cisco
  /usr/share/doc/freeradius/coding-methods.txt
  /usr/share/doc/freeradius/configurable_failover
  /usr/share/doc/freeradius/duplicate-users
  /usr/share/doc/freeradius/examples/iplanet.ldif
  /usr/share/doc/freeradius/examples/iplanet.schema
  /usr/share/doc/freeradius/examples/mssql.sql
  /usr/share/doc/freeradius/examples/mysql.sql
  /usr/share/doc/freeradius/examples/openldap.schema
  /usr/share/doc/freeradius/examples/oracle.sql
  /usr/share/doc/freeradius/examples/postgresql.sql
  /usr/share/doc/freeradius/ldap_howto.txt
  /usr/share/doc/freeradius/load-balance.txt
  /usr/share/doc/freeradius/misc-nas
  /usr/share/doc/freeradius/module_interface
  /usr/share/doc/freeradius/mssql
  /usr/share/doc/freeradius/performance-testing
  /usr/share/doc/freeradius/processing_users_file
  /usr/share/doc/freeradius/proxy
  /usr/share/doc/freeradius/radrelay
  /usr/share/doc/freeradius/release-method.txt
  /usr/share/doc/freeradius/rfc/attributes.html
  /usr/share/doc/freeradius/rfc/draft-kamath-pppext-eap-mschapv2-00.txt
  /usr/share/doc/freeradius/rfc/draft-sterman-aaa-sip-00.txt
  /usr/share/doc/freeradius/rfc/leap.txt
  /usr/share/doc/freeradius/rfc/pppext-eap-sim-12.txt
  /usr/share/doc/freeradius/rfc/rfc1157.txt
  /usr/share/doc/freeradius/rfc/rfc1227.txt
  /usr/share/doc/freeradius/rfc/rfc1448.txt
  /usr/share/doc/freeradius/rfc/rfc1901.txt
  /usr/share/doc/freeradius/rfc/rfc1905.txt
  /usr/share/doc/freeradius/rfc/rfc2058.txt
  /usr/share/doc/freeradius/rfc/rfc2059.txt
  /usr/share/doc/freeradius/rfc/rfc2138.txt
  /usr/share/doc/freeradius/rfc/rfc2139.txt
  /usr/share/doc/freeradius/rfc/rfc2243.txt
  /usr/share/doc/freeradius/rfc/rfc2289.txt
  /usr/share/doc/freeradius/rfc/rfc2433.txt
  /usr/share/doc/freeradius/rfc/rfc2548.txt
  /usr/share/doc/freeradius/rfc/rfc2618.txt
  /usr/share/doc/freeradius/rfc/rfc2619.txt
  /usr/share/doc/freeradius/rfc/rfc2620.txt
  /usr/share/doc/freeradius/rfc/rfc2621.txt
  /usr/share/doc/freeradius/rfc/rfc2716.txt
  /usr/share/doc/freeradius/rfc/rfc2759.txt
  /usr/share/doc/freeradius/rfc/rfc2809.txt
  /usr/share/doc/freeradius/rfc/rfc2865.txt
  /usr/share/doc/freeradius/rfc/rfc2866.txt
  /usr/share/doc/freeradius/rfc/rfc2867.txt
  /usr/share/doc/freeradius/rfc/rfc2868.txt
  /usr/share/doc/freeradius/rfc/rfc2869.txt
  /usr/share/doc/freeradius/rfc/rfc2882.txt
  /usr/share/doc/freeradius/rfc/rfc2924.txt
  /usr/share/doc/freeradius/rfc/rfc3162.txt
  /usr/share/doc/freeradius/rfc/rfc3575.txt
  /usr/share/doc/freeradius/rfc/rfc3576.txt
  /usr/share/doc/freeradius/rfc/rfc3579.txt
  /usr/share/doc/freeradius/rfc/rfc3580.txt
  /usr/share/doc/freeradius/rlm_attr_filter
  /usr/share/doc/freeradius/rlm_dbm
  /usr/share/doc/freeradius/rlm_digest
  /usr/share/doc/freeradius/rlm_eap
  /usr/share/doc/freeradius/rlm_fastusers
  /usr/share/doc/freeradius/rlm_krb5
  /usr/share/doc/freeradius/rlm_ldap
  /usr/share/doc/freeradius/rlm_otp
  /usr/share/doc/freeradius/rlm_pam
  /usr/share/doc/freeradius/rlm_passwd
  /usr/share/doc/freeradius/rlm_python
  /usr/share/doc/freeradius/rlm_sim_triplets
  /usr/share/doc/freeradius/rlm_sql
  /usr/share/doc/freeradius/rlm_sqlcounter
  /usr/share/doc/freeradius/supervise-radiusd.txt
  /usr/share/doc/freeradius/tuning_guide
  /usr/share/doc/freeradius/variables.txt
####################################################




# cat freeradius.spec

#####################################################
#####################################################
Summary: High-performance and highly configurable RADIUS server
URL: http://www.freeradius.org/
Name: freeradius
Version: 1.1.2
Release: 0
License: GPL
Group: Networking/Daemons
Packager: FreeRADIUS.org
Source0: %{name}-%{version}.tar.gz
Prereq: /sbin/chkconfig
BuildPreReq: libtool
# FIXME: snmpwalk, snmpget and rusers POSSIBLY needed by checkrad
Provides: radiusd
Conflicts: cistron-radius
BuildRoot: %{_tmppath}/%{name}-root

%description
The FreeRADIUS Server Project is a high-performance and highly
configurable GPL'd RADIUS server. It is somewhat similar to the
Livingston 2.0 RADIUS server, but has many more features, and is much
more configurable.

%prep
%setup

%build
CFLAGS="$RPM_OPT_FLAGS" \
%configure --prefix=%{_prefix} \
       --localstatedir=%{_localstatedir} \
       --sysconfdir=%{_sysconfdir} \
       --mandir=%{_mandir} \
       --disable-ltdl-install \
       --with-ltdl-lib=/usr/lib \
       --with-ltdl-include=/usr/include \
       --with-large-files --with-udpfromto --with-edir \
       --with-rlm-sql_postgresql-include-dir=/usr/include/pgsql \
       --with-rlm-krb5-include-dir=/usr/kerberos/include \
       --with-rlm-krb5-lib-dir=/usr/kerberos/lib
make

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,rc.d/init.d}

make install R=$RPM_BUILD_ROOT

RADDB=$RPM_BUILD_ROOT/etc/raddb
# set radiusd as default user/group
perl -i -pe 's/^#user =.*$/user = radiusd/' $RADDB/radiusd.conf
perl -i -pe 's/^#group =.*$/group = radiusd/' $RADDB/radiusd.conf
# shadow password file MUST be defined on Linux
perl -i -pe 's/#        shadow =/shadow =/' $RADDB/radiusd.conf

# remove unneeded stuff
rm -f $RPM_BUILD_ROOT%{_mandir}/man8/builddbm.8
rm -f $RPM_BUILD_ROOT%{_prefix}/sbin/rc.radiusd

cd redhat
install -m 755 rc.radiusd-redhat $RPM_BUILD_ROOT/etc/rc.d/init.d/radiusd
install -m 644 radiusd-logrotate $RPM_BUILD_ROOT/etc/logrotate.d/radiusd
install -m 644 radiusd-pam       $RPM_BUILD_ROOT/etc/pam.d/radius
cd ..

%pre
/usr/sbin/useradd -c "radiusd user" -r -s /bin/false -u 95 -d / radiusd 
2>/dev/null || :

%preun
if [ "$1" = "0" ]; then
       /sbin/service radiusd stop > /dev/null 2>&1
       /sbin/chkconfig --del radiusd
fi

%post
/sbin/ldconfig
/sbin/chkconfig --add radiusd

# Done here to avoid messing up existing installations
for i in radius/radutmp radius/radwtmp radius/radius.log # 
radius/radwatch.log radius/checkrad.log
do
       touch /var/log/$i
       chown radiusd:radiusd /var/log/$i
       chmod 600 /var/log/$i
done

%postun
if [ "$1" -ge "1" ]; then
       /sbin/service radiusd condrestart >/dev/null 2>&1
fi
if [ $1 = 0 ]; then
       /usr/sbin/userdel radiusd > /dev/null 2>&1 || :
fi
/sbin/ldconfig

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc doc/ChangeLog doc/README* todo/ COPYRIGHT INSTALL
%config /etc/pam.d/radius
%config /etc/logrotate.d/radiusd
%config /etc/rc.d/init.d/radiusd
%config (noreplace) /etc/raddb/*
%{_bindir}/*
%{_datadir}/%{name}
%{_libdir}/*
%{_mandir}/*/*
%{_sbindir}/*
%attr(0700,radiusd,radiusd) %dir /var/log/radius
%attr(0700,radiusd,radiusd) %dir /var/log/radius/radacct
%attr(0700,radiusd,radiusd) %dir /var/run/radiusd

%changelog
* Thu Dec 15 2004 Alan DeKok
- update for 1.1.0

* Mon May 31 2004 Paul Hampson
- update for 1.0.0 release

* Fri May 23 2003 Marko Myllynen
- update for 0.9

* Wed Sep  4 2002 Marko Myllynen
- fix libtool issues for good

* Thu Aug 22 2002 Marko Myllynen
- update for 0.7/0.8

* Tue Jun 18 2002 Marko Myllynen
- run as radiusd user instead of root
- added some options for configure

* Thu Jun  6 2002 Marko Myllynen
- set noreplace for non-dictionary files in /etc/raddb

* Sun May 26 2002 Frank Cusack <frank at google.com>
- move /var dirs from %%post to %%files

* Thu Feb 14 2002 Marko Myllynen
- use dir name macros in all configure options
- libtool is required only when building the package
- misc clean ups

* Wed Feb 13 2002 Marko Myllynen
- use %%{_mandir} instead of /usr/man
- rename %%postin as %%post
- clean up name/version

* Fri Jan 18 2002 Frank Cusack <frank at google.com>
- remove (noreplace) for /etc/raddb/* (due to rpm bugs)

* Fri Sep 07 2001 Ivan F. Martinez <ivanfm at ecodigit.com.br>
- changes to make compatible with default config file shipped
- adjusts log files are on /var/log/radius instead of /var/log
- /etc/raddb changed to config(noreplace) to don't override
-   user configs

* Fri Sep 22 2000 Bruno Lopes F. Cabral <bruno at openline.com.br>
- spec file clear accordling to the libltdl fix and minor updates

* Wed Sep 12 2000 Bruno Lopes F. Cabral <bruno at openline.com.br>
- Updated to snapshot-12-Sep-00

* Fri Jun 16 2000 Bruno Lopes F. Cabral <bruno at openline.com.br>
- Initial release

############################################################
############################################################



More information about the Freeradius-Users mailing list