Pārlūkot izejas kodu

new package: dpkg 1.13.24 (Debian Package Management Toolchain)

Ralf S. Engelschall 19 gadi atpakaļ
vecāks
revīzija
6766ee39da
2 mainītis faili ar 222 papildinājumiem un 0 dzēšanām
  1. 113 0
      dpkg/dpkg.patch
  2. 109 0
      dpkg/dpkg.spec

+ 113 - 0
dpkg/dpkg.patch

@@ -0,0 +1,113 @@
+Index: dpkg-deb/Makefile.in
+--- dpkg-deb/Makefile.in.orig	2006-10-13 15:37:53 +0200
++++ dpkg-deb/Makefile.in	2006-11-18 14:11:58 +0100
+@@ -140,7 +140,7 @@
+ LIBICONV = @LIBICONV@
+ LIBINTL = @LIBINTL@
+ LIBOBJS = @LIBOBJS@
+-LIBS = @LIBS@
++LIBS = $(top_builddir)/getopt/libopt.a @LIBS@
+ LTLIBICONV = @LTLIBICONV@
+ LTLIBINTL = @LTLIBINTL@
+ LTLIBOBJS = @LTLIBOBJS@
+Index: dpkg-split/Makefile.in
+--- dpkg-split/Makefile.in.orig	2006-10-13 15:37:54 +0200
++++ dpkg-split/Makefile.in	2006-11-18 14:11:58 +0100
+@@ -141,7 +141,7 @@
+ LIBICONV = @LIBICONV@
+ LIBINTL = @LIBINTL@
+ LIBOBJS = @LIBOBJS@
+-LIBS = @LIBS@
++LIBS = $(top_builddir)/getopt/libopt.a @LIBS@
+ LTLIBICONV = @LTLIBICONV@
+ LTLIBINTL = @LTLIBINTL@
+ LTLIBOBJS = @LTLIBOBJS@
+Index: dselect/Makefile.in
+--- dselect/Makefile.in.orig	2006-10-13 15:37:54 +0200
++++ dselect/Makefile.in	2006-11-18 14:11:58 +0100
+@@ -156,7 +156,7 @@
+ LIBICONV = @LIBICONV@
+ LIBINTL = @LIBINTL@
+ LIBOBJS = @LIBOBJS@
+-LIBS = @LIBS@
++LIBS = $(top_builddir)/getopt/libopt.a @LIBS@
+ LTLIBICONV = @LTLIBICONV@
+ LTLIBINTL = @LTLIBINTL@
+ LTLIBOBJS = @LTLIBOBJS@
+Index: lib/Makefile.in
+--- lib/Makefile.in.orig	2006-10-13 15:37:55 +0200
++++ lib/Makefile.in	2006-11-18 14:11:58 +0100
+@@ -77,7 +77,7 @@
+ 	showcright.$(OBJEXT) showpkg.$(OBJEXT) tarfn.$(OBJEXT) \
+ 	utils.$(OBJEXT) varbuf.$(OBJEXT) vercmp.$(OBJEXT)
+ libdpkg_a_OBJECTS = $(am_libdpkg_a_OBJECTS)
+-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
++DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/getopt -I$(top_builddir)
+ depcomp = $(SHELL) $(top_srcdir)/config/depcomp
+ am__depfiles_maybe = depfiles
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+Index: lib/tarfn.c
+--- lib/tarfn.c.orig	2006-06-21 15:41:12 +0200
++++ lib/tarfn.c	2006-11-18 14:11:58 +0100
+@@ -60,7 +60,9 @@
+ 	int	len;
+ 	char *	str;
+ 
+-	len = strnlen(s, size);
++	len = strlen(s);
++    if (len > size)
++        len = size;
+ 	str = malloc(len + 1);
+ 	memcpy(str, s, len);
+ 	str[len] = 0;
+Index: man/Makefile.in
+--- man/Makefile.in.orig	2006-10-13 15:37:55 +0200
++++ man/Makefile.in	2006-11-18 14:11:58 +0100
+@@ -214,7 +214,7 @@
+ target_vendor = @target_vendor@
+ 
+ # po4a must be the first sub-directory because it generates the translations.
+-SUBDIRS = C po4a de es fr hu ja pl pt_BR ru sv
++SUBDIRS = C
+ all: all-recursive
+ 
+ .SUFFIXES:
+Index: scripts/Makefile.in
+--- scripts/Makefile.in.orig	2006-10-13 15:37:57 +0200
++++ scripts/Makefile.in	2006-11-18 14:14:34 +0100
+@@ -694,11 +694,11 @@
+ 	$(INSTALL_SCRIPT) install-info $(DESTDIR)$(sbindir)
+ 
+ install-data-local:
+-	$(mkdir_p) $(DESTDIR)$(sysconfdir)/alternatives
+-	$(INSTALL_DATA) $(srcdir)/README.alternatives $(DESTDIR)$(sysconfdir)/alternatives/README
++	$(mkdir_p) $(DESTDIR)$(sysconfdir)/dpkg/alternatives
++	$(INSTALL_DATA) $(srcdir)/README.alternatives $(DESTDIR)$(sysconfdir)/dpkg/alternatives/README
+ 
+ uninstall-local:
+-	rm -f $(DESTDIR)$(sysconfdir)/alternatives/README
++	rm -f $(DESTDIR)$(sysconfdir)/dpkg/alternatives/README
+ 	rm -f $(DESTDIR)$(sbindir)/install-info
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+Index: src/Makefile.in
+--- src/Makefile.in.orig	2006-10-13 15:37:58 +0200
++++ src/Makefile.in	2006-11-18 14:11:58 +0100
+@@ -82,7 +82,7 @@
+ 	query.$(OBJEXT)
+ dpkg_query_OBJECTS = $(am_dpkg_query_OBJECTS)
+ dpkg_query_DEPENDENCIES = $(am__DEPENDENCIES_1) ../lib/libdpkg.a
+-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
++DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/getopt -I$(top_builddir)
+ depcomp = $(SHELL) $(top_srcdir)/config/depcomp
+ am__depfiles_maybe = depfiles
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+@@ -147,7 +147,7 @@
+ LIBICONV = @LIBICONV@
+ LIBINTL = @LIBINTL@
+ LIBOBJS = @LIBOBJS@
+-LIBS = @LIBS@
++LIBS = $(top_builddir)/getopt/libopt.a @LIBS@
+ LTLIBICONV = @LTLIBICONV@
+ LTLIBINTL = @LTLIBINTL@
+ LTLIBOBJS = @LTLIBOBJS@

