Permalink
Browse files

add screen

  • Loading branch information...
1 parent ae862a1 commit c8877213b4127b542a4c0a3b8f0ef1899c88f3c5 @JohnSonnenschein JohnSonnenschein committed Feb 25, 2011
Showing with 69 additions and 1 deletion.
  1. +1 −1 Makefile
  2. +56 −0 screen/Makefile
  3. +12 −0 screen/Patches/misc.c.patch
  4. BIN screen/screen-4.0.3.tar.gz
View
@@ -26,7 +26,7 @@
PATH=/sbin:/usr/sbin:/usr/bin:/opt/SUNWspro/bin:/opt/local/bin
BASE=$(PWD)
DESTDIR=$(BASE)/proto
-SUBDIRS= bash bzip2 curl gcc gtar gzip less libexpat libm libxml libz ncurses node.js nss-nspr ntp openssl rsync vim wget
+SUBDIRS= bash bzip2 curl gcc gtar gzip less libexpat libm libxml libz ncurses node.js nss-nspr ntp openssl rsync screen vim wget
-include Makefile.inc
View
@@ -0,0 +1,56 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License, Version 1.0 only
+# (the "License"). You may not use this file except in compliance
+# with the License.
+#
+# You can obtain a copy of the license at COPYING
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at COPYING.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2010 Joyent Inc.
+#
+
+VER=screen-4.0.3
+BASE=$(PWD)
+DESTDIR=$(BASE)/../proto
+CC=gcc
+GTAR=/usr/bin/gtar
+SH=ksh93
+
+#-include ../Makefile.inc
+
+all: $(VER)/config.status
+ (cd $(VER); env - $(MAKE) all)
+
+install: all
+ mkdir -p $(DESTDIR)/usr/bin
+ ginstall -m 0555 $(BASE)/$(VER)/screen $(DESTDIR)/usr/bin/screen
+
+$(VER)/config.status: $(VER)/configure
+ (cd $(VER); env \
+ CC=$(CC) \
+ "CFLAGS=$(CFLAGS)" \
+ PATH=$(PATH) \
+ MAKE=$(MAKE) \
+ ./configure --prefix=/usr)
+
+$(VER)/configure: $(VER).tar.gz
+ $(GTAR) zxpf $(VER).tar.gz
+ gpatch -p0 < Patches/misc.c.patch
+ touch $(VER)/configure
+
+clean:
+ -rm -rf $(VER)
+
+FRC:
@@ -0,0 +1,12 @@
+--- screen-4.0.3/misc.c 2003-12-05 19:15:41.000000000 +0530
++++ screen-4.0.3/misc.c 2006-04-03 16:46:19.150133000 +0530
+@@ -613,7 +613,7 @@
+ */
+ # endif /* NEEDSETENV */
+ #else /* USESETENV */
+-# if defined(linux) || defined(__convex__) || (BSD >= 199103)
++# if defined(linux) || defined(__convex__) || (BSD >= 199103) || (__sun)
+ setenv(var, value, 1);
+ # else
+ setenv(var, value);
+
View
Binary file not shown.

0 comments on commit c887721

Please sign in to comment.