summaryrefslogtreecommitdiffstats
path: root/bzip2
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2010-12-11 19:15:23 +0100
committerLukc <lukc@upyum.com>2010-12-11 19:15:35 +0100
commit6d908a38e05b9d4135c65d23114a5874215b5bb8 (patch)
treeb5e6da6d95b9a1235d82032b509b80483a886ff5 /bzip2
downloadbase-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.gz
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.bz2
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.xz
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.zip
Engagement initial.
Diffstat (limited to 'bzip2')
-rw-r--r--bzip2/.footprint33
-rw-r--r--bzip2/.md5sum2
-rw-r--r--bzip2/Pkgfile19
-rw-r--r--bzip2/Pkgfile.old21
-rw-r--r--bzip2/bzip2.patch162
5 files changed, 237 insertions, 0 deletions
diff --git a/bzip2/.footprint b/bzip2/.footprint
new file mode 100644
index 0000000..2c1ca92
--- /dev/null
+++ b/bzip2/.footprint
@@ -0,0 +1,33 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+lrwxrwxrwx root/root usr/bin/bunzip2 -> bzip2
+lrwxrwxrwx root/root usr/bin/bzcat -> bzip2
+lrwxrwxrwx root/root usr/bin/bzcmp -> bzdiff
+-rwxr-xr-x root/root usr/bin/bzdiff
+lrwxrwxrwx root/root usr/bin/bzegrep -> bzgrep
+lrwxrwxrwx root/root usr/bin/bzfgrep -> bzgrep
+-rwxr-xr-x root/root usr/bin/bzgrep
+-rwxr-xr-x root/root usr/bin/bzip2
+-rwxr-xr-x root/root usr/bin/bzip2recover
+lrwxrwxrwx root/root usr/bin/bzless -> bzmore
+-rwxr-xr-x root/root usr/bin/bzmore
+drwxr-xr-x root/root usr/include/
+-rw-r--r-- root/root usr/include/bzlib.h
+drwxr-xr-x root/root usr/lib/
+-rw-r--r-- root/root usr/lib/libbz2.a
+lrwxrwxrwx root/root usr/lib/libbz2.so -> libbz2.so.1.0
+lrwxrwxrwx root/root usr/lib/libbz2.so.1.0 -> libbz2.so.1.0.6
+-rwxr-xr-x root/root usr/lib/libbz2.so.1.0.6
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man1/
+lrwxrwxrwx root/root usr/man/man1/bunzip2.1.gz -> bzip2.1.gz
+lrwxrwxrwx root/root usr/man/man1/bzcat.1.gz -> bzip2.1.gz
+lrwxrwxrwx root/root usr/man/man1/bzcmp.1.gz -> bzdiff.1.gz
+-rw-r--r-- root/root usr/man/man1/bzdiff.1.gz
+lrwxrwxrwx root/root usr/man/man1/bzegrep.1.gz -> bzgrep.1.gz
+lrwxrwxrwx root/root usr/man/man1/bzfgrep.1.gz -> bzgrep.1.gz
+-rw-r--r-- root/root usr/man/man1/bzgrep.1.gz
+-rw-r--r-- root/root usr/man/man1/bzip2.1.gz
+lrwxrwxrwx root/root usr/man/man1/bzip2recover.1.gz -> bzip2.1.gz
+lrwxrwxrwx root/root usr/man/man1/bzless.1.gz -> bzmore.1.gz
+-rw-r--r-- root/root usr/man/man1/bzmore.1.gz
diff --git a/bzip2/.md5sum b/bzip2/.md5sum
new file mode 100644
index 0000000..fb5468a
--- /dev/null
+++ b/bzip2/.md5sum
@@ -0,0 +1,2 @@
+00b516f4704d4a7cb50a1d97e6e8e15b bzip2-1.0.6.tar.gz
+21bba891a5e515d69fa6ca6b11eac726 bzip2.patch
diff --git a/bzip2/Pkgfile b/bzip2/Pkgfile
new file mode 100644
index 0000000..ac9a271
--- /dev/null
+++ b/bzip2/Pkgfile
@@ -0,0 +1,19 @@
+description="Very high-quality data compression program"
+packager=""
+maintainer="CRUX System Team, core-ports at crux dot nu"
+url="http://www.bzip.org/"
+depends=()
+
+name=bzip2
+version=1.0.6
+release=1
+source=(http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz bzip2.patch)
+build ()
+{
+ cd $name-$version;
+ patch -Np1 -i $SRC/$name.patch;
+ make;
+ make PREFIX=$PKG/usr install;
+ make -f Makefile-libbz2_so;
+ make -f Makefile-libbz2_so PREFIX=$PKG/usr install
+}
diff --git a/bzip2/Pkgfile.old b/bzip2/Pkgfile.old
new file mode 100644
index 0000000..650cefe
--- /dev/null
+++ b/bzip2/Pkgfile.old
@@ -0,0 +1,21 @@
+# Description: Very high-quality data compression program
+# URL: http://www.bzip.org/
+# Maintainer: CRUX System Team, core-ports at crux dot nu
+
+name=bzip2
+version=1.0.6
+release=1
+source=(http://www.bzip.org/$version/$name-$version.tar.gz \
+ $name.patch)
+
+build() {
+ cd $name-$version
+
+ patch -Np1 -i $SRC/$name.patch
+
+ make
+ make PREFIX=$PKG/usr install
+
+ make -f Makefile-libbz2_so
+ make -f Makefile-libbz2_so PREFIX=$PKG/usr install
+}
diff --git a/bzip2/bzip2.patch b/bzip2/bzip2.patch
new file mode 100644
index 0000000..f0f9341
--- /dev/null
+++ b/bzip2/bzip2.patch
@@ -0,0 +1,162 @@
+diff -aur bzip2-1.0.6.orig/Makefile bzip2-1.0.6/Makefile
+--- bzip2-1.0.6.orig/Makefile 2008-02-14 13:39:18.000000000 +0100
++++ bzip2-1.0.6/Makefile 2009-06-14 13:49:03.889599030 +0200
+@@ -21,7 +21,7 @@
+ LDFLAGS=
+
+ BIGFILES=-D_FILE_OFFSET_BITS=64
+-CFLAGS=-Wall -Winline -O2 -g $(BIGFILES)
++CFLAGS+=-fpic -Wall -Winline $(BIGFILES)
+
+ # Where you want it installed when you do 'make install'
+ PREFIX=/usr/local
+@@ -70,43 +70,36 @@
+ @cat words3
+
+ install: bzip2 bzip2recover
+- if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi
+- if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi
+- if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi
+- if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi
+- if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi
+- cp -f bzip2 $(PREFIX)/bin/bzip2
+- cp -f bzip2 $(PREFIX)/bin/bunzip2
+- cp -f bzip2 $(PREFIX)/bin/bzcat
+- cp -f bzip2recover $(PREFIX)/bin/bzip2recover
+- chmod a+x $(PREFIX)/bin/bzip2
+- chmod a+x $(PREFIX)/bin/bunzip2
+- chmod a+x $(PREFIX)/bin/bzcat
+- chmod a+x $(PREFIX)/bin/bzip2recover
+- cp -f bzip2.1 $(PREFIX)/man/man1
+- chmod a+r $(PREFIX)/man/man1/bzip2.1
+- cp -f bzlib.h $(PREFIX)/include
+- chmod a+r $(PREFIX)/include/bzlib.h
+- cp -f libbz2.a $(PREFIX)/lib
+- chmod a+r $(PREFIX)/lib/libbz2.a
+- cp -f bzgrep $(PREFIX)/bin/bzgrep
+- ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep
+- ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep
+- chmod a+x $(PREFIX)/bin/bzgrep
+- cp -f bzmore $(PREFIX)/bin/bzmore
+- ln -s -f $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless
+- chmod a+x $(PREFIX)/bin/bzmore
+- cp -f bzdiff $(PREFIX)/bin/bzdiff
+- ln -s -f $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp
+- chmod a+x $(PREFIX)/bin/bzdiff
+- cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1
+- chmod a+r $(PREFIX)/man/man1/bzgrep.1
+- chmod a+r $(PREFIX)/man/man1/bzmore.1
+- chmod a+r $(PREFIX)/man/man1/bzdiff.1
+- echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzegrep.1
+- echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1
+- echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1
+- echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1
++ install -d $(PREFIX)/bin \
++ $(PREFIX)/lib \
++ $(PREFIX)/man/man1 \
++ $(PREFIX)/include
++ install -m 755 bzip2 \
++ bzip2recover \
++ bzgrep \
++ bzmore \
++ bzdiff \
++ $(PREFIX)/bin
++ install -m 644 bzlib.h $(PREFIX)/include
++ install -m 644 libbz2.a $(PREFIX)/lib
++ ln -sf bzip2 $(PREFIX)/bin/bunzip2
++ ln -sf bzip2 $(PREFIX)/bin/bzcat
++ ln -sf bzgrep $(PREFIX)/bin/bzegrep
++ ln -sf bzgrep $(PREFIX)/bin/bzfgrep
++ ln -sf bzmore $(PREFIX)/bin/bzless
++ ln -sf bzdiff $(PREFIX)/bin/bzcmp
++ install -m 644 bzip2.1 \
++ bzgrep.1 \
++ bzmore.1 \
++ bzdiff.1 \
++ $(PREFIX)/man/man1
++ ln -sf bzgrep.1 $(PREFIX)/man/man1/bzegrep.1
++ ln -sf bzgrep.1 $(PREFIX)/man/man1/bzfgrep.1
++ ln -sf bzmore.1 $(PREFIX)/man/man1/bzless.1
++ ln -sf bzdiff.1 $(PREFIX)/man/man1/bzcmp.1
++ ln -sf bzip2.1 $(PREFIX)/man/man1/bunzip2.1
++ ln -sf bzip2.1 $(PREFIX)/man/man1/bzcat.1
++ ln -sf bzip2.1 $(PREFIX)/man/man1/bzip2recover.1
+
+ clean:
+ rm -f *.o libbz2.a bzip2 bzip2recover \
+diff -aur bzip2-1.0.6.orig/Makefile-libbz2_so bzip2-1.0.6/Makefile-libbz2_so
+--- bzip2-1.0.6.orig/Makefile-libbz2_so 2007-12-09 14:00:50.000000000 +0100
++++ bzip2-1.0.6/Makefile-libbz2_so 2009-06-14 13:48:27.519580669 +0200
+@@ -24,7 +24,7 @@
+ SHELL=/bin/sh
+ CC=gcc
+ BIGFILES=-D_FILE_OFFSET_BITS=64
+-CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES)
++CFLAGS+=-fpic -Wall -Winline $(BIGFILES)
+
+ OBJS= blocksort.o \
+ huffman.o \
+@@ -37,11 +37,15 @@
+ all: $(OBJS)
+ $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.6 $(OBJS)
+ $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6
+- rm -f libbz2.so.1.0
+- ln -s libbz2.so.1.0.6 libbz2.so.1.0
++
++install:
++ install -d $(PREFIX)/lib
++ install -m 755 libbz2.so.1.0.6 $(PREFIX)/lib
++ ln -sf libbz2.so.1.0.6 $(PREFIX)/lib/libbz2.so.1.0
++ ln -sf libbz2.so.1.0 $(PREFIX)/lib/libbz2.so
+
+ clean:
+- rm -f $(OBJS) bzip2.o libbz2.so.1.0.6 libbz2.so.1.0 bzip2-shared
++ rm -f $(OBJS) bzip2.o libbz2.so.1.0.6 bzip2-shared
+
+ blocksort.o: blocksort.c
+ $(CC) $(CFLAGS) -c blocksort.c
+diff -aur bzip2-1.0.6.orig/bzlib_private.h bzip2-1.0.6/bzlib_private.h
+--- bzip2-1.0.6.orig/bzlib_private.h 2007-12-09 15:00:46.000000000 +0100
++++ bzip2-1.0.6/bzlib_private.h 2009-06-14 13:53:28.200579230 +0200
+@@ -128,7 +128,7 @@
+
+ /*-- Stuff for randomising repetitive blocks. --*/
+
+-extern Int32 BZ2_rNums[512];
++extern const Int32 BZ2_rNums[512];
+
+ #define BZ_RAND_DECLS \
+ Int32 rNToGo; \
+@@ -152,7 +152,7 @@
+
+ /*-- Stuff for doing CRCs. --*/
+
+-extern UInt32 BZ2_crc32Table[256];
++extern const UInt32 BZ2_crc32Table[256];
+
+ #define BZ_INITIALISE_CRC(crcVar) \
+ { \
+diff -aur bzip2-1.0.6.orig/crctable.c bzip2-1.0.6/crctable.c
+--- bzip2-1.0.6.orig/crctable.c 2007-12-09 13:29:49.000000000 +0100
++++ bzip2-1.0.6/crctable.c 2009-06-14 13:52:33.248830630 +0200
+@@ -28,7 +28,7 @@
+ comp.compression FAQ.
+ --*/
+
+-UInt32 BZ2_crc32Table[256] = {
++const UInt32 BZ2_crc32Table[256] = {
+
+ /*-- Ugly, innit? --*/
+
+diff -aur bzip2-1.0.6.orig/randtable.c bzip2-1.0.6/randtable.c
+--- bzip2-1.0.6.orig/randtable.c 2007-12-09 13:32:55.000000000 +0100
++++ bzip2-1.0.6/randtable.c 2009-06-14 13:53:38.063580427 +0200
+@@ -23,7 +23,7 @@
+
+
+ /*---------------------------------------------*/
+-Int32 BZ2_rNums[512] = {
++const Int32 BZ2_rNums[512] = {
+ 619, 720, 127, 481, 931, 816, 813, 233, 566, 247,
+ 985, 724, 205, 454, 863, 491, 741, 242, 949, 214,
+ 733, 859, 335, 708, 621, 574, 73, 654, 730, 472,