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/002299.html | 169 +++++++++++++++++++++++++ 1 file changed, 169 insertions(+) create mode 100644 zarb-ml/mageia-sysadm/2011-January/002299.html (limited to 'zarb-ml/mageia-sysadm/2011-January/002299.html') diff --git a/zarb-ml/mageia-sysadm/2011-January/002299.html b/zarb-ml/mageia-sysadm/2011-January/002299.html new file mode 100644 index 000000000..111951a04 --- /dev/null +++ b/zarb-ml/mageia-sysadm/2011-January/002299.html @@ -0,0 +1,169 @@ + + + + [Mageia-sysadm] [332] move mga-signpackage to bin directory and add it in Makefile.PL + + + + + + + + + +

[Mageia-sysadm] [332] move mga-signpackage to bin directory and add it in Makefile.PL

+ root at mageia.org + root at mageia.org +
+ Thu Jan 20 18:35:27 CET 2011 +

+
+ +
Revision: 332
+Author:   boklm
+Date:     2011-01-20 18:35:27 +0100 (Thu, 20 Jan 2011)
+Log Message:
+-----------
+move mga-signpackage to bin directory and add it in Makefile.PL
+
+Modified Paths:
+--------------
+    build_system/mdv-youri-submit/trunk/Makefile.PL
+
+Added Paths:
+-----------
+    build_system/mdv-youri-submit/trunk/bin/mga-signpackage
+
+Removed Paths:
+-------------
+    build_system/mdv-youri-submit/trunk/mga-signpackage
+
+Modified: build_system/mdv-youri-submit/trunk/Makefile.PL
+===================================================================
+--- build_system/mdv-youri-submit/trunk/Makefile.PL	2011-01-20 17:10:16 UTC (rev 331)
++++ build_system/mdv-youri-submit/trunk/Makefile.PL	2011-01-20 17:35:27 UTC (rev 332)
+@@ -9,7 +9,8 @@
+     EXE_FILES  => [
+         'bin/youri-submit',
+         'bin/youri-submit-restricted',
+-        'bin/youri-submit-proxy'
++        'bin/youri-submit-proxy',
++	'bin/mga-signpackage'
+         ],
+     PREREQ_PM  => {
+         'Youri::Config'          => 0,
+
+Copied: build_system/mdv-youri-submit/trunk/bin/mga-signpackage (from rev 331, build_system/mdv-youri-submit/trunk/mga-signpackage)
+===================================================================
+--- build_system/mdv-youri-submit/trunk/bin/mga-signpackage	                        (rev 0)
++++ build_system/mdv-youri-submit/trunk/bin/mga-signpackage	2011-01-20 17:35:27 UTC (rev 332)
+@@ -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);
++
+
+Deleted: build_system/mdv-youri-submit/trunk/mga-signpackage
+===================================================================
+--- build_system/mdv-youri-submit/trunk/mga-signpackage	2011-01-20 17:10:16 UTC (rev 331)
++++ build_system/mdv-youri-submit/trunk/mga-signpackage	2011-01-20 17:35:27 UTC (rev 332)
+@@ -1,29 +0,0 @@
+-#!/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);
+-
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: </pipermail/mageia-sysadm/attachments/20110120/3ef83f59/attachment-0001.html>
+
+ + + + + + + + + + +
+

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