OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   28-Nov-2003 23:47:58
  Branch: HEAD                             Handle: 2003112822475800

  Added files:
    openpkg-src/apt         sources.list
  Modified files:
    openpkg-src/apt         apt.conf apt.patch apt.spec

  Log:
    remove path fiddling until I have a complete solution; add
    sources.list file template; fix lib directory path

  Summary:
    Revision    Changes     Path
    1.2         +5  -0      openpkg-src/apt/apt.conf
    1.12        +0  -119    openpkg-src/apt/apt.patch
    1.9         +5  -3      openpkg-src/apt/apt.spec
    1.1         +7  -0      openpkg-src/apt/sources.list
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/apt/apt.conf
  ============================================================================
  $ cvs diff -u -r1.1 -r1.2 apt.conf
  --- openpkg-src/apt/apt.conf  13 Sep 2003 19:38:25 -0000      1.1
  +++ openpkg-src/apt/apt.conf  28 Nov 2003 22:47:58 -0000      1.2
  @@ -1 +1,6 @@
  +//
  +//  apt.conf -- APT configuration
  +//
  +
   apt::system "rpm interface";
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/apt/apt.patch
  ============================================================================
  $ cvs diff -u -r1.11 -r1.12 apt.patch
  --- openpkg-src/apt/apt.patch 28 Nov 2003 22:09:23 -0000      1.11
  +++ openpkg-src/apt/apt.patch 28 Nov 2003 22:47:58 -0000      1.12
  @@ -76,74 +76,6 @@
    #include <rpm/rpmlib.h>
    #include <rpm/rpmmacro.h>
    
  -Index: apt-pkg/rpm/rpmindexfile.cc
  ---- apt-pkg/rpm/rpmindexfile.cc.orig 2003-11-24 17:58:58.000000000 +0100
  -+++ apt-pkg/rpm/rpmindexfile.cc      2003-11-28 23:01:52.000000000 +0100
  -@@ -58,7 +58,7 @@
  -      Res = URI;
  -    }
  -    else
  --      Res = URI + Dist + "/base/";
  -+      Res = URI + Dist + "/";
  - 
  -    Res += Type;
  -    
  -@@ -145,7 +145,7 @@
  -      Res = URI;
  -    }
  -    else
  --      Res = URI + Dist + "/base/";
  -+      Res = URI + Dist + "/";
  -    
  -    Res += Type + '.' + Section;
  - 
  -@@ -277,8 +277,8 @@
  -    if (Repository->IsAuthenticated() == true && 
  -        Repository->HasRelease() == false)
  -       return true;
  --   new pkgAcqIndex(Owner,Repository,IndexURI("srclist"),Info("srclist"),
  --               "srclist");
  -+   new 
pkgAcqIndex(Owner,Repository,IndexURI("00INDEX.apt-srclist"),Info("00INDEX.apt-srclist"),
  -+               "00INDEX.apt-srclist");
  -    return true;
  - }
  -                                                                     /*}}}*/
  -@@ -347,10 +347,10 @@
  -    if (Repository->IsAuthenticated() == true && 
  -        Repository->HasRelease() == false)
  -       return true;
  --   new pkgAcqIndex(Owner,Repository,IndexURI("pkglist"),Info("pkglist"),
  --               "pkglist");
  --   new pkgAcqIndexRel(Owner,Repository,IndexURI("release"),Info("release"),
  --                  "release");
  -+   new 
pkgAcqIndex(Owner,Repository,IndexURI("00INDEX.apt-pkglist"),Info("00INDEX.apt-pkglist"),
  -+               "00INDEX.apt-pkglist");
  -+   new 
