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: 13-Feb-2004 12:37:16
Branch: HEAD Handle: 2004021311371600
Added files:
openpkg-src/rzip rzip.patch rzip.spec
Log:
new package: rzip 2.0 (De-/Compression with RZIP/BZIP2 Algorithm)
Summary:
Revision Changes Path
1.1 +44 -0 openpkg-src/rzip/rzip.patch
1.1 +89 -0 openpkg-src/rzip/rzip.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/rzip/rzip.patch
============================================================================
$ cvs diff -u -r0 -r1.1 rzip.patch
--- /dev/null 2004-02-13 12:37:16.000000000 +0100
+++ rzip.patch 2004-02-13 12:37:16.000000000 +0100
@@ -0,0 +1,44 @@
+Index: main.c
+--- main.c.orig 2004-02-12 01:01:08.000000000 +0100
++++ main.c 2004-02-13 12:32:13.000000000 +0100
+@@ -138,9 +138,20 @@
+ fatal("%s: unknown suffix\n", control->infile);
+ }
+
++#if 0
+ control->outfile = strndup(control->infile,
+ strlen(control->infile) -
+ strlen(control->suffix));
++#else
++ {
++ int n;
++ n = (strlen(control->infile) - strlen(control->suffix));
++ if ((control->outfile = malloc(n + 1)) == NULL)
++ fatal("failed to allocate memory\n");
++ memcpy(control->outfile, control->infile, n);
++ control->outfile[n] = '\0';
++ }
++#endif
+ }
+
+ fd_in = open(control->infile,O_RDONLY);
+Index: Makefile.in
+--- Makefile.in.orig 2003-10-06 13:53:00.000000000 +0200
++++ Makefile.in 2004-02-13 12:35:35.000000000 +0100
+@@ -9,6 +9,7 @@
+ [EMAIL PROTECTED]@
+ [EMAIL PROTECTED]@
+ [EMAIL PROTECTED]@
[EMAIL PROTECTED]@
+
+ [EMAIL PROTECTED]@
+
+@@ -37,7 +38,7 @@
+ ${INSTALLCMD} -m 644 $(srcdir)/rzip.1 ${INSTALL_MAN}/man1/
+
+ rzip: $(OBJS)
+- $(CC) $(CFLAGS) -o rzip $(OBJS) $(LIBS)
++ $(CC) $(LDFLAGS) -o rzip $(OBJS) $(LIBS)
+
+ rzip.1: rzip.yo
+ yodl2man -o rzip.1 rzip.yo
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/rzip/rzip.spec
============================================================================
$ cvs diff -u -r0 -r1.1 rzip.spec
--- /dev/null 2004-02-13 12:37:16.000000000 +0100
+++ rzip.spec 2004-02-13 12:37:16.000000000 +0100
@@ -0,0 +1,89 @@
+##
+## rzip.spec -- OpenPKG RPM Specification
+## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
+## Copyright (c) 2000-2004 Ralf S. Engelschall <[EMAIL PROTECTED]>
+## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.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: rzip
+Summary: De-/Compression with RZIP/BZIP2 Algorithm
+URL: http://rzip.samba.org/
+Vendor: Andrew Tridgell
+Packager: The OpenPKG Project
+Distribution: OpenPKG
+Class: EVAL
+Group: Compression
+License: GPL
+Version: 2.0
+Release: 20040213
+
+# list of sources
+Source0: http://rzip.samba.org/ftp/rzip/rzip-%{version}.tar.gz
+Patch0: rzip.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20040130, bzip
+PreReq: OpenPKG, openpkg >= 20040130, bzip
+AutoReq: no
+AutoReqProv: no
+
+%description
+ RZIP is a compression program, similar in functionality to GZIP
+ and BZIP2, but able to take advantage long distance redundancies
+ in files, which can sometimes allow RZIP to produce much better
+ compression ratios than other programs. The original idea behind
+ RZIP is described in the PhD thesis of Andrew Tridgell.
+
+%track
+ prog rzip = {
+ version = %{version}
+ url = http://rzip.samba.org/ftp/rzip/
+ regex = rzip-(__VER__)\.tar\.gz
+ }
+
+%prep
+ %setup -q
+ %patch -p0
+
+%build
+ CC="%{l_cc}" \
+ CFLAGS="%{l_cflags -O} %{l_cppflags}" \
+ LDFLAGS="%{l_ldflags}" \
+ ./configure \
+ --prefix=%{l_prefix}
+ %{l_make} %{l_mflags -O}
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ %{l_make} %{l_mflags} install \
+ prefix=$RPM_BUILD_ROOT%{l_prefix} \
+ exec_prefix=$RPM_BUILD_ROOT%{l_prefix}
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]