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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Fri Sep 4 14:28:24 CEST 2009


Revision: 6173
          http://gar.svn.sourceforge.net/gar/?rev=6173&view=rev
Author:   wahwah
Date:     2009-09-04 12:28:24 +0000 (Fri, 04 Sep 2009)

Log Message:
-----------
tree: Initial commit

Modified Paths:
--------------
    csw/mgar/pkg/tree/trunk/Makefile
    csw/mgar/pkg/tree/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/tree/
    csw/mgar/pkg/tree/trunk/files/solaris.patch

Modified: csw/mgar/pkg/tree/trunk/Makefile
===================================================================
--- csw/mgar/pkg/template/trunk/Makefile	2009-09-04 07:53:42 UTC (rev 6169)
+++ csw/mgar/pkg/tree/trunk/Makefile	2009-09-04 12:28:24 UTC (rev 6173)
@@ -11,8 +11,8 @@
 ## For more information about GAR variables, please see:
 ## https://sourceforge.net/apps/trac/gar/wiki/GAR%20Variable%20Reference
 ##
-GARNAME = mypkg
-GARVERSION = 1.0
+GARNAME = tree
+GARVERSION = 1.5.2.2
 ##
 ## The category that your software fits in. This is not a descriptive field, but
 ## influences the build process. Depending on the CATEGORIES setting, different
@@ -22,24 +22,27 @@
 ## Possible settings are:
 ## apps, cpan, devel, gnome, java, kde, lang, lib, meta, net, python, server,
 ## utils, x11, xfce, xorg, xtra
-CATEGORIES = lib
+CATEGORIES = utils
 ##
 ## A one-line description of the package, which will appear in the pkginfo.
-DESCRIPTION = <please fill in>
+DESCRIPTION = A recursive directory listing program
 ##
 ## A longer description of the package. This is only for descriptive purposes
 ## inside the Makefile and is not used elsewhere.
 define BLURB
-  <please fill in>
+  Tree is a recursive directory listing program that produces a depth indented
+  listing of files, which is colorized ala dircolors if the LS_COLORS
+  environment variable is set and output is to tty. 
 endef
 ##
 ## Upstream URL that should show up in the VENDOR field as well as on
 ## http://opencsw.org/packages/<packagename>.
-SPKG_SOURCEURL =
+SPKG_SOURCEURL = http://mama.indstate.edu/users/ice/tree/
 ##
 ## Whitespace-separated list of URLs to download the source package from.
 ## There are presets: $(SF_MIRRORS), $(GNU_MIRRORS) and $(GOOGLE_MIRROR).
-MASTER_SITES =
+MASTER_SITES  = ftp://mama.indstate.edu/linux/tree/
+MASTER_SITES += http://www.sfr-fresh.com/linux/misc/
 ##
 ## SF_PROJ is required if you set $(MASTER_SITES) to $(SF_MIRRORS) and the
 ## Sourceforge project name differs from $(GARNAME). Specifies the Sourceforge
@@ -49,15 +52,17 @@
 ## A list of space separated patch filenames from files/ that are to be applied
 ## to the extracted software before the ./configure stage. Patches need to be
 ## included in the DISTFILES variable as well.
-## PATCHFILES =
+# PATCHFILES  = 0001-Solaris-settings.patch
+# PATCHFILES += 0002-install-binary-as-a-parameter.patch
+# PATCHFILES += 0003-Destdir-support.patch
+PATCHFILES = solaris.patch
 ##
 ## Whitespace-separated list of files which comprise this build. mGAR will look
 ## for the files in the $(FILEDIR) (trunk/files) directory and on the
 ## $(MASTER_SITES).
-DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
+DISTFILES  = $(GARNAME)-$(GARVERSION).tgz
 ##
-## We define upstream file regex so we can be notifed of new upstream software release
-UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tgz
 ##
 ## Catalog name is the name to be used with pkg{-get,util} -i <pkgname>.
 ## It is different from the system package name, which by convention is CSWpkgname.
@@ -142,10 +147,10 @@
 ## completely (for example when your software doesn't need to be compiled) assign
 ## this variable an empty value. The procedure works for configure, build,
 ## install and test steps.
-## CONFIGURE_SCRIPTS =
+CONFIGURE_SCRIPTS =
 ## BUILD_SCRIPTS =
 ## INSTALL_SCRIPTS =
-## TEST_SCRIPTS =
+SKIPTEST = 1
 ##
 ## Compilation settings
 ##
