-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/'
+ desc "Simple IDENT daemon"
+ homepage "http://www.shaunrowland.com/fsync/2011/05/15/identd-for-mac-os-x/"
+ url "http://rc.shaunrowland.com/git/identd.git"
+ version "0.20120228"
def patches
# manual page: remove "manual uninstall" description
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')
+ %r{/usr/local}, "#{HOMEBREW_PREFIX}"
+ xcodebuild "SYMROOT=build", "-target", "identd", "-configuration", "Release"
+ sbin.install("build/Release/identd")
+ man8.install("identd/identd.8")
end
end
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
+diff --git a/identd.xcodeproj/project.pbxproj b/identd.xcodeproj/project.pbxproj\r
+index 8339234..1fef724 100644\r
+--- a/identd.xcodeproj/project.pbxproj\r
++++ b/identd.xcodeproj/project.pbxproj\r
+@@ -190,7 +190,6 @@\r
+ MACOSX_DEPLOYMENT_TARGET = 10.6;\r
+ ONLY_ACTIVE_ARCH = YES;\r
+ PROVISIONING_PROFILE = "";\r
+- SDKROOT = macosx10.7;\r
+ };\r
+ name = Debug;\r
+ };\r
+@@ -207,7 +206,6 @@\r
+ MACOSX_DEPLOYMENT_TARGET = 10.6;\r
+ ONLY_ACTIVE_ARCH = NO;\r
+ PROVISIONING_PROFILE = "";\r
+- SDKROOT = macosx10.7;\r
+ };\r
+ name = Release;\r
+ };\r
+@@ -225,7 +223,6 @@\r
+ INSTALL_PATH = /usr/local/sbin;\r
+ PRODUCT_NAME = "$(TARGET_NAME)";\r
+ PROVISIONING_PROFILE = "";\r
+- SDKROOT = macosx10.7;\r
+ };\r
+ name = Debug;\r
+ };\r
+@@ -246,7 +243,6 @@\r
+ ONLY_ACTIVE_ARCH = NO;\r
+ PRODUCT_NAME = "$(TARGET_NAME)";\r
+ PROVISIONING_PROFILE = "";\r
+- SDKROOT = macosx10.7;\r
+ };\r
+ name = Release;\r
+ };\r