[csw-devel] SF.net SVN: gar:[11506] csw/mgar/pkg/gtar

theferret at users.sourceforge.net theferret at users.sourceforge.net
Fri Nov 5 18:18:34 CET 2010


Revision: 11506
          http://gar.svn.sourceforge.net/gar/?rev=11506&view=rev
Author:   theferret
Date:     2010-11-05 17:18:34 +0000 (Fri, 05 Nov 2010)

Log Message:
-----------
gtar new branch, implementing takeover that Ben suggested I do.

Added Paths:
-----------
    csw/mgar/pkg/gtar/branch-c/
    csw/mgar/pkg/gtar/branch-c/Makefile
    csw/mgar/pkg/gtar/branch-c/README.CSW
    csw/mgar/pkg/gtar/branch-c/copyright
    csw/mgar/pkg/gtar/branch-c/cswreleasemgr
    csw/mgar/pkg/gtar/branch-c/depend
    csw/mgar/pkg/gtar/branch-c/pkginfo
    csw/mgar/pkg/gtar/branch-c/prototype

Added: csw/mgar/pkg/gtar/branch-c/Makefile
===================================================================
--- csw/mgar/pkg/gtar/branch-c/Makefile	                        (rev 0)
+++ csw/mgar/pkg/gtar/branch-c/Makefile	2010-11-05 17:18:34 UTC (rev 11506)
@@ -0,0 +1,170 @@
+# This file is from TEMPLATES/createpkg/Makefile.lib32
+# You MUST build this with gnu make, unfortunately.
+# Mainly just because of the ARCH expansion, but also for "?="
+
+# Customize your prototype file(s) as needed
+
+# Organization: variable defintions up top,
+# targets in second half.
+# Note that assignments with "?=" mean "assign if not already assigned.
+
+# Where do we keep local downloads of software src files
+ARCHIVEDIR ?= /home/src
+ARCHIVENAME ?= tar-1.24.tar.gz
+EXTRACTPROG ?= /usr/sfw/bin/gtar zfx
+
+# Only use ONE here. The name is used for compat with 'gar'.
+MASTER_SITES ?= http://www.gnu.org/software/tar/
+
+ARCH := $(shell /bin/uname -p)
+
+LDFLAGS_COMMON :=
+
+SRCDIR= build/*
+
+# DO NOT specify the arch-64 stuff such as -m64 here.
+# the individual targets will do that.
+
+CFLAGS_COMMON   ?= -mt -xnorunpath -xO2
+CXXFLAGS_COMMON ?= -mt -norunpath  -xO2
+CFLAGS_sparc    ?= -xarch=v8
+CFLAGS_i386     ?= -xarch=386
+
+# Keep this arch-neutral if possible. add arch-specific tweaks
+# to arch-specific target
+CONFIGURE=./configure --prefix=/opt/csw --program-prefix=g --with-rmt=/opt/csw/libexec/grmt
+
+
+
+CREATEPKG=createpkg -r `pwd`/build/*/cswstage
+
+
+all:	$(ARCH)-32
+#all:	$(ARCH)-32 package
+
+# ARCH-XX handles configure, build, and stage for its own combo
+# 
+
+EXTRACTPROG ?= /bin/echo ERROR: need to set EXTRACTPROG ; exit 1 ;
+
+
+
+extract:	build/.extract.done
+
+build/.extract.done:
+	test -d build || mkdir build
+	@if test -f  $(ARCHIVEDIR)/$(ARCHIVENAME) ; then \
+		echo Extracting $(ARCHIVENAME) under build dir... ;\
+		( cd build && $(EXTRACTPROG) $(ARCHIVEDIR)/$(ARCHIVENAME) ) ; \
+	else echo Cannot extract - $(ARCHIVEDIR)/$(ARCHIVENAME) does not exist ;\
+		exit 1; \
+	fi
+	touch build/.extract.done
+	
+
+clean distclean:
+	@echo Calling $@ in $(SRCDIR)
+	$(MAKE) -C $(SRCDIR) $@
+
+
+reallyclean:	distclean
+	@echo Removing any milestone files in build as well...
+	@rm -f build/.??*
+	@echo '(However, leaving src tree intact, with any patches in it)'
+	@echo '(If you want, you could rm -r build, then make extract once more)'
+
+garchive:
+	@echo Call the fetch target instead: it does the same thing.
+
+
+# Downloads the source code to the common ARCHIVEDIR
+fetch:	$(ARCHIVEDIR)/$(ARCHIVENAME)
+	@echo fetch done
+
+$(ARCHIVEDIR)/$(ARCHIVENAME):
+	wget -P $(ARCHIVEDIR) $(MASTER_SITES)/$(ARCHIVENAME)
+
+patch:
+	@echo patch: patching is handled automatically as part of the configure phase.
+
+stage-preserved:
+	@if test -f preserve-$(ARCH).tar ; then \
+		echo Copying preserved arch-specific files; \
+		cat preserve-$(ARCH).tar |(cd $(SRCDIR)/cswstage && tar xvf -);\
+	fi
+	@if test -f preserve.tar ; then \
+		echo Copying preserved arch-neutral files; \
+		cat preserve.tar |(cd $(SRCDIR)/cswstage && tar xvf -);\
+	fi
+		
+package:	stage-preserved
+	$(CREATEPKG)
+
+
+# split out generic $(ARCH) sections to platform-specific sections if needed.
+# but it usually should not be neccessary
+
+
+$(ARCH)-32 ::   configure-$(ARCH)-32 build-$(ARCH)-32 stage-$(ARCH)-32
+	@echo Completed $(ARCH)-32 configure, build and stage
+	touch build/.$(ARCH)-32.done
+
+
+
+build/.$(ARCH)-32.done:	$(ARCH)-32
+
+# Since we share the same src tree, we should only need to
+# pre-configure patching one time for all.
+build/.patch-preconf.done:	build/.extract.done
+	if test -f patchfile.preconf ; then \
+	 gpatch -d $(SRCDIR) -p0  <patchfile.preconf ; fi
+	touch $@
+
+
+#Note: I WANT to use LDFLAGS=-R$$ORIGIN, but stupid libtool
+# wont allow it! so force it at build time
+build/.configure-$(ARCH)-32.done:	build/.patch-preconf.done
+	@echo handling $@ target
+	(cd $(SRCDIR) ; \
+	  CFLAGS="$(CFLAGS_COMMON) $(CFLAGS_$(ARCH))" \
+	  CXXFLAGS="$(CXXFLAGS_COMMON)" \
+	  LDFLAGS='-R/opt/csw/lib -L/opt/csw/lib' \
+	  $(CONFIGURE) )
+	if test -f patchfile.postconf ; then \
+	 gpatch -d $(SRCDIR) -p0  <patchfile.postconf ; fi
+	touch $@
+
+
+# See note about LDFLAGS and ORIGIN, higher up	
+build/.build-$(ARCH)-32.done:
+	@echo handling $@ target
+	LD_OPTIONS='-R$$ORIGIN' $(MAKE) -C $(SRCDIR) $(MFLAGS)
+	touch $@
+
+
+
+## NOTE: This is a DESTRUCTIVE target build!!
+## 'stagepkg'  will destroy any prior "cswstage" directory!!!
+## So, we remove all 64bit milestones
+build/.stage-$(ARCH)-32.done:
+	@echo Handling stage of $(ARCH)-32
+	(cd $(SRCDIR) ; MAKE=gmake stagepkg)
+	(cd $(SRCDIR); cp COPYING cswstage/.)
+	cp README.CSW $(SRCDIR)/cswstage/.
+	@rm -f build/.*64.done
+	touch $@
+
+
+
+#These are the easy-to-type targets. They just trigger the real ones.
+configure-$(ARCH)-32:	build/.configure-$(ARCH)-32.done
+	@echo $@ done
+build-$(ARCH)-32:	build/.build-$(ARCH)-32.done
+	@echo $@ done
+stage-$(ARCH)-32:	build/.stage-$(ARCH)-32.done
+	@echo $@ done
+
+# manual targets
+pkgproto:
+	cat $(SRCDIR)/cswstage/prototype | sed 's/root root$$/root bin/'>prototype
+	@echo Dont forget to add a COPYING line !!

