diff options
Diffstat (limited to 'zarb-ml/mageia-sysadm/2011-January/002298.html')
-rw-r--r-- | zarb-ml/mageia-sysadm/2011-January/002298.html | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2011-January/002298.html b/zarb-ml/mageia-sysadm/2011-January/002298.html new file mode 100644 index 000000000..9335195a7 --- /dev/null +++ b/zarb-ml/mageia-sysadm/2011-January/002298.html @@ -0,0 +1,113 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-sysadm] [331] use mga-signpackage script with sudo to sign packages + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B331%5D%20use%20mga-signpackage%20script%20with%20sudo%20to%20sign%0A%09packages&In-Reply-To=%3C20110120171017.1C71042B7C%40valstar.mageia.org%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="002297.html"> + <LINK REL="Next" HREF="002299.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-sysadm] [331] use mga-signpackage script with sudo to sign packages</H1> + <B>root at mageia.org</B> + <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B331%5D%20use%20mga-signpackage%20script%20with%20sudo%20to%20sign%0A%09packages&In-Reply-To=%3C20110120171017.1C71042B7C%40valstar.mageia.org%3E" + TITLE="[Mageia-sysadm] [331] use mga-signpackage script with sudo to sign packages">root at mageia.org + </A><BR> + <I>Thu Jan 20 18:10:17 CET 2011</I> + <P><UL> + <LI>Previous message: <A HREF="002297.html">[Mageia-sysadm] Puppet Report for jonund.mageia.org +</A></li> + <LI>Next message: <A HREF="002299.html">[Mageia-sysadm] [332] move mga-signpackage to bin directory and add it in Makefile.PL +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#2298">[ date ]</a> + <a href="thread.html#2298">[ thread ]</a> + <a href="subject.html#2298">[ subject ]</a> + <a href="author.html#2298">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Revision: 331 +Author: boklm +Date: 2011-01-20 18:10:16 +0100 (Thu, 20 Jan 2011) +Log Message: +----------- +use mga-signpackage script with sudo to sign packages + +Modified Paths: +-------------- + build_system/mdv-youri-submit/trunk/lib/Youri/Submit/Action/Sign.pm + +Modified: build_system/mdv-youri-submit/trunk/lib/Youri/Submit/Action/Sign.pm +=================================================================== +--- build_system/mdv-youri-submit/trunk/lib/Youri/Submit/Action/Sign.pm 2011-01-20 16:38:50 UTC (rev 330) ++++ build_system/mdv-youri-submit/trunk/lib/Youri/Submit/Action/Sign.pm 2011-01-20 17:10:16 UTC (rev 331) +@@ -19,6 +19,8 @@ + sub _init { + my $self = shift; + my %options = ( ++ signuser => 'signbot', ++ signscript => '/usr/bin/mga-signpackage', + name => '', + path => $ENV{HOME} . '/.gnupg', + passphrase => '', +@@ -32,17 +34,17 @@ + $self->{_name} = $options{name}; + $self->{_path} = $options{path}; + $self->{_passphrase} = $options{passphrase}; ++ $self->{_signuser} = $options{signuser}; ++ $self->{_signscript} = $options{signscript}; + } + + sub run { + my ($self, $package, $repository, $target, $define) = @_; + croak "Not a class method" unless ref $self; + +- $package->sign( +- $self->{_name}, +- $self->{_path}, +- $self->{_passphrase} +- ) unless $self->{_test}; ++ if (! $self->{_test}) { ++ system('/usr/bin/sudo', '-u', $self->{_signuser}, $self->{_signscript}, $package->{_file}, $self->{_name}, $self->{_path}) == 0; ++ } + } + + =head1 COPYRIGHT AND LICENSE +-------------- next part -------------- +An HTML attachment was scrubbed... +URL: </pipermail/mageia-sysadm/attachments/20110120/8eb18b3d/attachment.html> +</PRE> + + + + + + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="002297.html">[Mageia-sysadm] Puppet Report for jonund.mageia.org +</A></li> + <LI>Next message: <A HREF="002299.html">[Mageia-sysadm] [332] move mga-signpackage to bin directory and add it in Makefile.PL +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#2298">[ date ]</a> + <a href="thread.html#2298">[ thread ]</a> + <a href="subject.html#2298">[ subject ]</a> + <a href="author.html#2298">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm +mailing list</a><br> +</body></html> |