2010-12-30 05:48:49 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Uptimed < Formula
|
2010-12-30 05:48:49 +00:00
|
|
|
homepage 'http://podgorny.cz/moin/Uptimed'
|
2013-01-27 23:42:13 +00:00
|
|
|
url 'http://podgorny.cz/uptimed/releases/uptimed-0.3.12.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '753ab59bb99d7b88a35174ce83081ad0bb224e56'
|
2010-12-30 05:48:49 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
|
|
|
|
# Per MacPorts
|
|
|
|
inreplace "Makefile", "/var/spool/uptimed", "#{var}/uptimed"
|
|
|
|
inreplace "libuptimed/urec.h", "/var/spool", var
|
|
|
|
inreplace "etc/uptimed.conf-dist", "/var/run", "#{var}/uptimed"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|