Added: csw/mgar/pkg/gtar/branch-c/README.CSW
===================================================================
--- csw/mgar/pkg/gtar/branch-c/README.CSW	                        (rev 0)
+++ csw/mgar/pkg/gtar/branch-c/README.CSW	2010-11-05 17:18:34 UTC (rev 11506)
@@ -0,0 +1,6 @@
+Our build of GNU tar does not include the GNU "rmt" program. That is a part
+of our gcpio package. If you wish to use GNU rmt, please install
+our gcpio package, and GNU tar should automatically make use of it.
+
+If you wish to use the Solaris rmt, you could try 
+ln -s /usr/sbin/rmt /opt/csw/libexec/grmt 

Added: csw/mgar/pkg/gtar/branch-c/copyright
===================================================================
--- csw/mgar/pkg/gtar/branch-c/copyright	                        (rev 0)
+++ csw/mgar/pkg/gtar/branch-c/copyright	2010-11-05 17:18:34 UTC (rev 11506)
@@ -0,0 +1 @@
+Pleas see /opt/csw/share/doc/gtar/COPYING for full copyright notice

Added: csw/mgar/pkg/gtar/branch-c/cswreleasemgr
===================================================================
--- csw/mgar/pkg/gtar/branch-c/cswreleasemgr	                        (rev 0)
+++ csw/mgar/pkg/gtar/branch-c/cswreleasemgr	2010-11-05 17:18:34 UTC (rev 11506)
@@ -0,0 +1,2 @@
+Note for release time: Yes it has "/usr/local" references, but only in 
+the annoying infodir documetation. Please ignore

