Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
def3d8e7
Commit
def3d8e7
authored
Mar 25, 2018
by
Ed Reel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add nmon package
parent
1cb0abe9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
packages/nmon.rb
packages/nmon.rb
+27
-0
No files found.
packages/nmon.rb
0 → 100644
View file @
def3d8e7
require
'package'
class
Nmon
<
Package
description
"nmon is short for Nigel's performance MONitor for Linux"
homepage
'http://nmon.sourceforge.net/pmwiki.php'
version
'16g'
source_url
'http://downloads.sourceforge.net/project/nmon/lmon16g.c'
source_sha256
'da82dd693b503b062854dfe7dbb5d36b347872ab44a4aa05b97e9d577747f688'
binary_url
({
})
binary_sha256
({
})
depends_on
'ncurses'
def
self
.
build
system
'wget http://downloads.sourceforge.net/project/nmon/lmon16g.c'
abort
'Checksum mismatch. :/ Try again.'
.
lightred
unless
Digest
::
SHA256
.
hexdigest
(
File
.
read
(
'lmon16g.c'
)
)
==
'da82dd693b503b062854dfe7dbb5d36b347872ab44a4aa05b97e9d577747f688'
system
"sed -i 's,<ncurses.h>,<
#{
CREW_PREFIX
}
/include/ncurses/ncurses.h>,' lmon16g.c"
system
'cc -o nmon lmon16g.c -g -O3 -Wall -D JFS -D GETUSER -D LARGEMEM -lncurses -lm -g -D POWER'
end
def
self
.
install
system
"install -Dm755 nmon
#{
CREW_DEST_PREFIX
}
/bin/nmon"
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment