New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #28356 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

eggdrop: minimize use of "system"

Reported by: ryandesign@… Owned by: dre@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: blackfrog1@…
Port: eggdrop

Description

The eggdrop portfile includes this line:

post-destroot	{ system "cd ${destroot}${prefix}/bin/ && rm ../share/eggdrop/eggdrop && ln -s ../share/eggdrop/eggdrop-${version} eggdrop && mv ../share/eggdrop/eggdrop.conf ../share/eggdrop/eggdrop.conf.sample && mv ../share/eggdrop/doc/man1/eggdrop.1 ../share/man/man1"

All of this can be done with native Tcl commands, which is preferable to using "system".

Attachments

Portfile-eggdrop.diff (960 bytes) - added by blackfrog1@… 2 years ago.
system command converted into tcl extension

Change History

comment:1 Changed 2 years ago by blackfrog1@…

  • Cc blackfrog1@… added

Cc Me!

comment:2 Changed 2 years ago by blackfrog1@…

I took each of the system command and converted them into the Tcl Extension. See attached port patch diff.

Changed 2 years ago by blackfrog1@…

system command converted into tcl extension

comment:3 Changed 2 years ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to fixed

Thanks, r77379 (maintainer timeout).

Note: See TracTickets for help on using tickets.