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

skayser at users.sourceforge.net skayser at users.sourceforge.net
Wed Feb 24 18:39:34 CET 2010


Revision: 8802
          http://gar.svn.sourceforge.net/gar/?rev=8802&view=rev
Author:   skayser
Date:     2010-02-24 17:39:34 +0000 (Wed, 24 Feb 2010)

Log Message:
-----------
stmpclean: initial commit

Added Paths:
-----------
    csw/mgar/pkg/stmpclean/
    csw/mgar/pkg/stmpclean/branches/
    csw/mgar/pkg/stmpclean/tags/
    csw/mgar/pkg/stmpclean/trunk/
    csw/mgar/pkg/stmpclean/trunk/Makefile
    csw/mgar/pkg/stmpclean/trunk/checksums
    csw/mgar/pkg/stmpclean/trunk/files/
    csw/mgar/pkg/stmpclean/trunk/files/changelog.CSW


Property changes on: csw/mgar/pkg/stmpclean/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/stmpclean/trunk/Makefile
===================================================================
--- csw/mgar/pkg/stmpclean/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/stmpclean/trunk/Makefile	2010-02-24 17:39:34 UTC (rev 8802)
@@ -0,0 +1,49 @@
+GARNAME = stmpclean
+GARVERSION = 0.3
+CATEGORIES = apps
+
+DESCRIPTION = Removes old files from the specified directory
+define BLURB
+  The stmpclean utility never removes files or directories owned by root.
+  It is a feature, not a bug. Great care is taken while descending into
+  the directory, and the operation is secure. Unlike floating around Perl
+  scripts that do the same task stmpclean never forks and consumes limited
+  amount of memory (these Perl script easily turn into forking bombs when
+  someone creates a lot a directories under /tmp). If your system is
+  attacked and the attacker creates an extremely deep file hierarchy,
+  stmpclean won't add to the problem by crashing your system trying to
+  remove it.
+endef
+
+MASTER_SITES = http://shlang.com/stmpclean/
+DISTFILES    = $(GARNAME)-$(GARVERSION).tar.gz
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+
+CONFIGURE_SCRIPTS =
+BUILD_ARGS = $(GARNAME)
+INSTALL_SCRIPTS = custom
+TEST_SCRIPTS =
+
+NORUNPATH = 1
+
+include gar/category.mk
+
+# Remove gcc'isms and non-POSIX LOG_PERROR option to openlog()
+# http://www.gnu.org/s/libc/manual/html_node/openlog.html
+pre-build-modulated:
+	gsed -i -e '/^CFLAGS/d' $(WORKSRC)/Makefile
+	gsed -i -e 's/| LOG_PERROR//' $(WORKSRC)/$(GARNAME).c
+	@$(MAKECOOKIE)
+
+install-custom: DOCDEST=$(DESTDIR)$(docdir)/$(GARNAME)
+install-custom: DOCS=README FAQ
+install-custom:
+	ginstall -d $(DOCDEST)
+	ginstall -d $(DESTDIR)$(bindir)
+	ginstall -d $(DESTDIR)$(mandir)/man8
+
+	ginstall -m755 $(WORKSRC)/$(GARNAME) $(DESTDIR)$(bindir)/$(GARNAME)
+	cp $(WORKSRC)/$(GARNAME).8 $(DESTDIR)$(mandir)/man8/
+	cp $(addprefix $(WORKSRC)/,$(DOCS)) $(DOCDEST)
+	cp $(FILEDIR)/changelog.CSW $(DOCDEST)
+	@$(MAKECOOKIE)

Added: csw/mgar/pkg/stmpclean/trunk/checksums
===================================================================
--- csw/mgar/pkg/stmpclean/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/stmpclean/trunk/checksums	2010-02-24 17:39:34 UTC (rev 8802)
@@ -0,0 +1 @@
+e33c64ada5c0e92381adac5c45eb540a  stmpclean-0.3.tar.gz

Added: csw/mgar/pkg/stmpclean/trunk/files/changelog.CSW
===================================================================
--- csw/mgar/pkg/stmpclean/trunk/files/changelog.CSW	                        (rev 0)
+++ csw/mgar/pkg/stmpclean/trunk/files/changelog.CSW	2010-02-24 17:39:34 UTC (rev 8802)
@@ -0,0 +1,5 @@
+stmpclean (0.3,REV=2010.02.24)
+
+  * Initial release.
+
+ -- Sebastian Kayser <skayser at opencsw.org>  Wed, 24 Feb 2010 18:36:28 +0100


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