SPECS: gnu-radius.spec - 1.4 - add sysconfig file - run ldconfig a...
aredridel
aredridel at pld-linux.org
Thu Jun 28 22:00:11 CEST 2007
Author: aredridel Date: Thu Jun 28 20:00:11 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- 1.4
- add sysconfig file
- run ldconfig after install
---- Files affected:
SPECS:
gnu-radius.spec (1.21 -> 1.22)
---- Diffs:
================================================================
Index: SPECS/gnu-radius.spec
diff -u SPECS/gnu-radius.spec:1.21 SPECS/gnu-radius.spec:1.22
--- SPECS/gnu-radius.spec:1.21 Tue Feb 13 08:16:47 2007
+++ SPECS/gnu-radius.spec Thu Jun 28 22:00:06 2007
@@ -1,18 +1,24 @@
# $Revision$, $Date$
+#
+# TODO:
+# - bcond mysql and postgresql
+# - separate packages for mysql.so and postgresql.so
+
Summary: GNU RADIUS Server
Summary(pl.UTF-8): Serwer GNU RADIUS
Name: gnu-radius
-Version: 1.3
+Version: 1.4
Release: 1
License: GPL
Group: Networking/Daemons
Source0: ftp://ftp.gnu.org/pub/gnu/radius/radius-%{version}.tar.bz2
-# Source0-md5: 8bf4ebdc94415d8a25949b12aa04a337
+# Source0-md5: aba653622aa0582ca121f0a386bed934
Source1: %{name}.pamd
Source2: %{name}.init
Source3: %{name}.logrotate
Source4: %{name}-mysql.sql
Source5: %{name}-pgsql.sql
+Source6: %{name}.sysconfig
URL: http://www.gnu.org/software/radius/
BuildRequires: gettext-devel
BuildRequires: groff
@@ -96,6 +102,7 @@
--with-dbm \
--with-mysql \
--with-postgresql \
+ --with-sql=mysql,postgres \
--enable-pam \
--enable-shadow
@@ -103,7 +110,7 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d,pam.d},/var/log/radacct} \
+install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d,pam.d,sysconfig},/var/log/radacct} \
$RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man{1,5,8},%{_sysconfdir}/raddb,%{_libdir}}
%{__make} install \
@@ -114,6 +121,7 @@
install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/radius
install %{SOURCE4} mysql.sql
install %{SOURCE5} pgsql.sql
+install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/gnu-radius
touch $RPM_BUILD_ROOT/etc/pam.d/radius
touch $RPM_BUILD_ROOT/var/log/rad{utmp,wtmp,ius.log}
@@ -124,6 +132,7 @@
rm -rf $RPM_BUILD_ROOT
%post
+/sbin/ldconfig
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
/sbin/chkconfig --add radius
if [ -f /var/lock/subsys/radius ]; then
@@ -143,11 +152,13 @@
fi
%postun
+/sbin/ldconfig
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
%files -f radius.lang
%defattr(644,root,root,755)
%doc {ChangeLog,README*,*.sql}
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/gnu-radius
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/naslist
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/nas.rc
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/raddb/nastypes
@@ -193,6 +204,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.22 2007/06/28 20:00:06 aredridel
+- 1.4
+- add sysconfig file
+- run ldconfig after install
+
Revision 1.21 2007/02/13 07:16:47 glen
- tabs in preamble
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/gnu-radius.spec?r1=1.21&r2=1.22&f=u
More information about the pld-cvs-commit
mailing list