pkgAcqIndexRel(Owner,Repository,IndexURI("00INDEX.apt-release"),Info("00INDEX.apt-release"),
  -+                  "00INDEX.apt-release");
  -    return true;
  - }
  -                                                                     /*}}}*/
  -@@ -424,7 +424,7 @@
  -       return _error->Error(_("Problem opening %s"),PackageFile.c_str());
  -    }
  -    // We call SubProgress with Size(), since we won't call SelectFile() here.
  --   Prog.SubProgress(Size(),Info("pkglist"));
  -+   Prog.SubProgress(Size(),Info("00INDEX.apt-pkglist"));
  -    if (Gen.MergeFileProvides(Parser) == false)
  -       return _error->Error(_("Problem with MergeFileProvides %s"),
  -                        PackageFile.c_str());
  -Index: apt-pkg/rpm/rpmindexfile.h
  ---- apt-pkg/rpm/rpmindexfile.h.orig  2003-11-24 17:58:58.000000000 +0100
  -+++ apt-pkg/rpm/rpmindexfile.h       2003-11-28 23:01:52.000000000 +0100
  -@@ -140,7 +140,7 @@
  - {
  -    protected:
  - 
  --   virtual string MainType() const {return "srclist";}
  -+   virtual string MainType() const {return "00INDEX.apt-srclist";}
  - 
  -    public:
  - 
   Index: apt-pkg/rpm/rpmpackagedata.cc
   --- apt-pkg/rpm/rpmpackagedata.cc.orig       2003-11-24 17:58:55.000000000 +0100
   +++ apt-pkg/rpm/rpmpackagedata.cc    2003-11-28 23:01:52.000000000 +0100
  @@ -473,32 +405,6 @@
            int (* cmp)(const void *, const void *))
    
    {
  -@@ -544,10 +544,10 @@
  -      rpmsdir = string(op_dir);
  -       }
  -    }
  --   pkglist_path = string(rpmsdir);
  --   rpmsdir = rpmsdir + "/RPMS." + string(op_suf);
  -+   pkglist_path = rpmsdir + "/" + string(op_suf);
  -+   rpmsdir = rpmsdir + "/" + string(op_suf);
  - 
  --   string dirtag = "RPMS." + string(op_suf);
  -+   string dirtag = string(op_suf);
  - 
  -    entry_no = scandir(rpmsdir.c_str(), &dirEntries, selectDirent, alphasort);
  -    if (entry_no < 0) {
  -@@ -559,9 +559,9 @@
  -    chdir(rpmsdir.c_str());
  -    
  -    if (pkgListSuffix != NULL)
  --       pkglist_path = pkglist_path + "/base/pkglist." + pkgListSuffix;
  -+       pkglist_path = pkglist_path + "/00INDEX.apt-pkglist." + pkgListSuffix;
  -    else
  --       pkglist_path = pkglist_path + "/base/pkglist." + op_suf;
  -+       pkglist_path = pkglist_path + "/00INDEX.apt-pkglist." + op_suf;
  -    
  -    
  -    if (pkgListAppend == true && FileExists(pkglist_path)) {
   Index: tools/gensrclist.cc
   --- tools/gensrclist.cc.orig 2003-11-24 17:58:34.000000000 +0100
   +++ tools/gensrclist.cc      2003-11-28 23:01:52.000000000 +0100
  @@ -605,28 +511,3 @@
    int main(int argc, char ** argv) 
    {
       char buf[300];
  -@@ -199,10 +282,10 @@
  -    } else
  -        strcpy(buf, arg_dir);
  -    
  --   strcat(buf, "/SRPMS.");
  -+   strcat(buf, "/");
  -    strcat(buf, arg_suffix);
  -    
  --   srpmdir = "SRPMS." + string(arg_suffix);
  -+   srpmdir = string(arg_suffix);
  - #ifdef OLD_FLATSCHEME
  -    if (flatStructure) {
  -       // add the last component of the directory to srpmdir
  -@@ -234,9 +317,9 @@
  -    chdir(buf);
  -    
  -    if (srcListSuffix != NULL)
  --      sprintf(buf, "%s/srclist.%s", cwd, srcListSuffix);
  -+      sprintf(buf, "00INDEX.apt-srclist.%s", srcListSuffix);
  -    else
  --      sprintf(buf, "%s/srclist.%s", cwd, arg_suffix);
  -+      sprintf(buf, "00INDEX.apt-srclist.%s", arg_suffix);
  -    
  -    if (srcListAppend == true && FileExists(buf)) {
  -       outfd = fdOpen(buf, O_WRONLY|O_APPEND, 0644);
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/apt/apt.spec
  ============================================================================
  $ cvs diff -u -r1.8 -r1.9 apt.spec
  --- openpkg-src/apt/apt.spec  28 Nov 2003 21:44:56 -0000      1.8
  +++ openpkg-src/apt/apt.spec  28 Nov 2003 22:47:58 -0000      1.9
  @@ -43,6 +43,7 @@
   Source0:      
http://moin.conectiva.com.br/files/AptRpm/attachments/apt-%{V_base}cnc%{V_rev}.tar.bz2
   Source1:      apt.conf
   Source2:      rpmpriorities
  +Source3:      sources.list
   Patch0:       apt.patch
   
   #   build information
  @@ -91,7 +92,7 @@
       LDFLAGS="%{l_ldflags} `%{l_prefix}/bin/rpm-config --ldflags`" \
       ./configure \
           --prefix=%{l_prefix} \
  -        --libdir=%{l_prefix}/lib/apt \
  +        --libdir=%{l_prefix}/lib \
           --localstatedir=%{l_prefix}/var/apt \
           --disable-shared \
           --enable-static \
  @@ -126,9 +127,10 @@
   
       #   install default (blank) configuration files
       %{l_shtool} mkdir -p -m 755 \
  -        $RPM_BUILD_ROOT%{l_prefix}/etc/apt
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/apt/apt \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/apt/apt.conf.d
       %{l_shtool} install -c -m 644 %{l_value -s -a} \
  -        %{SOURCE apt.conf} %{SOURCE rpmpriorities} \
  +        %{SOURCE apt.conf} %{SOURCE rpmpriorities} %{SOURCE sources.list} \
           $RPM_BUILD_ROOT%{l_prefix}/etc/apt/
   
       #   strip down installation
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/apt/sources.list
  ============================================================================
  $ cvs diff -u -r0 -r1.1 sources.list
  --- /dev/null 2003-11-28 23:47:58.000000000 +0100
  +++ sources.list      2003-11-28 23:47:58.000000000 +0100
  @@ -0,0 +1,7 @@
  +##  
  +##  sources.list -- APT package source list
  +##
  +
  +rpm     ftp://ftp.openpkg.org/ private/apt current
  +rpm-src ftp://ftp.openpkg.org/ private/apt current
  +
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to