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
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)
+ rm -rf $(BUILDPLACE)/$(PKGNAME)-$(SMAJOR) $(BUILDFILES) $(TARBALLS)
+ rmdir $(BUILDPLACE) && mkdir $(BUILDPLACE)
cleanenv: # Clean $(COWBUILDERBASE) $(PBUILDERTGZ) (chroots)#
sudo rm -rf $(COWBUILDERBASE) $(PBUILDERTGZ)
echo 'Name-Comment: with stupid passphrase' >> $(BOTKEY)
echo 'Name-Email: $(DEBEMAIL)' >> $(BOTKEY)
echo 'Expire-Date: 0' >> $(BOTKEY)
- echo "Passphrase: ''" >> $(BOTKEY)
- echo '%pubring $(BOTKEY).pub' >> $(BOTKEY)
- echo '%secring $(BOTKEY).sec' >> $(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)