diff options
| author | nibbles 2bits | 2012-10-12 11:03:38 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-10-14 11:48:50 -0700 |
| commit | 099ff7fc1679330b5ab12d60f63ea1a550305a70 (patch) | |
| tree | ec08622a542daa1b327f6091220271102b0d95fb /Library/Formula | |
| parent | 29d847cc09979196e2b6d00a049aa54dc8cf0100 (diff) | |
| download | homebrew-099ff7fc1679330b5ab12d60f63ea1a550305a70.tar.bz2 | |
minbif 1.0.5
- Upgrade to version 1.0.5
- Add an option to build the PAM module
- Add a patch to support PAM on OSX (fixes a missing include)
- Patch reported upstream and noted in comments
- Works well with superenv
Closes #15429.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/minbif.rb | 43 |
1 files changed, 39 insertions, 4 deletions
diff --git a/Library/Formula/minbif.rb b/Library/Formula/minbif.rb index ca7100fd2..47c0c9bd3 100644 --- a/Library/Formula/minbif.rb +++ b/Library/Formula/minbif.rb @@ -4,8 +4,11 @@ require 'formula' class Minbif < Formula homepage 'http://minbif.im/' - url 'http://ftp.de.debian.org/debian/pool/main/m/minbif/minbif_1.0.3.orig.tar.gz' - sha1 'ab4f41c6b3777235d816e619f1770d1f9857f7a8' + url 'http://ftp.de.debian.org/debian/pool/main/m/minbif/minbif_1.0.5+git20120508.orig.tar.gz' + sha1 '5827df8954e29df80d1e81ee5df354b76c5fd86a' + version '1.0.5' + + option 'pam', 'Build with PAM support, patching for OSX PAM headers' depends_on 'cmake' => :build depends_on 'glib' @@ -14,14 +17,31 @@ class Minbif < Formula depends_on 'imlib2' => :optional depends_on 'libcaca' => :optional + # Problem: Apple doesn't have <security/pam_misc.h> so don't ask for it. + # Reported: https://symlink.me/issues/917 + def patches + DATA + end if build.include? 'pam' + def install inreplace "minbif.conf" do |s| s.gsub! "users = /var", "users = #{var}" s.gsub! "motd = /etc", "motd = #{etc}" end - system "make", "PREFIX=#{prefix}" - system "make", "PREFIX=#{prefix}", "install" + args = %W[ + PREFIX=#{prefix} + ENABLE_MINBIF=ON + ENABLE_IMLIB=ON + ENABLE_CACA=ON + ENABLE_PLUGIN=ON + ENABLE_VIDEO=OFF + ENABLE_TLS=ON + ] + args << 'ENABLE_PAM=' + ((build.include? 'pam') ? 'ON' : 'OFF') + + system 'make', *args + system 'make install' (var + "lib/minbif/users").mkpath end @@ -34,3 +54,18 @@ class Minbif < Formula EOS end end + +__END__ +--- a/src/im/auth_pam.h 2012-05-14 02:44:27.000000000 -0700 ++++ b/src/im/auth_pam.h 2012-10-12 10:16:47.000000000 -0700 +@@ -21,7 +21,10 @@ + + #include "auth.h" + #include <security/pam_appl.h> ++ ++#ifndef __APPLE__ + #include <security/pam_misc.h> ++#endif + + struct _pam_conv_func_data { + bool update; |