@@ -157,7 +162,7 @@
 ## BUILD_ARGS =
 ##
 ## Arguments passed to the ./configure script.
-CONFIGURE_ARGS = $(DIRPATHS)
+## CONFIGURE_ARGS = $(DIRPATHS)
 ##
 ## BUILD64 =
 ## CONFIGURE_ENV =
@@ -173,10 +178,4 @@
 ## The compiler to use. Defaults to SOS11, can be also: SOS12, GCC3, GCC4.
 ## GARCOMPILER = SOS11
 ##
-# Remove the following rules and uncomment the
-# include before building.
-all: .DEFAULT
-.DEFAULT:
-	@true
-
-#include gar/category.mk
+include gar/category.mk

Modified: csw/mgar/pkg/tree/trunk/checksums
===================================================================
--- csw/mgar/pkg/template/trunk/checksums	2009-09-04 07:53:42 UTC (rev 6169)
+++ csw/mgar/pkg/tree/trunk/checksums	2009-09-04 12:28:24 UTC (rev 6173)
@@ -0,0 +1,2 @@
+e714975edbf63afd3037b3c75b0c5319  download/solaris.patch
+a7731a898e2c0d7e422a57a84ffbb06c  download/tree-1.5.2.2.tgz

Added: csw/mgar/pkg/tree/trunk/files/solaris.patch
===================================================================
--- csw/mgar/pkg/tree/trunk/files/solaris.patch	                        (rev 0)
+++ csw/mgar/pkg/tree/trunk/files/solaris.patch	2009-09-04 12:28:24 UTC (rev 6173)
@@ -0,0 +1,64 @@
+diff --git a/Makefile b/Makefile
+index 54260a7..e622acd 100644
+--- a/Makefile
++++ b/Makefile
+@@ -6,9 +6,9 @@
+ # warranties, including, without limitation, the implied warranties
+ # of merchant-ability and fitness for a particular purpose.
+ 
+-prefix = /usr
++prefix = /opt/csw
+ 
+-CC=gcc
++# CC=gcc
+ 
+ VERSION=1.5.2.2
+ TREE_DEST=tree
+@@ -20,8 +20,9 @@ MANDIR=${prefix}/man/man1
+ 
+ # Linux defaults:
+ #CFLAGS=-ggdb -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+-CFLAGS=-O2 -Wall -fomit-frame-pointer -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+-LDFLAGS=-s
++#CFLAGS=-O2 -Wall -fomit-frame-pointer -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
++#LDFLAGS=-s
++#INSTALL=$(INSTALL)
+ 
+ # Uncomment for FreeBSD:
+ #CFLAGS=-O2 -Wall -fomit-frame-pointer
+@@ -29,11 +30,12 @@ LDFLAGS=-s
+ #XOBJS=strverscmp.o
+ 
+ # Uncomment for Solaris:
+-#CC=cc
+-#CFLAGS=-xO0 -v
+-#LDFLAGS=
+-#XOBJS=strverscmp.o
+-#MANDIR=${prefix}/share/man/man1
++CC=cc
++CFLAGS=-xO0 -v
++LDFLAGS=
++XOBJS=strverscmp.o
++MANDIR=${prefix}/share/man/man1
++INSTALL=ginstall
+ 
+ # Uncomment for Cygwin:
+ #CFLAGS=-O2 -Wall -fomit-frame-pointer -DCYGWIN
+@@ -83,12 +85,12 @@ clean:
+ 	rm -f *~
+ 
+ install: tree
+-	install -d $(BINDIR)
+-	install -d $(MANDIR)
+-	if [ -e $(TREE_DEST) ]; then \
+-		install -s $(TREE_DEST) $(BINDIR)/$(TREE_DEST); \
++	$(INSTALL) -d $(DESTDIR)$(BINDIR)
++	$(INSTALL) -d $(DESTDIR)$(MANDIR)
++	if [ -r $(TREE_DEST) ]; then \
++		$(INSTALL) -s $(TREE_DEST) $(DESTDIR)$(BINDIR)/$(TREE_DEST); \
+ 	fi
+-	install man/$(MAN) $(MANDIR)/$(MAN)
++	$(INSTALL) man/$(MAN) $(DESTDIR)$(MANDIR)/$(MAN)
+ 
+ distclean:
+ 	if [ -f tree.o ]; then rm *.o; fi


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