Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit d11214c554600994c5a7ac20bdbbbdf6bc651c1b 1 parent 01a45cd
2bits authored

Showing 1 changed file with 39 additions and 4 deletions. Show diff stats Hide diff stats

  1. +39 4 Library/Formula/minbif.rb
43 Library/Formula/minbif.rb
@@ -4,8 +4,11 @@
4 4
5 5 class Minbif < Formula
6 6 homepage 'http://minbif.im/'
7   - url 'http://ftp.de.debian.org/debian/pool/main/m/minbif/minbif_1.0.3.orig.tar.gz'
8   - sha1 'ab4f41c6b3777235d816e619f1770d1f9857f7a8'
  7 + url 'http://ftp.de.debian.org/debian/pool/main/m/minbif/minbif_1.0.5+git20120508.orig.tar.gz'
  8 + sha1 '5827df8954e29df80d1e81ee5df354b76c5fd86a'
  9 + version '1.0.5'
  10 +
  11 + option 'pam', 'Build with PAM support, patching for OSX PAM headers'
9 12
10 13 depends_on 'cmake' => :build
11 14 depends_on 'glib'
@@ -14,14 +17,31 @@ class Minbif < Formula
14 17 depends_on 'imlib2' => :optional
15 18 depends_on 'libcaca' => :optional
16 19
  20 + # Problem: Apple doesn't have <security/pam_misc.h> so don't ask for it.
  21 + # Reported: https://symlink.me/issues/917
  22 + def patches
  23 + DATA
  24 + end if build.include? 'pam'
  25 +
17 26 def install
18 27 inreplace "minbif.conf" do |s|
19 28 s.gsub! "users = /var", "users = #{var}"
20 29 s.gsub! "motd = /etc", "motd = #{etc}"
21 30 end
22 31
23   - system "make", "PREFIX=#{prefix}"
24   - system "make", "PREFIX=#{prefix}", "install"
  32 + args = %W[
  33 + PREFIX=#{prefix}
  34 + ENABLE_MINBIF=ON
  35 + ENABLE_IMLIB=ON
  36 + ENABLE_CACA=ON
  37 + ENABLE_PLUGIN=ON
  38 + ENABLE_VIDEO=OFF
  39 + ENABLE_TLS=ON
  40 + ]
  41 + args << 'ENABLE_PAM=' + ((build.include? 'pam') ? 'ON' : 'OFF')
  42 +
  43 + system 'make', *args
  44 + system 'make install'
25 45
26 46 (var + "lib/minbif/users").mkpath
27 47 end
@@ -34,3 +54,18 @@ def caveats; <<-EOS.undent
34 54 EOS
35 55 end
36 56 end
  57 +
  58 +__END__
  59 +--- a/src/im/auth_pam.h 2012-05-14 02:44:27.000000000 -0700
  60 ++++ b/src/im/auth_pam.h 2012-10-12 10:16:47.000000000 -0700
  61 +@@ -21,7 +21,10 @@
  62 +
  63 + #include "auth.h"
  64 + #include <security/pam_appl.h>
  65 ++
  66 ++#ifndef __APPLE__
  67 + #include <security/pam_misc.h>
  68 ++#endif
  69 +
  70 + struct _pam_conv_func_data {
  71 + bool update;

0 comments on commit d11214c

Please sign in to comment.
Something went wrong with that request. Please try again.