+ 109 - 0
dpkg/dpkg.spec

@@ -0,0 +1,109 @@
+##
+##  dpkg.spec -- OpenPKG RPM Package Specification
+##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
+##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
+##
+##  Permission to use, copy, modify, and distribute this software for
+##  any purpose with or without fee is hereby granted, provided that
+##  the above copyright notice and this permission notice appear in all
+##  copies.
+##
+##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+##  SUCH DAMAGE.
+##
+
+#   package information
+Name:         dpkg
+Summary:      Debian Package Management Toolchain
+URL:          http://packages.debian.org/dpkg
+Vendor:       Ian Jackson et al.
+Packager:     OpenPKG Foundation e.V.
+Distribution: OpenPKG Community
+Class:        EVAL
+Group:        Archiver
+License:      GPL
+Version:      1.13.24
+Release:      20061118
+
+#   list of sources
+Source0:      http://ftp.debian.org/debian/pool/main/d/dpkg/dpkg_%{version}.tar.gz
+Patch0:       dpkg.patch
+
+#   build information
+Prefix:       %{l_prefix}
+BuildRoot:    %{l_buildroot}
+BuildPreReq:  OpenPKG, openpkg >= 20040130, gcc, gcc::with_cxx = yes
+PreReq:       OpenPKG, openpkg >= 20040130
+BuildPreReq:  gettext, libiconv, bzip2, zlib
+PreReq:       gettext, libiconv, bzip2, zlib
+AutoReq:      no
+AutoReqProv:  no
+
+%description
+    dpkg is the heart of the Debian GNU/Linux package management
+    toolchain. It is the package format technology underlying APT and
+    other higher-level package management tools.
+
+%track
+    prog dpkg = {
+        version   = %{version}
+        url       = http://ftp.debian.org/debian/pool/main/d/dpkg/
+        regex     = dpkg_(__VER__)\.tar\.gz
+    }
+
+%prep
+    %setup -q
+    %patch -p0
+
+%build
+    CC="%{l_cc}" \
+    CXX="%{l_cxx}" \
+    CFLAGS="%{l_cflags -O}" \
+    CXXFLAGS="%{l_cxxflags -O}" \
+    CPPFLAGS="%{l_cppflags}" \
+    LDFLAGS="%{l_ldflags}" \
+    ./configure \
+        --prefix=%{l_prefix} \
+        --mandir=%{l_prefix}/man \
+        --with-libiconv-prefix=%{l_prefix} \
+        --with-libintl-prefix=%{l_prefix} \
+        --without-included-gettext \
+        --with-dselect \
+        --without-start-stop-daemon \
+        --with-admindir=%{l_prefix}/var/dpkg \
+        --with-zlib \
+        --with-bz2 \
+        --without-selinux
+    %{l_make} %{l_mflags}
+
+%install
+    rm -rf $RPM_BUILD_ROOT
+    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
+    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale
+    for bin in 822-date cleanup-info install-info update-alternatives; do
+        if [ -f $RPM_BUILD_ROOT%{l_prefix}/bin/$bin ]; then
+            mv  $RPM_BUILD_ROOT%{l_prefix}/bin/$bin \
+                $RPM_BUILD_ROOT%{l_prefix}/bin/dpkg-$bin
+        elif [ -f $RPM_BUILD_ROOT%{l_prefix}/sbin/$bin ]; then
+            mv  $RPM_BUILD_ROOT%{l_prefix}/sbin/$bin \
+                $RPM_BUILD_ROOT%{l_prefix}/sbin/dpkg-$bin
+        fi
+    done
+    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%files -f files
+
+%clean
+    rm -rf $RPM_BUILD_ROOT
+