homebrew-core/Formula/uptimed.rb

22 lines
614 B
Ruby
Raw Normal View History

2010-12-30 05:48:49 +00:00
require 'formula'
class Uptimed <Formula
url 'http://podgorny.cz/uptimed/releases/uptimed-0.3.12.tar.bz2'
homepage 'http://podgorny.cz/moin/Uptimed'
md5 'c523d6434b672107ea00559bb38eb050'
2011-01-06 19:01:55 +00:00
# Stripping symbols breaks uptimed
skip_clean :all
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