rpms/apt-mirror/devel Debian-mirror.list, NONE, 1.1 apt-mirror.patch, NONE, 1.1 apt-mirror.spec, NONE, 1.1 clean.sh, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Simon Wesp cassmodiah at fedoraproject.org
Thu Oct 16 12:22:31 UTC 2008


Author: cassmodiah

Update of /cvs/pkgs/rpms/apt-mirror/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17272/devel

Modified Files:
	.cvsignore sources 
Added Files:
	Debian-mirror.list apt-mirror.patch apt-mirror.spec clean.sh 
	import.log 
Log Message:



--- NEW FILE Debian-mirror.list ---
# apt-mirror configuration file

##
## The default configuration options (uncomment and change to override)
##
#
# set base_path	   /var/spool/apt-mirror
# set mirror_path  $base_path/mirror
# set skel_path	   $base_path/skel
# set var_path     $base_path/var
#
# set defaultarch  <running host architecture>
# set nthreads     20
#

##
## Example sources
##

deb http://ftp.us.debian.org/debian unstable main contrib non-free
deb-src http://ftp.us.debian.org/debian unstable main contrib non-free


##
## Cleaner configuration example
##
#
# set cleanscript $var_path/clean.sh
#
# Cleaning section

clean http://ftp.us.debian.org/debian

apt-mirror.patch:

--- NEW FILE apt-mirror.patch ---
--- apt-mirror-0.4.5/apt-mirror.orig	2008-09-27 14:18:46.000000000 +0200
+++ apt-mirror-0.4.5/apt-mirror	2008-09-28 20:54:08.000000000 +0200
@@ -27,7 +27,7 @@
 
 =head1 COMMENTS
 
-apt-mirror uses F</etc/apt/mirror.list> as a configuration file.
+apt-mirror uses F</etc/apt-mirror.list> as a configuration file.
 By default it is tuned to official debian mirror in Finland. Change
 it for your needs.
 
@@ -39,7 +39,7 @@
 
 =head1 FILES
 
-F</etc/apt/mirror.list>
+F</etc/apt-mirror.list>
         Main configuration file
 
 F</etc/cron.d/apt-mirror>
@@ -96,7 +96,7 @@
 ######################################################################################
 ## Setting up $config_file variable
 
-$config_file = "/etc/apt/mirror.list";	# Default value
+$config_file = "/etc/apt-mirror.list";	# Default value
 if($_ = shift) {
     die("apt-mirror: invalid config file specified") unless -f $_;
     $config_file = $_;


--- NEW FILE apt-mirror.spec ---
Name:            apt-mirror
Version:         0.4.5
Release:         3%{?dist}
Summary:         APT sources mirroring tool

Group:           Development/Tools
License:         GPLv2+
# proof of licensing: http://packages.debian.org/changelogs/pool/main/a/apt-mirror/apt-mirror_0.4.5-1/apt-mirror.copyright (GPLv2+)
URL:             http://apt-mirror.sourceforge.net/
Source0:         http://downloads.sourceforge.net/%{name}/%{name}_%{version}.orig.tar.gz
Source1:         Debian-mirror.list
Source2:         clean.sh
Patch0:          %{name}.patch
BuildArch:       noarch
BuildRoot:       %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Requires:        wget


%description
A small and efficient tool that lets you mirror a part of or
the whole Debian GNU/Linux distribution or any other apt sources.

Main features:
 * It uses a config similar to apts <sources.list>
 * It's fully pool comply
 * It supports multithreaded downloading
 * It supports multiple architectures at the same time
 * It can automatically remove unneeded files
 * It works well on overloaded channel to internet
 * It never produces an inconsistent mirror including while mirroring
 * It works on all POSIX complied systems with perl and wget

%prep
%setup -q
%patch0 -p1 -b .mirror


%build


%install
rm -rf %{buildroot}

mkdir -p \
      %{buildroot}/var/spool/%{name}/var

mkdir -p \
      %{buildroot}/var/spool/%{name}/skel

mkdir -p \
      %{buildroot}/var/spool/%{name}/mirror

install -Dpm 755 %{name} \
        %{buildroot}%{_sbindir}/%{name}

install -Dpm 644 %{SOURCE1} \
        %{buildroot}%{_sysconfdir}/%{name}.list

mkdir -p %{buildroot}%{_mandir}/man1/
      pod2man %{name} | gzip -9 -c > %{name}.1.gz
      install -p -m 0644 %{name}.1.gz \
      %{buildroot}%{_mandir}/man1/%{name}.1.gz

install -Dpm 755 %{SOURCE2} \
        %{buildroot}/var/spool/%{name}/var/clean.sh


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc CHANGELOG TODO
%{_sbindir}/%{name}
%{_mandir}/man1/%{name}.1.gz
%config (noreplace) %{_sysconfdir}/%{name}.list
/var/spool/%{name}/


%changelog
* Sun Sep 28 2008 Simon Wesp <cassmodiah at fedoraproject.org> 0.4.5-3
- Correct License #464308 Comment 1 and add a comment below License-Tag

* Sun Sep 28 2008 Simon Wesp <cassmodiah at fedoraproject.org> 0.4.5-2
- Correct spec - Bug #464308 Comment 1
- Add Dummyfile to use clean.sh

* Sat Sep 27 2008 Simon Wesp <cassmodiah at fedoraproject.org> 0.4.5-1
- Initial Release


--- NEW FILE clean.sh ---
#!/bin/sh
echo "this is just a dummy file"
# this is just a dummyfile to set permission
# the apt-mirror-script will replace this content
# and the permission will survive


--- NEW FILE import.log ---
apt-mirror-0_4_5-3_fc10:HEAD:apt-mirror-0.4.5-3.fc10.src.rpm:1224159670


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/apt-mirror/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	13 Oct 2008 02:12:25 -0000	1.1
+++ .cvsignore	16 Oct 2008 12:22:01 -0000	1.2
@@ -0,0 +1 @@
+apt-mirror_0.4.5.orig.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/apt-mirror/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	13 Oct 2008 02:12:25 -0000	1.1
+++ sources	16 Oct 2008 12:22:01 -0000	1.2
@@ -0,0 +1 @@
+2db8e53ffed8c074ec40c2d2a6e88f88  apt-mirror_0.4.5.orig.tar.gz




More information about the fedora-extras-commits mailing list