SF.net SVN: gar:[25194] csw/mgar/pkg/apt-mirror/trunk/files/ 0001-Adapt-to-OpenCSW-file-system-layout.patch
pfelecan at users.sourceforge.net
pfelecan at users.sourceforge.net
Sat Aug 8 11:10:24 CEST 2015
Revision: 25194
http://sourceforge.net/p/gar/code/25194
Author: pfelecan
Date: 2015-08-08 09:10:24 +0000 (Sat, 08 Aug 2015)
Log Message:
-----------
refresh OpenCSW adaptation patch.
Modified Paths:
--------------
csw/mgar/pkg/apt-mirror/trunk/files/0001-Adapt-to-OpenCSW-file-system-layout.patch
Modified: csw/mgar/pkg/apt-mirror/trunk/files/0001-Adapt-to-OpenCSW-file-system-layout.patch
===================================================================
--- csw/mgar/pkg/apt-mirror/trunk/files/0001-Adapt-to-OpenCSW-file-system-layout.patch 2015-08-07 18:16:24 UTC (rev 25193)
+++ csw/mgar/pkg/apt-mirror/trunk/files/0001-Adapt-to-OpenCSW-file-system-layout.patch 2015-08-08 09:10:24 UTC (rev 25194)
@@ -1,18 +1,21 @@
-From a6e093a3f09a8a1903b6ff1d5cf5597df65a08f0 Mon Sep 17 00:00:00 2001
+From 92ddc7ed7af198fd3dc05bb1451baf2185f3afd0 Mon Sep 17 00:00:00 2001
From: Peter Felecan <pfelecan at opencsw.org>
-Date: Wed, 8 Jan 2014 09:25:17 +0100
+Date: Sat, 8 Aug 2015 11:01:32 +0200
Subject: [PATCH] Adapt to OpenCSW file system layout
---
- apt-mirror | 18 +++++++++---------
- 1 file changed, 9 insertions(+), 9 deletions(-)
+ apt-mirror | 20 ++++++++++----------
+ 1 file changed, 10 insertions(+), 10 deletions(-)
+ mode change 100755 => 100644 apt-mirror
diff --git a/apt-mirror b/apt-mirror
-index 989561c..e0123d1 100755
+old mode 100755
+new mode 100644
+index 42a92d2..4672f9f
--- a/apt-mirror
+++ b/apt-mirror
@@ -1,4 +1,4 @@
--#!/usr/bin/perl -w
+-#!/usr/bin/perl
+#!/usr/bin/env perl -w
=pod
@@ -26,7 +29,7 @@
By default it is tuned to official Debian or Ubuntu mirrors. Change
it for your needs.
-@@ -39,19 +39,19 @@ Or uncomment line in F</etc/cron.d/apt-mirror> to enable daily mirror updates.
+@@ -39,20 +39,20 @@ Or uncomment the line in F</etc/cron.d/apt-mirror> to enable daily mirror update
=head1 FILES
@@ -46,15 +49,17 @@
Place for temporarily downloaded indexes
-F</var/spool/apt-mirror/var>
+- Log files placed here. URLs and MD5 checksums also here.
+F</var/opt/csw/apt-mirror/var>
- Log files placed here. URLs and MD5 sums also here.
++ Log files placed here. URLs and MD5 sums also here.
=head1 CONFIGURATION EXAMPLES
-@@ -96,9 +96,9 @@ use Fcntl qw(:flock);
+
+@@ -98,9 +98,9 @@ use Fcntl qw(:flock);
my $config_file;
my %config_variables = (
-- "defaultarch" => `dpkg --print-installation-architecture 2>/dev/null` || 'i386',
+- "defaultarch" => `dpkg --print-architecture 2>/dev/null` || 'i386',
+ "defaultarch" => 'i386',
"nthreads" => 20,
- "base_path" => '/var/spool/apt-mirror',
@@ -62,7 +67,7 @@
"mirror_path" => '$base_path/mirror',
"skel_path" => '$base_path/skel',
"var_path" => '$base_path/var',
-@@ -125,7 +125,7 @@ my %clean_directory = ();
+@@ -131,7 +131,7 @@ my %clean_directory = ();
######################################################################################
## Setting up $config_file variable
@@ -72,5 +77,5 @@
{
die("apt-mirror: invalid config file specified") unless -f $_;
--
-1.8.4.1
+2.3.3
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list