[Fusionforge-commits] r6796 - trunk

Christian Bayle cbayle at libremir.placard.fr.eu.org
Thu Jan 29 01:21:51 CET 2009


Author: cbayle
Date: 2009-01-29 01:21:51 +0100 (Thu, 29 Jan 2009)
New Revision: 6796

Modified:
   trunk/Makefile.debian
Log:
Added Ubuntu build support from a debian box


Modified: trunk/Makefile.debian
===================================================================
--- trunk/Makefile.debian	2009-01-28 22:17:54 UTC (rev 6795)
+++ trunk/Makefile.debian	2009-01-29 00:21:51 UTC (rev 6796)
@@ -1,5 +1,6 @@
 #! /usr/bin/make -f
 FUSIONFORGE=FusionForge
+ORIGIN=debian.fusionforge.org
 
 list:
 	@echo ======================================================================================
@@ -66,8 +67,14 @@
 #
 DISTRIB=etch
 MINOR=1
-LOCALREPO=/var/www/debian-gforge
+LOCALREPO=/var/www/debian-fusionforge
+LOCALREPOUBU=/var/www/ubuntu-fusionforge
 DISTRIBLIST=etch lenny sid
+UBUNTULIST=gutsy hardy intrepid
+UBUNTUOP=--mirror http://archive.ubuntu.com/ubuntu --debootstrap debootstrap
+UBUNTUOP=--mirror http://localhost/ubuntu --debootstrap debootstrap
+DEBUG=--debug
+DEBUG=
 
 svnbuildtest:
 	@echo "Will build gforge_$(gfversion)-$(MINOR)$(DISTRIB)"
@@ -77,6 +84,11 @@
 	make -f Makefile.debian svnbuilddist DISTRIB=$$dist ; \
 	done
 
+svnbuildubu:            # ***** This is the one to build ubuntu packages ***** #
+	for dist in $(UBUNTULIST); do \
+	make -f Makefile.debian svnbuilddist DISTRIB=$$dist DISTROOP="$(UBUNTUOP)" LOCALREPO=$(LOCALREPOUBU) DISTRIBLIST="$(UBUNTULIST)" ; \
+	done
+
 svnbuilddist: pbuilderenv localrepo result/gforge_$(gfversion)-$(MINOR)$(DISTRIB)_i386.changes
 
 result/gforge_$(gfversion)-$(MINOR)$(DISTRIB)_i386.changes: tarballs/gforge_$(gfversion).orig.tar.gz 
@@ -102,7 +114,7 @@
 	@echo "Ready for $(DISTRIB)"
 
 pbuilder/base-$(DISTRIB).tgz: /usr/sbin/pbuilder
-	sudo /usr/sbin/pbuilder create --debug --distribution $(DISTRIB) --basetgz $(CURDIR)/pbuilder/base-$(DISTRIB).tgz
+	sudo /usr/sbin/pbuilder create $(DEBUG) --distribution $(DISTRIB) --basetgz $(CURDIR)/pbuilder/base-$(DISTRIB).tgz $(DISTROOP)
 
 /usr/sbin/pbuilder:
 	sudo apt-get install pbuilder
@@ -119,7 +131,7 @@
 	echo "Components: main" ; \
 	echo "UDebComponents: main" ; \
 	echo "Architectures: i386 source" ; \
-	echo "Origin: gforge.eu" ; \
+	echo "Origin: $(ORIGIN)" ; \
 	echo "Version: 4.7" ; \
 	echo "Description: My $(FUSIONFORGE) $$dist repository" ; \
 	echo "SignWith: yes" ; \
@@ -129,5 +141,5 @@
 	mkdir $(LOCALREPO)/conf
 
 $(LOCALREPO):
-	sudo mkdir /var/www/debian-gforge
-	sudo chown `id -u`.`id -g` /var/www/debian-gforge
+	sudo mkdir $(LOCALREPO)
+	sudo chown `id -u`.`id -g` $(LOCALREPO)




More information about the Fusionforge-commits mailing list