Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add intial scripts for building wget.

  • Loading branch information...
commit 475e1ab1fbbd61e2bd75357a54e41f759f633396 1 parent 0d52659
@joshwilsdon joshwilsdon authored
View
1  .gitignore
@@ -24,3 +24,4 @@
/openssl/openssl-0.9.8o
/rsync/rsync-3.0.6
/vim/vim72
+/wget/wget-1.12
View
2  Makefile
@@ -26,7 +26,7 @@
PATH=/sbin:/usr/sbin:/usr/bin:/opt/SUNWspro/bin
BASE=$(PWD)
DESTDIR=$(BASE)/proto
-SUBDIRS= bash bzip2 curl gzip libexpat libm libxml libz ncurses node.js nss-nspr openssl rsync vim
+SUBDIRS= bash bzip2 curl gzip libexpat libm libxml libz ncurses node.js nss-nspr openssl rsync vim wget
-include Makefile.inc
View
63 wget/Makefile
@@ -0,0 +1,63 @@
+#
+# 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=wget-1.12
+BASE=$(PWD)
+DESTDIR=$(BASE)/../proto
+CCSMAKE=/usr/ccs/bin/make
+CC=cc
+GTAR=/usr/bin/gtar
+SH=ksh93
+
+-include ../Makefile.inc
+
+all: $(VER)/config.status
+ (cd $(VER); env - $(CCSMAKE) all)
+
+install: all
+ mkdir -p $(DESTDIR)/usr/bin
+ ginstall -m 0555 $(BASE)/$(VER)/src/wget $(DESTDIR)/usr/bin/wget
+ mkdir -p $(DESTDIR)/usr/share/man/man1
+ ginstall -m 0444 $(BASE)/$(VER)/doc/wget.1 $(DESTDIR)/usr/share/man/man1
+
+$(VER)/config.status: $(VER)/configure
+ (cd $(VER); env \
+ CC=$(CC) \
+ "CFLAGS=$(CFLAGS)" \
+ "LD_OPTIONS=-L$(ROOT)/mapfile_noexstk" \
+ PERL=/usr/perl5/bin/perl \
+ PATH=$(PATH) \
+ MAKE=$(CCSMAKE) \
+ ./configure --prefix=/usr --sysconfdir=/etc --with-ssl --infodir=/usr/share/info)
+
+$(VER)/configure: $(VER).tar.bz2
+ $(GTAR) jxpf $(VER).tar.bz2 --no-same-owner
+ gpatch -p0 < Patches/no_charset_alias.patch
+ gpatch -p0 < Patches/sysdep.h.patch
+ gpatch -p0 < Patches/wgetrc.patch
+ touch $(VER)/configure
+
+clean:
+ -rm -rf $(VER)
+
+FRC:
View
11 wget/Patches/no_charset_alias.patch
@@ -0,0 +1,11 @@
+--- wget-1.12/lib/Makefile.in.orig Tue Sep 22 09:40:11 2009
++++ wget-1.12/lib/Makefile.in Thu Oct 1 07:40:52 2009
+@@ -1137,6 +1137,8 @@
+ need_charset_alias=true ;; \
+ darwin* | cygwin* | mingw* | pw32* | cegcc*) \
+ need_charset_alias=false ;; \
++ solaris*) \
++ need_charset_alias=false ;; \
+ *) \
+ need_charset_alias=true ;; \
+ esac ; \
View
16 wget/Patches/sysdep.h.patch
@@ -0,0 +1,16 @@
+--- wget-1.12/src/sysdep.h.orig Fri Sep 4 09:31:54 2009
++++ wget-1.12/src/sysdep.h Fri Oct 2 03:03:22 2009
+@@ -67,8 +67,13 @@
+
+ #ifdef NAMESPACE_TWEAKS
+
++#if __STDC_VERSION__ >= 199901L
++/* Single UNIX Specification, Version 3 */
++#define _XOPEN_SOURCE 600
++#else
+ /* Request the "Unix 98 compilation environment". */
+ #define _XOPEN_SOURCE 500
++#endif
+
+ /* For Solaris: request everything else that is available and doesn't
+ conflict with the above. */
View
20 wget/Patches/wgetrc.patch
@@ -0,0 +1,20 @@
+--- wget-1.12/doc/sample.wgetrc.orig Mon Sep 21 19:53:58 2009
++++ wget-1.12/doc/sample.wgetrc Wed Sep 30 07:42:08 2009
+@@ -7,7 +7,7 @@
+ ## not contain a comprehensive list of commands -- look at the manual
+ ## to find out what you can put into this file.
+ ##
+-## Wget initialization file can reside in /usr/local/etc/wgetrc
++## Wget initialization file can reside in /etc/wgetrc
+ ## (global, for all users) or $HOME/.wgetrc (for a single user).
+ ##
+ ## To use the settings in this file, you will have to uncomment them,
+@@ -16,7 +16,7 @@
+
+
+ ##
+-## Global settings (useful for setting up in /usr/local/etc/wgetrc).
++## Global settings (useful for setting up in /etc/wgetrc).
+ ## Think well before you change them, since they may reduce wget's
+ ## functionality, and make it behave contrary to the documentation:
+ ##
View
27 wget/mapfile_noexstk
@@ -0,0 +1,27 @@
+#
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# 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 usr/src/OPENSOLARIS.LICENSE.
+# 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) 2001 by Sun Microsystems, Inc.
+# All rights reserved.
+#
+#pragma ident "@(#)mapfile_noexstk 1.3 06/03/18 SMI"
+#
+stack = STACK ?RW;
View
31 wget/sunman-stability
@@ -0,0 +1,31 @@
+1i\
+'\\" t\
+\.\\"\
+\.\\" Modified for Solaris to to add the Solaris stability classification,\
+\.\\" to indicate wgetrc resides /etc instead of /usr/local/etc\
+\.\\" and to add a note about source availability (jan@eng.sun.com).\
+\.\\"\
+s/\\fI\/usr\/local\/etc\/wgetrc\\fR/\\fI\/etc\/wgetrc\\fR/
+s/\\fB\/usr\/local\/etc\/wgetrc\\fR/\\fB\/etc\/wgetrc\\fR/
+
+$a\
+\.\\" Begin Sun update\
+.SH ATTRIBUTES\
+See\
+.BR attributes (5)\
+for descriptions of the following attributes:\
+.sp\
+.TS\
+box;\
+cbp-1 | cbp-1\
+l | l .\
+ATTRIBUTE TYPE ATTRIBUTE VALUE\
+=\
+Availability web/wget\
+=\
+Interface Stability External\
+.TE \
+.PP\
+.SH NOTES\
+Source for wget is available on http://opensolaris.org.\
+\.\\" End Sun update
View
BIN  wget/wget-1.12.tar.bz2
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.