Skip to content
Browse files

add initial .gitignore and add rsync

  • Loading branch information...
1 parent d5a9359 commit 2381551f1878b9b3e3866b1d593cda3ab5785683 @joshwilsdon joshwilsdon committed Dec 8, 2010
Showing with 200 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −1 Makefile
  3. +64 −0 rsync/Makefile
  4. +63 −0 rsync/install-sfw
  5. +27 −0 rsync/mapfile_noexstk
  6. BIN rsync/rsync-3.0.6.tar.gz
  7. +14 −0 rsync/rsync.1.diff
  8. +30 −0 rsync/sunman-stability
View
1 .gitignore
@@ -0,0 +1 @@
+proto
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 vim
+SUBDIRS= bash bzip2 curl gzip libexpat libm libxml libz ncurses node.js nss-nspr openssl rsync vim
-include Makefile.inc
View
64 rsync/Makefile
@@ -0,0 +1,64 @@
+#
+# 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=rsync-3.0.6
+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 \
+ CC=$(CC) \
+ LD_OPTIONS="-M $(BASE)/mapfile_noexstk -L/usr/sfw/lib -R/usr/sfw/lib" \
+ PATH=$(PATH) \
+ MAKE=$(CCSMAKE) $(CCSMAKE))
+ @find . -name core -exec rm -f {} \;
+
+install: all
+ VERDIR=$(VER) $(SH) ./install-sfw
+
+$(VER)/config.status: $(VER)/configure
+ (cd $(VER); env \
+ CC=$(CC) \
+ "CFLAGS=$(CFLAGS)" \
+ "LD_OPTIONS=-L/usr/sfw/lib -R/usr/sfw/lib" \
+ PATH=$(PATH) \
+ MAKE=$(CCSMAKE) \
+ ./configure --prefix=/usr --with-included-popt )
+
+$(VER)/configure: $(VER).tar.gz
+ $(GTAR) zxpf $(VER).tar.gz --no-same-owner
+ patch $(VER)/rsync.1 < rsync.1.diff
+ touch $(VER)/configure
+ find $(VER) -type d -exec /usr/bin/chmod 755 "{}" \;
+ find $(VER) -type f -exec /usr/bin/chmod ugo+r "{}" \;
+
+clean:
+ -rm -rf $(VER)
+
+FRC:
View
63 rsync/install-sfw
@@ -0,0 +1,63 @@
+#!/bin/sh -e
+#
+# 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 2009 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# Copyright (c) 2010 Joyent Inc.
+#
+# install objects in the proto area, since it would
+# really like to install locally, but that doesn't scale.
+#
+
+#pragma ident "@(#)install-sfw 1.3 09/09/18 SMI"
+
+PREFIX=${DESTDIR}/usr
+BINDIR=${PREFIX}/bin
+SHAREDIR=${PREFIX}/share
+INFODIR=${PREFIX}/share/info
+LIBDIR=${PREFIX}/lib
+LOCALEDIR=${LIBDIR}/locale
+MAN1DIR=${SHAREDIR}/man/man1
+MAN5DIR=${SHAREDIR}/man/man5
+
+source ../install.subr
+cd $VERDIR
+
+mkdir -m 755 -p ${BINDIR}
+mkdir -m 755 -p ${LIBDIR}
+mkdir -m 755 -p ${MAN1DIR}
+mkdir -m 755 -p ${MAN5DIR}
+
+# Binaries
+_install E rsync ${BINDIR}/rsync 555
+
+# Man Pages
+# The MAN pages are updated to indicate Interface Stability in an ATTIRBUTES
+# section, and also indicate where the source code is available
+
+MANSCRIPT=../sunman-stability
+
+_install M rsync.1 ${MAN1DIR}/rsync.1 444
+_install M rsyncd.conf.5 ${MAN5DIR}/rsyncd.conf.5 444
+
+exit 0
View
27 rsync/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
BIN rsync/rsync-3.0.6.tar.gz
Binary file not shown.
View
14 rsync/rsync.1.diff
@@ -0,0 +1,14 @@
+--- rsync.1 Thu Sep 17 01:30:37 2009
++++ rsync.1.new Thu Sep 17 01:32:44 2009
+@@ -1213,9 +1213,8 @@
+ up less space on the destination. Conflicts with \fB\-\-inplace\fP because it's
+ not possible to overwrite data in a sparse fashion.
+ .IP
+-NOTE: Don't use this option when the destination is a Solaris \(lqtmpfs\(rq
+-filesystem. It doesn't seem to handle seeks over null regions
+-correctly and ends up corrupting the files.
++NOTE: This option has no effect if the destination is a Solaris "tmpfs"
++filesystem. The files won't be sparse\&.
+ .IP
+ .IP "\fB\-n, \-\-dry\-run\fP"
+ This makes rsync perform a trial run that doesn't
View
30 rsync/sunman-stability
@@ -0,0 +1,30 @@
+1i\
+'\\" t\
+\.\\"\
+\.\\" Modified for Solaris to to add the Solaris stability classification,\
+\.\\" and to add a note about source availability.\
+\.\\"\
+$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 network/rsync\
+=\
+Interface Stability Volatile\
+.TE \
+.PP\
+.SH NOTES\
+Source for rsync is available on http://opensolaris.org.\
+WARNING: Daemon mode does not participate in the core \
+Solaris security policies, including Authentication, limit \
+of privileges, Audit and Audit of any subprocessing. \
+\.\\" End Sun update

0 comments on commit 2381551

Please sign in to comment.
Something went wrong with that request. Please try again.