[RADIATOR] Building RPMs (Was: Re: Radiator Version 4.5 released)

Heikki Vatiainen hvn at archred.com
Wed Dec 16 09:35:09 CST 2009


[Returning to the subject from last month]

On 11/10/2009 12:07 PM, Hugh Irvine wrote:

> The Makefile included in the Radiator distribution includes a "make rpm" target for just this reason.

Does this look correct? The purpose was to create rpm package that
contains all the latest patches for 4.5.1 as of 2009-12-16. This was
done on OpenSUSE 11.0.

Start by creating an empty dir. The distribution and the patches are in
the parent dir.

tar zxf ../Radiator-4.5.1.tgz
cd Radiator-4.5.1
tar zxf ../../patches-4.5.1.tar.gz
vi Radiator.spec
cd ..
tar zcf Radiator-4.5.1.tgz Radiator-4.5.1
cp Radiator-4.5.1.tgz Radiator-4.5.1
cd Radiator-4.5.1
vi Makefile.PL   # check $rpmdir
perl Makefile.PL
make test
sudo make rpm

ls -l /usr/src/packages/RPMS/noarch/Radiator 4.5.1-2.noarch.rpm
-rw-r--r-- 1 root root 4906593 Dec 16 17:02
/usr/src/packages/RPMS/noarch/Radiator-4.5.1-2.noarch.rpm

The patches were first applied, the spec file modified and then the .tgz
file was remade from the patched source tree. If this was not done, the
patches were not included in the resulting file.

Since the Release was incremented in the spec file, the package version
ends now with -2.


I also noticed that this results in files ending up under
/usr/lib/perl5. Also /usr/lib/perl5/site_perl//Radius being a symlink
back to itself. Also symlinks ./vendor_perl/Radius and ./Radius and
point to the looping ./site_perl/Radius symlink.

% cd /usr/lib/perl5
% find . -name Radius |xargs ls -ld
lrwxrwxrwx 1 root root   32 Dec 16 17:19 ./Radius ->
/usr/lib/perl5/site_perl//Radius

drwxr-xr-x 4 root root 4096 Dec 16 17:19 ./site_perl/5.10.0/Radius

drwxr-xr-x 2 root root 4096 Dec 16 17:19
./site_perl/5.10.0/i586-linux-thread-multi/auto/Radius

lrwxrwxrwx 1 root root   32 Dec 16 17:19 ./site_perl/Radius ->
/usr/lib/perl5/site_perl//Radius

lrwxrwxrwx 1 root root   32 Dec 16 17:19 ./vendor_perl/Radius ->
/usr/lib/perl5/site_perl//Radius


> On 10 Nov 2009, at 20:55, Alexander Hartmaier wrote:
> 
>> You can build your own rpm using the included spec file pretty easily.
>> Just unpack the tar.gz file, then the patches file and then build your
>> rpm.
>> Don't forget to change the version so you know which patches are already
>> included.
>>
>> --
>> Best regards, Alex
>>
>>
>> Am Dienstag, den 10.11.2009, 10:41 +0100 schrieb Heikki Vatiainen:
>>> Mike McCauley wrote:
>>>
>>>> On Friday 30 October 2009 08:38:36 pm Jérôme Fleury wrote:
>>>
>>>>> Is it me or AuthSQLYUBIKEY.pm is not included in the tarball ??
>>>
>>>> Its not you: it was incorrectly omitted. It is now in the latest patch set.
>>>> Thanks for reporting it.
>>>
>>> Could 4.5.1 be released that includes this and maybe the other Yubikey
>>> related goodies fixes?
>>>
>>> The reason I am asking is that we have a customer that strongly prefers
>>> to use RPM packages and only the released version are currently in RPM
>>> format. The same customer has also shown interest in the Yubikey
>>> authentication.
>>>
>>> Thanks for both of you for finding and fixing this!
>>>
>>> --
>>> Heikki Vatiainen, Arch Red Oy
>>> +358 44 087 6547
>>> _______________________________________________
>>> radiator mailing list
>>> radiator at open.com.au
>>> http://www.open.com.au/mailman/listinfo/radiator
>>
>>
>> *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
>> T-Systems Austria GesmbH   Rennweg 97-99, 1030 Wien
>> Handelsgericht Wien, FN 79340b
>> *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
>> Notice: This e-mail contains information that is confidential and may be privileged.
>> If you are not the intended recipient, please notify the sender and then
>> delete this e-mail immediately.
>> *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
>> _______________________________________________
>> radiator mailing list
>> radiator at open.com.au
>> http://www.open.com.au/mailman/listinfo/radiator
> 
> 
> 
> NB: 
> 
> Have you read the reference manual ("doc/ref.html")?
> Have you searched the mailing list archive (www.open.com.au/archives/radiator)?
> Have you had a quick look on Google (www.google.com)?
> Have you included a copy of your configuration file (no secrets), 
> together with a trace 4 debug showing what is happening?
> Have you checked the RadiusExpert wiki:
> http://www.open.com.au/wiki/index.php/Main_Page
> 


-- 
Heikki Vatiainen, Arch Red Oy
+358 44 087 6547


More information about the radiator mailing list