From f78b12795a12fac9482e883ca673d23df9c94c7d Mon Sep 17 00:00:00 2001 From: konrad Date: Wed, 5 Aug 2009 10:59:49 +0000 Subject: [PATCH] added signing and keyring git-svn-id: https://silmor.de/svn/misc/smoke.web@109 752dcaaa-03e5-0310-b894-97e397d490cd --- debian/regen.sh | 34 ++++++++++++++++- keyring/README | 7 ++++ keyring/debian/changelog | 6 +++ keyring/debian/compat | 1 + keyring/debian/control | 13 +++++++ keyring/debian/copyright | 13 +++++++ keyring/debian/dirs | 2 + keyring/debian/docs | 1 + keyring/debian/postinst | 42 ++++++++++++++++++++++ keyring/debian/rules | 79 +++++++++++++++++++++++++++++++++++++++++ keyring/silmor.de-keyring.gpg | Bin 0 -> 1315 bytes 11 files changed, 196 insertions(+), 2 deletions(-) create mode 100644 keyring/README create mode 100644 keyring/debian/changelog create mode 100644 keyring/debian/compat create mode 100644 keyring/debian/control create mode 100644 keyring/debian/copyright create mode 100644 keyring/debian/dirs create mode 100644 keyring/debian/docs create mode 100644 keyring/debian/postinst create mode 100755 keyring/debian/rules create mode 100644 keyring/silmor.de-keyring.gpg diff --git a/debian/regen.sh b/debian/regen.sh index c472873..84e0866 100755 --- a/debian/regen.sh +++ b/debian/regen.sh @@ -1,10 +1,17 @@ #!/bin/sh +BDIR=`pwd` + +### +#link common packages for ubuntu/debian cd upool rm -f magicsmoke*all.deb ln -sf ../dpool/magicsmoke*all.deb . -cd .. +cd $BDIR + +### +#scan packages and extract Packages files doscan(){ d=dists/$1/extra/binary-$3 mkdir -p $d @@ -13,10 +20,33 @@ doscan(){ dpkg-scanpackages --arch $3 $2 >pkg gzip $d/Packages.gz bzip2 $d/Packages.bz2 - rm pkg + mv pkg $d/Packages } doscan lenny dpool i386 doscan lenny dpool amd64 doscan jaunty upool i386 +doscan jaunty upool amd64 + + +### +#generate dist wide signatures + +genrel(){ + d=dists/$1 + f=$d/Release + rm -f $f $f.gpg + echo Origin: MagicSmoke >$f + echo Label: MagicSmoke >>$f + echo Suite: $3 >>$f + echo Version: $2 >>$f + echo Codename: $1 >>$f + echo Architectures: amd64 i386 >>$f + echo Components: extra >>$f + echo Description: MagicSmoke Repository >>$f + apt-ftparchive release $d >>$f + gpg -o $f.gpg --detach-sign $f +} +genrel lenny 5.0 stable +genrel jaunty 9.04 jaunty diff --git a/keyring/README b/keyring/README new file mode 100644 index 0000000..e50386e --- /dev/null +++ b/keyring/README @@ -0,0 +1,7 @@ +Silmor.de package signing keyring +================================== + +(c) Konrad Rosenbaum, 2009 +protected under the GPL v.3 or at your option any newer + +This package contains the keyring used to sign MagicSmoke and other packages. diff --git a/keyring/debian/changelog b/keyring/debian/changelog new file mode 100644 index 0000000..568ea9f --- /dev/null +++ b/keyring/debian/changelog @@ -0,0 +1,6 @@ +silmor.de-keyring (2009-1) stable; urgency=low + + * Initial release + + -- konrad Wed, 05 Aug 2009 12:36:01 +0200 + diff --git a/keyring/debian/compat b/keyring/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/keyring/debian/compat @@ -0,0 +1 @@ +7 diff --git a/keyring/debian/control b/keyring/debian/control new file mode 100644 index 0000000..929da56 --- /dev/null +++ b/keyring/debian/control @@ -0,0 +1,13 @@ +Source: silmor.de-keyring +Section: unknown +Priority: extra +Maintainer: Konrad Rosenbaum +Build-Depends: debhelper (>= 7), apt +Standards-Version: 3.7.3 +Homepage: http://silmor.de + +Package: silmor.de-keyring +Architecture: all +Depends: apt, gnupg +Description: Silmor.de package signing keyring + This is the keyring used to sign MagicSmoke and other Packages from silmor.de. diff --git a/keyring/debian/copyright b/keyring/debian/copyright new file mode 100644 index 0000000..a82fc86 --- /dev/null +++ b/keyring/debian/copyright @@ -0,0 +1,13 @@ +This package was debianized by Konrad Rosenbaum on +Wed, 05 Aug 2009 12:36:01 +0200. + +Copyright: + + + +License: + + GNU GPL version 3 or at your option any newer + +The Debian packaging is (C) 2009, Konrad Rosenbaum and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. diff --git a/keyring/debian/dirs b/keyring/debian/dirs new file mode 100644 index 0000000..ca882bb --- /dev/null +++ b/keyring/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff --git a/keyring/debian/docs b/keyring/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/keyring/debian/docs @@ -0,0 +1 @@ +README diff --git a/keyring/debian/postinst b/keyring/debian/postinst new file mode 100644 index 0000000..cfe5c5f --- /dev/null +++ b/keyring/debian/postinst @@ -0,0 +1,42 @@ +#!/bin/sh +# postinst script for silmor.de-keyring +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + apt-key add /usr/share/keyrings/silmor.de-keyring.gpg + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/keyring/debian/rules b/keyring/debian/rules new file mode 100755 index 0000000..4c3c54c --- /dev/null +++ b/keyring/debian/rules @@ -0,0 +1,79 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +all: binary + + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + mkdir -p $(CURDIR)/debian/silmor.de-keyring/usr/share/keyrings + cp silmor.de-keyring.gpg $(CURDIR)/debian/silmor.de-keyring/usr/share/keyrings + +# Build architecture-dependent files here. +binary-arch: build install + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs +# dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_installman + dh_link +# dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb +# dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/keyring/silmor.de-keyring.gpg b/keyring/silmor.de-keyring.gpg new file mode 100644 index 0000000000000000000000000000000000000000..718ade6342de86c058854f4eb5378410474bb79d GIT binary patch literal 1315 zcmV+;1>E|X0ipy+dr_zn1OT=)Y;QN%N(Ydd;J+T%LxIB4R4;%~jY_t@@)zti=@Grg zfI0~bgW_(d22OmF#wdW8@$^-yqM+MQAWOGMr6Cc;A@Qv|-m#=|7R4e_KvFJtFW^NC z=s)4KFP#$AtEX-&A$U*mHez=G`~3zwsWGIdR`)IIl+^yegrxgF>I(p%p>!k0XNdZ; zR0)v6Y)!2u(*`mT1OTM$G|-iqenV=_vWmYaAt;Hj59REuu_NAiwXn%6zxXX2jFDU>&F_7 zl$~oqMf2*bUE?nO-^;xj)k|9pU%+%NGRU@jyCZ)m^A-nX`z})jBdpwOwW&+{X3b|=2NUqs@;opTp6P@*Gn29$8XqK1w*3=#4c0fR;D(4{U2=6 zWWRwkzmYO5cbRK^v?EJzZgOE{AX0C0Wo}|&b!{L#Yj19HVPrsaX>4t8axP?LK8R)n z6A=OcCItdXdr_zY8v_Li31$I+1`7!Y2Ll2G6#@tY1Qr4V0RkQY0vCV)3JDO)70Hou zI${7#)BvAMJ_Xx9@s^$nlX3GT#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