You need to add several correction:
1.tacacs.spec: --with-tacplus_pid=%{l_prefix}/var/tacacs/tac_plus.pid -> 
--with-tacplus_pid=%{l_prefix}/var/tacacs/
Tacacs+ create PID file depend on listening port, so it don't wont to know full 
path

2. rc.tacacs: add tacacs_cfgfile="@l_prefix@/etc/tacacs/tacacs.conf" to %common 
section
Tacacs+ need config file throuth -C command line parameter

3. rc.tacacs: @l_prefix@/sbin/tac_plus -> @l_prefix@/bin/tac_plus -C 
$tacacs_cfgfile
Install copied  tac_plus into bin not sbin

4. i cant stop tacacs using "openpkg rc tacacs stop", i'm doesn't enough about OpenPKG internals so i simple comment some lines in rc.tacacs

%stop -p 700 -u root
    rcService tacacs enable yes || exit 0
#    rcService tacacs active no  && exit 0
    [ -f $tacacs_pidfile ] && kill -TERM `cat $tacacs_pidfile`
#    tacacs_signal TERM
    sleep 2
#    rm -f $tacacs_pidfile >/dev/null 2>&1 || true


Ralf S. Engelschall wrote:
> On Wed, May 30, 2007, Victor G. Bolshakov wrote:
>
>>  in my last message i put wrong lines from spec...
>>
>>  main problem that content of install-sh only
>>
>>  #!/bin/sh
>
> Hell, you're right. The upstream authors just placed a dummy script
> there. Grrr.. ok, please retry again, I've tried to circumvent the
> problem now with our lovely GNU shtool...
______________________________________________________________________
OpenPKG                                             http://openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to