Re: pam_radius_auth updated spec file, please include in future releases

2007-11-05 Thread Alan DeKok
Florin Andrei wrote:
> I attached an updated spec file for pam_radius_auth. The original one
> fails when building as non-root. I fixed that and made a few other minor
> changes.

  The "install" stage SHOULD set the permissions correctly.

> It would be nice if the build system could generate this spec file from
> a template, automatically replace the version number inside the spec
> with the actual version of the pam_radius_auth tarball, and include the
> automatically generated spec in the tarball.

  Or, just update the spec file when a new version is released.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: pam_radius_auth updated spec file, please include in future releases

2007-10-30 Thread Florin Andrei

Florin Andrei wrote:

I attached an updated spec file for pam_radius_auth.


No, I didn't. _Now_ I did. :-/

--
Florin Andrei

http://florin.myip.org/
%define name pam_radius_auth
%define shortname pam_radius
%define version 1.3.17
%define release 0

Name: %{name}
Summary: PAM Module for RADIUS Authentication
Version: %{version}
Release: %{release}
Source: ftp://ftp.freeradius.org/pub/radius/%{shortname}-%{version}.tar.gz
URL: http://www.freeradius.org/pam_radius_auth/
Group: System Environment/Libraries
BuildRoot: %{_tmppath}/%{name}-buildroot
License: BSD-like or GNU GPL
Requires: pam

%description
This is the PAM to RADIUS authentication module. It allows any PAM-capable
machine to become a RADIUS client for authentication and accounting
requests. You will need a RADIUS server to perform the actual
authentication.

%prep
%setup -q -n %{shortname}-%{version}

%build
make

%install
mkdir -p %{buildroot}/lib/security
cp -p pam_radius_auth.so %{buildroot}/lib/security
mkdir -p %{buildroot}/etc/raddb
[ -f %{buildroot}/etc/raddb/server ] || cp -p pam_radius_auth.conf %{buildroot}/etc/raddb/server
#chown root %{buildroot}/etc/raddb/server
#chgrp root %{buildroot}/etc/raddb/server
chmod 0600 %{buildroot}/etc/raddb/server

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

%postun
rmdir /etc/raddb || true

%files
%defattr(-,root,root,0755)
%doc README INSTALL USAGE Changelog
%config /etc/raddb/server
/lib/security/pam_radius_auth.so

%changelog
* Tue Oct 30 2007 Florin Andrei <[EMAIL PROTECTED]> 1.3.17-0
- build fixes

* Mon Jun 03 2002 Richie Laager <[EMAIL PROTECTED]> 1.3.15-0
- Inital RPM Version
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

pam_radius_auth updated spec file, please include in future releases

2007-10-30 Thread Florin Andrei
I attached an updated spec file for pam_radius_auth. The original one 
fails when building as non-root. I fixed that and made a few other minor 
changes.


It would be nice if the build system could generate this spec file from 
a template, automatically replace the version number inside the spec 
with the actual version of the pam_radius_auth tarball, and include the 
automatically generated spec in the tarball.
That way, users could generate RPM packages out of the tarball by simply 
downloading the archive and running:


rpmbuild -ta pam_radius...(version number here)...tar.gz

Thanks,

--
Florin Andrei

http://florin.myip.org/
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html