--- /dev/null
+Installation:
+
+ - The secret of the gpg key identified in invirt.config.apt.keyid
+ must be in the keyring of the repository user.
+
+ The public key should then be in the apt keyring of systems using
+ the packages.
sipb-xen-dev (18) unstable; urgency=low
- * sign the packages
+ * sign the packages, getting keyid from invirt.config
- -- Greg Price <price@mit.edu> Sat, 2 Aug 2008 21:57:58 -0400
+ -- Greg Price <price@mit.edu> Mon, 4 Aug 2008 00:43:58 -0400
sipb-xen-dev (17) unstable; urgency=low
--- /dev/null
+#!/bin/sh
+
+PACKAGE=sipb-xen-dev
+
+. /lib/lsb/init-functions
+
+gen_config () {
+ local keyid="$(invirt-getconf apt.keyid)"
+ for f in /srv/repository/conf/{distributions,invirt-uploaders}; do
+ perl -pe "s/@apt.keyid@/$keyid/g" <"$f".in >"$f"
+ done
+}
+
+case "$1" in
+ start|reload|force-reload|restart)
+ log_begin_msg "Reloading config for $PACKAGE"
+ gen_config
+ log_end_msg $?
+ ;;
+ stop)
+ ;;
+ *)
+ log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}"
+ ;;
+esac
CodeName: unstable
Components: main
-Uploaders: unsigned
+Uploaders: invirt-uploaders
+SignWith: @apt.keyid@
Architectures: amd64 source
Origin: sipb
Notautomatic: yes
Codename: stable
Components: main
+Uploaders: invirt-uploaders
+SignWith: @apt.keyid@
Architectures: amd64 source
Origin: sipb
Description: Released sipb-xen code
--- /dev/null
+allow * by key @apt.keyid@
#!/bin/sh
set -e
export HOME=/home/repository
-exec sudo -u repository /usr/bin/reprepro -b /srv/repository "$@"
+exec sudo -H -u repository /usr/bin/reprepro -b /srv/repository "$@"