Mantis - freeradius
Viewing Issue Advanced Details
1832 regular use major always 2006-09-27 12:12 2012-06-19 10:31
james  
dam  
normal  
closed  
fixed  
none    
none  
0001832: Error in init.d naming
The postinstall does the following:
    #pre Solaris 10. We install the init file.
    cp /opt/csw/sbin/rc.radiusd /etc/init.d
    rm /etc/rc0.d/K11cswfreeradius
    rm /etc/rc1.d/K11cswfreeradius
    rm /etc/rc2.d/K11cswfreeradius
    rm /etc/rcS.d/K11cswfreeradius
    rm /etc/rc3.d/S51cswfreeradius
    ln -s /etc/init.d/radiusd /etc/rc0.d/K11cswfreeradius
    ln -s /etc/init.d/radiusd /etc/rc1.d/K11cswfreeradius
    ln -s /etc/init.d/radiusd /etc/rc2.d/K11cswfreeradius
    ln -s /etc/init.d/radiusd /etc/rcS.d/K11cswfreeradius
    ln -s /etc/init.d/radiusd /etc/rc3.d/S51cswfreeradius

The file in init.d should have prefix \"csw\".

But it fails because the copied file does not have the name being linked, (radiusd vs rc.radiusd).


Suggest a rewrite anyway there are neater ways to do this, see some examples in other packages that use classes to install the appropriate init system based on OS rev.
Issue History
2010-12-07 20:31 gadavis Relationship added has duplicate 0002061
2010-12-07 20:32 gadavis Relationship deleted has duplicate 0002061
2010-12-07 21:05 gadavis Status new => assigned
2010-12-07 21:05 gadavis Assigned To => gadavis
2010-12-07 21:06 gadavis Note Added: 0008536
2010-12-08 00:36 gadavis Status assigned => confirmed
2010-12-14 06:03 gadavis Note Added: 0008564
2010-12-14 06:03 gadavis Status confirmed => feedback
2012-06-19 10:30 dam Status feedback => assigned
2012-06-19 10:30 dam Assigned To gadavis => dam
2012-06-19 10:31 dam Note Added: 0009966
2012-06-19 10:31 dam Status assigned => closed
2012-06-19 10:31 dam Resolution open => fixed

Notes
(0004001)
james   
2006-09-27 12:14   
Note latest version, from http://www.freeradius.org/, [^] News:
22 August, 2006 Version 1.1.3 has been released.
(0004002)
james   
2006-09-27 12:32   
Also, pkgrm does not remove these files. When they are part of the package the new package nends a preinstall to clean up the previous package\'s remnants.
(0004227)
james   
2006-12-17 14:29   
Still outstanding, hence still excluded from stable.
(0008536)
gadavis   
2010-12-07 21:06   
I'm in the process of modernizing this package, which should take care of the poorly named init scripts. It will use the cswinitsmf class.
(0008564)
gadavis   
2010-12-14 06:03   
Hopefully this bug has been addressed by my build of 2.1.10. I am now using the CSWclassutils stuff in GAR and is being copied into /etc/opt/csw/init.d/cswfreeradius per other packages.
(0009966)
dam   
2012-06-19 10:31   
This should be fixed in 2.1.12,REV=2012.05.02 which has been released to unstable/.