Skip to content

Instantly share code, notes, and snippets.

@amagura
Created January 20, 2015 04:56
Show Gist options
  • Save amagura/847a6e03c4000786f696 to your computer and use it in GitHub Desktop.
Save amagura/847a6e03c4000786f696 to your computer and use it in GitHub Desktop.
Screen (latest version) - Homebrew
require 'formula'
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook
# /usr/local/Library/Contributions/example-formula.rb
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class ScreenLatest < Formula
homepage 'http://www.gnu.org/software/screen'
url 'http://ftp.de.debian.org/debian/pool/main/s/screen/screen_4.1.0~20120320gitdb59704.orig.tar.gz'
sha1 '88e2f81c08326d4c435c59e7261739abca755c87'
depends_on :automake
def patches
[
DATA
]
end
def install
ENV.deparallelize
system "sh autogen.sh"
system "./configure", "--mandir=#{man}",
"--infodir=#{info}",
"--enable-colors256",
"--prefix=#{prefix}"
system "make"
system "make install"
end
def test
system "#{bin}/screen --version"
end
end
__END__
--- src/acconfig.h 2011-10-04 16:32:21.000000000 -0600
+++ src/acconfig.h.new 2013-11-11 14:20:44.000000000 -0700
@@ -191,14 +191,14 @@
* If screen is installed with permissions to update /etc/utmp (such
* as if it is installed set-uid root), define UTMPOK.
*/
-#define UTMPOK
+#undef UTMPOK
/* Set LOGINDEFAULT to one (1)
* if you want entries added to /etc/utmp by default, else set it to
* zero (0).
* LOGINDEFAULT will be one (1) whenever LOGOUTOK is undefined!
*/
-#define LOGINDEFAULT 1
+#undef LOGINDEFAULT
/* Set LOGOUTOK to one (1)
* if you want the user to be able to log her/his windows out.
@@ -214,7 +214,7 @@
* Set CAREFULUTMP to one (1) if you want that users have at least one
* window per screen session logged in.
*/
-#define LOGOUTOK 1
+#undef LOGOUTOK
#undef CAREFULUTMP
@amagura
Copy link
Author

amagura commented Jan 20, 2015

brew install ./screen-latest.rb to install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment