]> arthur.barton.de Git - homebrew-alex.git/commitdiff
New formula: identd 0.20120228
authorAlexander Barton <alex@barton.de>
Wed, 30 May 2012 11:00:53 +0000 (13:00 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 30 May 2012 11:00:53 +0000 (13:00 +0200)
identd.rb [new file with mode: 0644]

diff --git a/identd.rb b/identd.rb
new file mode 100644 (file)
index 0000000..55ee9b8
--- /dev/null
+++ b/identd.rb
@@ -0,0 +1,44 @@
+require 'formula'
+
+class Identd < Formula
+  url 'http://rc.shaunrowland.com/git/identd.git', :using => :git
+  version '0.20120228'
+  homepage 'http://www.shaunrowland.com/fsync/2011/05/15/identd-for-mac-os-x/'
+
+  def patches
+    # manual page: remove "manual uninstall" description
+    DATA
+  end
+
+  def install
+    inreplace "identd.xcodeproj/project.pbxproj",
+      /CODE_SIGN_IDENTITY = \".*\"/, 'CODE_SIGN_IDENTITY=""'
+    inreplace "identd/identd.8",
+      /\/usr\/local/, "#{HOMEBREW_PREFIX}"
+    system "xcodebuild -target identd -configuration Release"
+    sbin.install('build/Release/identd')
+    man8.install('identd/identd.8')
+  end
+end
+
+__END__
+diff --git a/identd/identd.8 b/identd/identd.8
+index fdd43b0..954e9ee 100644
+--- a/identd/identd.8
++++ b/identd/identd.8
+@@ -32,15 +32,6 @@ if found. This is a basic implementation of an
+ .Nm\r
+ server.\r
+ .Pp\r
+-The\r
+-.Nm\r
+-utility can be uninstalled by unloading the launchd job with:\r
+-.Bd -literal\r
+-sudo launchctl unload /Library/LaunchDaemons/com.shaunrowland.identd.plist\r
+-.Ed\r
+-.Pp\r
+-and removing all of the files in the FILES section below.\r
+-.Pp\r
+ If you create a /usr/local/etc/identd.user file containing a username on a\r
+ single line, that username will be returned if no user would be found otherwise.\r
+ This is useful if you are behind a NAT router that causes the source and\r