Added: csw/mgar/pkg/gtar/branch-c/depend
===================================================================
--- csw/mgar/pkg/gtar/branch-c/depend	                        (rev 0)
+++ csw/mgar/pkg/gtar/branch-c/depend	2010-11-05 17:18:34 UTC (rev 11506)
@@ -0,0 +1,3 @@
+P CSWggettextrt ggettextrt - GNU locale utilities
+P CSWiconv libiconv - GNU iconv library
+P CSWcommon common - common files and dirs for CSW packages

Added: csw/mgar/pkg/gtar/branch-c/pkginfo
===================================================================
--- csw/mgar/pkg/gtar/branch-c/pkginfo	                        (rev 0)
+++ csw/mgar/pkg/gtar/branch-c/pkginfo	2010-11-05 17:18:34 UTC (rev 11506)
@@ -0,0 +1,8 @@
+PKG=CSWgtar
+NAME=gtar - GNU tape archiver
+VERSION=1.24,REV=YYYY.MM.DD
+CATEGORY=application
+VENDOR=http://www.gnu.org/software/tar/ packaged for CSW by Philip Brown
+HOTLINE=http://www.opencsw.org/bugtrack/
+EMAIL=phil at opencsw.org
+OPENCSW_REPOSITORY=https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/pkg/gtar/branch-c

