else
DEBMIRROR=$(shell echo $$DEBMIRROR)
endif
+ifeq (,$(shell echo "$$DEBEMAIL"))
+DEBEMAIL=buildbot@$(shell hostname -f)
+else
+DEBEMAIL=$(shell echo $$DEBEMAIL)
+endif
#
TARBALLS=$(CURDIR)/tarballs
#
# Local customization
--include $(CURDIR)/local.$(shell hostname)
+ifeq (../../3rd-party,$(shell ls -d ../../3rd-party 2>/dev/null))
+-include ../../config/local.$(shell hostname)
+else
+-include $(CURDIR)/config/local.$(shell hostname)
+endif
#
BUILDPLACE=$(BUILDERDIR)/buildplace
BUILDFILES=$(BUILDERDIR)/buildfiles
#
XDISTRIB:=3sid
DISTRIB=$(shell echo $(XDISTRIB) | cut -c2-)
-SIGNKEY=yes
+SIGNKEY=$(DEBEMAIL)
+BOTKEY=botkey
DEBIANLIST=1lenny 2squeeze 3sid
DEBIANLISTP=1etch
DEBLIST=$(DEBIANLIST) $(DEBIANLISTP)
mkdir -p $(PBUILDERTGZ)
$(LOCALREPO):
- sudo mkdir $@
- sudo chown `id -u`.`id -g` $@
+ if [ -w `dirname $@` ] ; then mkdir $@ ; else sudo mkdir $@ ; sudo chown `id -u`.`id -g` $@; fi
clean: # Clean $(BUILDPLACE) $(BUILDFILES) $(TARBALLS) (intermediate files) #
rm -rf $(BUILDPLACE) $(BUILDFILES) $(TARBALLS)
control:
cd src/packaging/control; $(MAKE)
+
+gnupgkey:
+ echo '%echo Generating a standard key' > $(BOTKEY)
+ echo 'Key-Type: DSA' >> $(BOTKEY)
+ echo 'Key-Length: 1024' >> $(BOTKEY)
+ echo 'Subkey-Type: ELG-E' >> $(BOTKEY)
+ echo 'Subkey-Length: 1024' >> $(BOTKEY)
+ echo 'Name-Real: FusionForge Bot' >> $(BOTKEY)
+ echo 'Name-Comment: with stupid passphrase' >> $(BOTKEY)
+ echo 'Name-Email: $(DEBEMAIL)' >> $(BOTKEY)
+ echo 'Expire-Date: 0' >> $(BOTKEY)
+ echo '#Passphrase: abc' >> $(BOTKEY)
+ echo '#%pubring $(BOTKEY).pub' >> $(BOTKEY)
+ echo '#%secring $(BOTKEY).sec' >> $(BOTKEY)
+ echo '# Do a commit here, so that we can later print "done" :-)' >> $(BOTKEY)
+ echo '%commit' >> $(BOTKEY)
+ echo '%echo done' >> $(BOTKEY)
+ [ -d ~/.gnupg ] || gpg --batch --gen-key $(BOTKEY)
+
+exportgnupgkey:
+ gpg --export --armor $(DEBEMAIL)