diff options
| author | Baptiste Fontaine | 2015-03-28 12:26:31 +0100 |
|---|---|---|
| committer | Brett Koonce | 2015-03-28 23:10:32 -0700 |
| commit | 8007a085cb7e46d6f7b4a1f42f0e638f4bef5c37 (patch) | |
| tree | c2d09ae4a7133d5444f4bb2ae41a91253663bf9f /Library/Formula | |
| parent | 08471c185e347e8d7198cdad333e639ef5ff894e (diff) | |
| download | homebrew-8007a085cb7e46d6f7b4a1f42f0e638f4bef5c37.tar.bz2 | |
uptimed 0.3.18, test added
Closes #38146.
Signed-off-by: Brett Koonce <koonce@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/uptimed.rb | 49 |
1 files changed, 43 insertions, 6 deletions
diff --git a/Library/Formula/uptimed.rb b/Library/Formula/uptimed.rb index 7bb38ea44..de483690a 100644 --- a/Library/Formula/uptimed.rb +++ b/Library/Formula/uptimed.rb @@ -1,11 +1,21 @@ -require 'formula' - class Uptimed < Formula - homepage 'http://podgorny.cz/moin/Uptimed' - url 'http://podgorny.cz/uptimed/releases/uptimed-0.3.12.tar.bz2' - sha1 '753ab59bb99d7b88a35174ce83081ad0bb224e56' + homepage "https://github.com/rpodgorny/uptimed/" + url "https://github.com/rpodgorny/uptimed/archive/v0.3.18.tar.gz" + sha256 "fe9c0c78c8fca1ef9b61474f2039dc3634f2caf1c547b7ddc7a4eaa31238b2c9" + + # these dependencies are only needed for the patch + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build + + # Fixes ./configure error on OS X + # https://github.com/rpodgorny/uptimed/issues/4 + patch :DATA def install + # this is needed for the patch + system "autoreconf", "-fvi" + system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" @@ -13,6 +23,33 @@ class Uptimed < Formula 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" + system "make", "install" + end + + test do + system "#{bin}/uprecords" end end + +__END__ +diff --git a/configure.ac b/configure.ac +index 9f0b9a2..e9e29b6 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -17,7 +17,6 @@ case "$host" in + AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) + AC_OUTPUT([etc/uptimed.service]) + fi +- AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ]) + ;; + *-hpux*) + AC_DEFINE(PLATFORM_HPUX, 1, [Define if you are compiling for HP/UX]) +@@ -54,6 +53,8 @@ case "$host" in + ;; + esac + ++AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ]) ++ + AC_REPLACE_FUNCS(getopt) + AC_CHECK_HEADERS(getopt.h) + AC_CHECK_FUNCS([getdtablesize]) |
