Opened 6 years ago

Last modified 6 years ago

#56897 new request

Create a port for cpulimit

Reported by: l-g Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port: cpulimit

Description

It would be nice to have https://github.com/opsengine/cpulimit in MacPorts.

Thank you

Attachments (2)

Portfile (1.1 KB) - added by kencu (Ken) 6 years ago.
patch-ifdefs.diff (635 bytes) - added by kencu (Ken) 6 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 6 years ago by jmroot (Joshua Root)

Type: enhancementrequest

Changed 6 years ago by kencu (Ken)

Attachment: Portfile added

Changed 6 years ago by kencu (Ken)

Attachment: patch-ifdefs.diff added

comment:2 Changed 6 years ago by kencu (Ken)

the uploaded Porfile and patch allow it to build, but on the machine I have at hand, 10.7.5, it crashes in actual use with Segmentation Fault 11.

comment:3 Changed 6 years ago by l-g

I was gonna try it on my machine with the latest version of OS X but even after a selfupdate port can't find it. What do I need to do to be able to install it?

comment:4 Changed 6 years ago by kencu (Ken)

some manual steps, until it's worthy of being in the codebase.

create a folder somewhere like /Users/Shared called sysutils. Inside sysutils, create a folder called cpulimit. Inside cpulimit create a folder called files.

put the patch in files, and the Portfile in cpulimit.

then go in cpulimit, and do this:

sudo port -v install

Cross your fingers, and you should have cpulimit installed on your system as a "local" port.

Last edited 6 years ago by kencu (Ken) (previous) (diff)

comment:5 Changed 6 years ago by l-g

Making any progress on this?

comment:6 Changed 6 years ago by kurthindenburg (Kurt Hindenburg)

Cc: kurthindenburg added

On 10.13 it appears to work fine

Warning: Line 33 has missing newline (at end of file)

comment:7 Changed 6 years ago by kencu (Ken)

good to know. will take another look. Perhaps there is some floor to the system requirements to be discovered here.

Note: See TracTickets for help on using tickets.