summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2011-January/002296.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-sysadm/2011-January/002296.html')
-rw-r--r--zarb-ml/mageia-sysadm/2011-January/002296.html117
1 files changed, 117 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2011-January/002296.html b/zarb-ml/mageia-sysadm/2011-January/002296.html
new file mode 100644
index 000000000..279635794
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/2011-January/002296.html
@@ -0,0 +1,117 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-sysadm] [330] add script to sign package
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B330%5D%20add%20script%20to%20sign%20package&In-Reply-To=%3C20110120163850.EDD5842B76%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="002295.html">
+ <LINK REL="Next" HREF="002297.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-sysadm] [330] add script to sign package</H1>
+ <B>root at mageia.org</B>
+ <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B330%5D%20add%20script%20to%20sign%20package&In-Reply-To=%3C20110120163850.EDD5842B76%40valstar.mageia.org%3E"
+ TITLE="[Mageia-sysadm] [330] add script to sign package">root at mageia.org
+ </A><BR>
+ <I>Thu Jan 20 17:38:50 CET 2011</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="002295.html">[Mageia-sysadm] Puppet Report for jonund.mageia.org
+</A></li>
+ <LI>Next message: <A HREF="002297.html">[Mageia-sysadm] Puppet Report for jonund.mageia.org
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#2296">[ date ]</a>
+ <a href="thread.html#2296">[ thread ]</a>
+ <a href="subject.html#2296">[ subject ]</a>
+ <a href="author.html#2296">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Revision: 330
+Author: boklm
+Date: 2011-01-20 17:38:50 +0100 (Thu, 20 Jan 2011)
+Log Message:
+-----------
+add script to sign package
+
+Added Paths:
+-----------
+ build_system/mdv-youri-submit/trunk/mga-signpackage
+
+Added: build_system/mdv-youri-submit/trunk/mga-signpackage
+===================================================================
+--- build_system/mdv-youri-submit/trunk/mga-signpackage (rev 0)
++++ build_system/mdv-youri-submit/trunk/mga-signpackage 2011-01-20 16:38:50 UTC (rev 330)
+@@ -0,0 +1,29 @@
++#!/usr/bin/perl -w
++
++use strict;
++use RPM4::Sign;
++use File::Spec;
++
++sub signpackage {
++ my ($file, $name, $path) = @_;
++
++ # check if parent directory is writable
++ my $parent = (File::Spec-&gt;splitpath($file))[1];
++ die &quot;Unsignable package, parent directory is read-only&quot;
++ unless -w $parent;
++
++ my $sign = RPM4::Sign-&gt;new(
++ name =&gt; $name,
++ path =&gt; $path,
++ passphrase =&gt; '',
++ );
++
++ $sign-&gt;rpmssign($file)
++}
++
++if (@ARGV != 3) {
++ exit 1;
++}
++
++signpackage(@ARGV);
++
+
+
+Property changes on: build_system/mdv-youri-submit/trunk/mga-signpackage
+___________________________________________________________________
+Added: svn:executable
+ + *
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: &lt;/pipermail/mageia-sysadm/attachments/20110120/49ef163e/attachment.html&gt;
+</PRE>
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="002295.html">[Mageia-sysadm] Puppet Report for jonund.mageia.org
+</A></li>
+ <LI>Next message: <A HREF="002297.html">[Mageia-sysadm] Puppet Report for jonund.mageia.org
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#2296">[ date ]</a>
+ <a href="thread.html#2296">[ thread ]</a>
+ <a href="subject.html#2296">[ subject ]</a>
+ <a href="author.html#2296">[ 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>