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

skayser at users.sourceforge.net skayser at users.sourceforge.net
Wed Jun 2 13:58:44 CEST 2010


Revision: 10071
          http://gar.svn.sourceforge.net/gar/?rev=10071&view=rev
Author:   skayser
Date:     2010-06-02 11:58:43 +0000 (Wed, 02 Jun 2010)

Log Message:
-----------
snmptt: initial commit

Added Paths:
-----------
    csw/mgar/pkg/snmptt/
    csw/mgar/pkg/snmptt/branches/
    csw/mgar/pkg/snmptt/tags/
    csw/mgar/pkg/snmptt/trunk/
    csw/mgar/pkg/snmptt/trunk/Makefile
    csw/mgar/pkg/snmptt/trunk/checksums
    csw/mgar/pkg/snmptt/trunk/files/


Property changes on: csw/mgar/pkg/snmptt/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/snmptt/trunk/Makefile
===================================================================
--- csw/mgar/pkg/snmptt/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/snmptt/trunk/Makefile	2010-06-02 11:58:43 UTC (rev 10071)
@@ -0,0 +1,53 @@
+# TODO
+# * Add init script
+GARNAME = snmptt
+GARVERSION = 1.3
+CATEGORIES = apps
+
+DESCRIPTION = SNMP trap handler for use with the snmptrad program
+define BLURB
+endef
+
+VENDOR_URL   = http://snmptt.sourceforge.net/
+MASTER_SITES = $(SF_MIRRORS)
+DISTNAME     = $(GARNAME)_$(GARVERSION)
+DISTFILES    = $(GARNAME)_$(GARVERSION).tgz
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+
+RUNTIME_DEP_PKGS = CSWperl CSWpmcfginifls
+
+CONFIGURE_SCRIPTS =
+BUILD_SCRIPTS =
+TEST_SCRIPTS =
+INSTALL_SCRIPTS = custom
+
+SAMPLECONF = /etc/opt/csw/snmptt.ini
+
+include gar/category.mk
+
+install-custom: BIN=snmpttconvertmib
+install-custom: SBIN=snmptt snmptthandler
+install-custom: DOCS=ChangeLog
+install-custom: DOCDEST=$(DESTDIR)$(docdir)/$(GARNAME)
+install-custom:
+	ginstall -d $(DESTDIR)$(bindir) 
+	ginstall -d $(DESTDIR)$(sbindir) 
+	ginstall -d $(DESTDIR)/etc/opt/csw/
+	ginstall -d $(DESTDIR)/var/opt/csw/log/snmptt
+	ginstall -d $(DESTDIR)/var/opt/csw/spool/snmptt/
+	ginstall -d $(DOCDEST) $(DOCDEST)/examples
+
+	ginstall -m 755 $(addprefix $(WORKSRC)/, $(BIN)) $(DESTDIR)$(bindir)
+	ginstall -m 755 $(addprefix $(WORKSRC)/,$(SBIN)) $(DESTDIR)$(sbindir)
+	gsed -i 's,/usr/bin/perl,/opt/csw/bin/perl,' $(DESTDIR)$(bindir)/*
+	gsed -i 's,/usr/bin/perl,/opt/csw/bin/perl,' $(DESTDIR)$(sbindir)/*
+
+	cp $(WORKSRC)/snmptt.ini > $(DESTDIR)/etc/opt/csw/snmptt.ini
+	gsed \
+		-e 's,/var/,/var/opt/csw/,' \
+		-e 's,/var/opt/csw/run/snmptt.pid,/var/run/cswsnmptt.pid,' \
+		$(DESTDIR)/etc/opt/csw/snmptt.ini
+
+	cp $(WORKSRC)/examples/* $(WORKSRC)/sample-* $(DOCDEST)/examples
+	cp $(WORKSRC)/docs/* $(DOCDEST)
+	@$(MAKECOOKIE)


Property changes on: csw/mgar/pkg/snmptt/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id

Added: csw/mgar/pkg/snmptt/trunk/checksums
===================================================================
--- csw/mgar/pkg/snmptt/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/snmptt/trunk/checksums	2010-06-02 11:58:43 UTC (rev 10071)
@@ -0,0 +1 @@
+ee8d8206d3e0d860fee126e09d8eb207  snmptt_1.3.tgz


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