Add a formula for pgrep/pfind/pkill.

master
Geoff Cant 2009-09-07 18:42:51 +02:00 committed by Max Howell
parent b6bc632994
commit 8eac9ca16f
1 changed files with 29 additions and 0 deletions

29
Formula/proctools.rb Normal file
View File

@ -0,0 +1,29 @@
require 'brewkit'
class Proctools <Formula
@version='0.4pre1'
@url='http://downloads.sourceforge.net/project/proctools/proctools/0.4pre1/proctools-0.4pre1.tar.gz'
@homepage='http://sourceforge.net/projects/proctools'
@md5='714e4350749c680a7806635632d524b1'
def patches
{ :p0 => ["patch-pfind-Makefile.diff",
"patch-pfind-pfind.c.diff",
"patch-pgrep-Makefile.diff",
"patch-pkill-Makefile.diff",
"patch-proctools-fmt.c.diff",
"patch-proctools-proctools.c.diff",
"patch-proctools-proctools.h.diff",
].map { |file_name| "http://svn.macports.org/repository/macports/trunk/dports/sysutils/proctools/files/#{file_name}" }
}
end
def install
system "bsdmake"
["pgrep/pgrep", "pkill/pkill", "pfind/pfind"].each do |prog|
bin.install prog
man1.install prog + ".1"
end
end
end