]> arthur.barton.de Git - homebrew-alex.git/blob - identd.rb
Add LICENSE file via addalicense.com
[homebrew-alex.git] / identd.rb
1 require 'formula'
2
3 class Identd < Formula
4   url 'http://rc.shaunrowland.com/git/identd.git', :using => :git
5   version '0.20120228'
6   homepage 'http://www.shaunrowland.com/fsync/2011/05/15/identd-for-mac-os-x/'
7
8   def patches
9     # manual page: remove "manual uninstall" description
10     DATA
11   end
12
13   def install
14     inreplace "identd.xcodeproj/project.pbxproj",
15       /CODE_SIGN_IDENTITY = \".*\"/, 'CODE_SIGN_IDENTITY=""'
16     inreplace "identd/identd.8",
17       /\/usr\/local/, "#{HOMEBREW_PREFIX}"
18     system "xcodebuild -target identd -configuration Release"
19     sbin.install('build/Release/identd')
20     man8.install('identd/identd.8')
21   end
22 end
23
24 __END__
25 diff --git a/identd/identd.8 b/identd/identd.8
26 index fdd43b0..954e9ee 100644
27 --- a/identd/identd.8
28 +++ b/identd/identd.8
29 @@ -32,15 +32,6 @@ if found. This is a basic implementation of an
30  .Nm\r
31  server.\r
32  .Pp\r
33 -The\r
34 -.Nm\r
35 -utility can be uninstalled by unloading the launchd job with:\r
36 -.Bd -literal\r
37 -sudo launchctl unload /Library/LaunchDaemons/com.shaunrowland.identd.plist\r
38 -.Ed\r
39 -.Pp\r
40 -and removing all of the files in the FILES section below.\r
41 -.Pp\r
42  If you create a /usr/local/etc/identd.user file containing a username on a\r
43  single line, that username will be returned if no user would be found otherwise.\r
44  This is useful if you are behind a NAT router that causes the source and\r