Added: csw/mgar/pkg/gtar/branch-c/prototype
===================================================================
--- csw/mgar/pkg/gtar/branch-c/prototype	                        (rev 0)
+++ csw/mgar/pkg/gtar/branch-c/prototype	2010-11-05 17:18:34 UTC (rev 11506)
@@ -0,0 +1,124 @@
+i pkginfo
+i copyright
+i cswreleasemgr
+i depend
+d none /opt/csw/libexec 0755 root bin
+d none /opt/csw/share 0755 root bin
+d none /opt/csw/share/info 0755 root bin
+f none /opt/csw/share/info/tar.info-2 0644 root bin
+f none /opt/csw/share/info/tar.info-1 0644 root bin
+f none /opt/csw/share/info/tar.info 0644 root bin
+d none /opt/csw/share/locale 0755 root bin
+d none /opt/csw/share/locale/nl 0755 root bin
+d none /opt/csw/share/locale/nl/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/nl/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/fr 0755 root bin
+d none /opt/csw/share/locale/fr/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/fr/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/ky 0755 root bin
+d none /opt/csw/share/locale/ky/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/ky/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/cs 0755 root bin
+d none /opt/csw/share/locale/cs/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/cs/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/ms 0755 root bin
+d none /opt/csw/share/locale/ms/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/ms/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/gl 0755 root bin
+d none /opt/csw/share/locale/gl/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/gl/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/zh_TW 0755 root bin
+d none /opt/csw/share/locale/zh_TW/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/zh_TW/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/pl 0755 root bin
+d none /opt/csw/share/locale/pl/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/pl/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/es 0755 root bin
+d none /opt/csw/share/locale/es/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/es/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/hu 0755 root bin
+d none /opt/csw/share/locale/hu/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/hu/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/hr 0755 root bin
+d none /opt/csw/share/locale/hr/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/hr/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/bg 0755 root bin
+d none /opt/csw/share/locale/bg/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/bg/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/zh_CN 0755 root bin
+d none /opt/csw/share/locale/zh_CN/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/zh_CN/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/et 0755 root bin
+d none /opt/csw/share/locale/et/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/et/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/nb 0755 root bin
+d none /opt/csw/share/locale/nb/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/nb/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/ga 0755 root bin
+d none /opt/csw/share/locale/ga/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/ga/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/da 0755 root bin
+d none /opt/csw/share/locale/da/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/da/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/sk 0755 root bin
+d none /opt/csw/share/locale/sk/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/sk/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/tr 0755 root bin
+d none /opt/csw/share/locale/tr/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/tr/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/sl 0755 root bin
+d none /opt/csw/share/locale/sl/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/sl/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/ca 0755 root bin
+d none /opt/csw/share/locale/ca/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/ca/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/it 0755 root bin
+d none /opt/csw/share/locale/it/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/it/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/ro 0755 root bin
+d none /opt/csw/share/locale/ro/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/ro/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/ru 0755 root bin
+d none /opt/csw/share/locale/ru/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/ru/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/id 0755 root bin
+d none /opt/csw/share/locale/id/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/id/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/fi 0755 root bin
+d none /opt/csw/share/locale/fi/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/fi/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/sv 0755 root bin
+d none /opt/csw/share/locale/sv/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/sv/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/ko 0755 root bin
+d none /opt/csw/share/locale/ko/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/ko/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/pt 0755 root bin
+d none /opt/csw/share/locale/pt/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/pt/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/eu 0755 root bin
+d none /opt/csw/share/locale/eu/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/eu/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/el 0755 root bin
+d none /opt/csw/share/locale/el/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/el/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/vi 0755 root bin
+d none /opt/csw/share/locale/vi/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/vi/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/pt_BR 0755 root bin
+d none /opt/csw/share/locale/pt_BR/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/pt_BR/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/de 0755 root bin
+d none /opt/csw/share/locale/de/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/de/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/ja 0755 root bin
+d none /opt/csw/share/locale/ja/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/ja/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/share/locale/uk 0755 root bin
+d none /opt/csw/share/locale/uk/LC_MESSAGES 0755 root bin
+f none /opt/csw/share/locale/uk/LC_MESSAGES/tar.mo 0644 root bin
+d none /opt/csw/bin 0755 root bin
+f none /opt/csw/bin/gtar 0755 root bin
+d none /opt/csw/share/doc/gtar 0755 root bin
+f none /opt/csw/share/doc/gtar/COPYING=COPYING 0644 root bin
+f none /opt/csw/share/doc/gtar/README.CSW=README.CSW 0644 root bin


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list