[csw-devel] SF.net SVN: gar:[5581] csw/mgar/pkg/siege/trunk/Makefile

bensons at users.sourceforge.net bensons at users.sourceforge.net
Wed Jul 15 17:00:11 CEST 2009


Revision: 5581
          http://gar.svn.sourceforge.net/gar/?rev=5581&view=rev
Author:   bensons
Date:     2009-07-15 15:00:10 +0000 (Wed, 15 Jul 2009)

Log Message:
-----------
siege: fixed install, ready for release

Modified Paths:
--------------
    csw/mgar/pkg/siege/trunk/Makefile

Modified: csw/mgar/pkg/siege/trunk/Makefile
===================================================================
--- csw/mgar/pkg/siege/trunk/Makefile	2009-07-15 14:00:49 UTC (rev 5580)
+++ csw/mgar/pkg/siege/trunk/Makefile	2009-07-15 15:00:10 UTC (rev 5581)
@@ -25,8 +25,37 @@
 
 TEST_SCRIPTS =
 
+INSTALL_SCRIPTS = bin conf man
+
 include gar/category.mk
 
-# fix sysconfdir, to honor $(DESTDIR)
-pre-build-modulated:
-	@perl -pi -e 's at sysconfdir = /opt/csw/etc at sysconfdir = \$(DESTDIR)/opt/csw/etc@' ${WORKSRC}/doc/Makefile
+# install is broken..
+bin-list  = $(WORKSRC)/src/siege
+bin-list += $(WORKSRC)/utils/bombardment
+bin-list += $(WORKSRC)/utils/siege2csv.pl
+bin-list += $(WORKSRC)/utils/siege.config
+conf-list  = $(WORKSRC)/doc/urls.txt
+conf-list += $(WORKSRC)/doc/siegerc
+
+install-bin:
+	ginstall -d $(DESTDIR)$(bindir)
+	@( for file in $(bin-list) ; do \
+		ginstall -m 644 $$file $(DESTDIR)$(bindir) ; \
+			done )
+
+install-conf:
+	ginstall -d $(DESTDIR)$(sysconfdir)/$(GARNAME)
+	@( for file in $(conf-list) ; do \
+		ginstall -m 644 $$file $(DESTDIR)$(sysconfdir)/$(GARNAME) ; \
+			done )
+
+install-man:
+	ginstall -d $(DESTDIR)$(mandir)/man1
+	ginstall -m 644 $(WORKSRC)/doc/siege.1 $(DESTDIR)$(mandir)/man1
+	ginstall -m 644 $(WORKSRC)/doc/bombardment.1 $(DESTDIR)$(mandir)/man1
+	ginstall -m 644 $(WORKSRC)/doc/siege2csv.1 $(DESTDIR)$(mandir)/man1
+	ginstall -d $(DESTDIR)$(mandir)/man5
+	ginstall -m 644 $(WORKSRC)/doc/urls_txt.5 $(DESTDIR)$(mandir)/man5
+	ginstall -d $(DESTDIR)$(mandir)/man7
+	ginstall -m 644 $(WORKSRC)/doc/layingsiege.7 $(DESTDIR)$(mandir)/man7
+	@$(MAKECOOKIE)


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