From 1be510f9529cb082f802408b472a77d074b394c0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sun, 14 Apr 2013 13:46:12 +0000 Subject: Add zarb MLs html archives --- zarb-ml/mageia-sysadm/2011-January/002296.html | 117 +++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 zarb-ml/mageia-sysadm/2011-January/002296.html (limited to 'zarb-ml/mageia-sysadm/2011-January/002296.html') 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 @@ + + + + [Mageia-sysadm] [330] add script to sign package + + + + + + + + + +

[Mageia-sysadm] [330] add script to sign package

+ root at mageia.org + root at mageia.org +
+ Thu Jan 20 17:38:50 CET 2011 +

+
+ +
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->splitpath($file))[1];
++    die "Unsignable package, parent directory is read-only"
++        unless -w $parent;
++
++    my $sign = RPM4::Sign->new(
++        name => $name,
++        path => $path,
++	passphrase => '',
++    );
++
++    $sign->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: </pipermail/mageia-sysadm/attachments/20110120/49ef163e/attachment.html>
+
+ + + + + + + + + + +
+

+ +
+More information about the Mageia-sysadm +mailing list
+ -- cgit v1.2.1