summaryrefslogtreecommitdiffstats
path: root/zlib
diff options
context:
space:
mode:
Diffstat (limited to 'zlib')
-rw-r--r--zlib/.footprint14
-rw-r--r--zlib/.md5sum2
-rw-r--r--zlib/Pkgfile18
-rw-r--r--zlib/Pkgfile.old17
-rw-r--r--zlib/zlib-1.2.5-lfs-decls.patch15
5 files changed, 66 insertions, 0 deletions
diff --git a/zlib/.footprint b/zlib/.footprint
new file mode 100644
index 0000000..f7f7ba2
--- /dev/null
+++ b/zlib/.footprint
@@ -0,0 +1,14 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/include/
+-rw-r--r-- root/root usr/include/zconf.h
+-rw-r--r-- root/root usr/include/zlib.h
+drwxr-xr-x root/root usr/lib/
+-rw-r--r-- root/root usr/lib/libz.a
+lrwxrwxrwx root/root usr/lib/libz.so -> libz.so.1.2.5
+lrwxrwxrwx root/root usr/lib/libz.so.1 -> libz.so.1.2.5
+-rwxr-xr-x root/root usr/lib/libz.so.1.2.5
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/zlib.pc
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man3/
+-rw-r--r-- root/root usr/man/man3/zlib.3.gz
diff --git a/zlib/.md5sum b/zlib/.md5sum
new file mode 100644
index 0000000..5a73a3d
--- /dev/null
+++ b/zlib/.md5sum
@@ -0,0 +1,2 @@
+e0b1ddb828dbe6eda55abb992967463c zlib-1.2.5-lfs-decls.patch
+be1e89810e66150f5b0327984d8625a0 zlib-1.2.5.tar.bz2
diff --git a/zlib/Pkgfile b/zlib/Pkgfile
new file mode 100644
index 0000000..029103e
--- /dev/null
+++ b/zlib/Pkgfile
@@ -0,0 +1,18 @@
+description="A compression/decompression Library"
+packager=""
+maintainer="CRUX System Team, core-ports at crux dot nu"
+url="http://www.zlib.net/"
+depends=()
+
+name=zlib
+version=1.2.5
+release=2
+source=(http://www.zlib.net/zlib-1.2.5.tar.bz2 zlib-1.2.5-lfs-decls.patch)
+build ()
+{
+ cd $name-$version;
+ patch -p1 -i $SRC/$name-$version-lfs-decls.patch;
+ ./configure --prefix=/usr;
+ make;
+ make DESTDIR=$PKG mandir=/usr/man install
+}
diff --git a/zlib/Pkgfile.old b/zlib/Pkgfile.old
new file mode 100644
index 0000000..d262548
--- /dev/null
+++ b/zlib/Pkgfile.old
@@ -0,0 +1,17 @@
+# Description: A compression/decompression Library
+# URL: http://www.zlib.net/
+# Maintainer: CRUX System Team, core-ports at crux dot nu
+
+name=zlib
+version=1.2.5
+release=2
+source=(http://www.zlib.net/$name-$version.tar.bz2 \
+ $name-$version-lfs-decls.patch)
+
+build() {
+ cd $name-$version
+ patch -p1 -i $SRC/$name-$version-lfs-decls.patch
+ ./configure --prefix=/usr
+ make
+ make DESTDIR=$PKG mandir=/usr/man install
+}
diff --git a/zlib/zlib-1.2.5-lfs-decls.patch b/zlib/zlib-1.2.5-lfs-decls.patch
new file mode 100644
index 0000000..8d73430
--- /dev/null
+++ b/zlib/zlib-1.2.5-lfs-decls.patch
@@ -0,0 +1,15 @@
+http://bugs.gentoo.org/316377
+
+try to unbreak over-eager LFS logic in zlib header
+
+--- zlib-1.2.5/zlib.h
++++ zlib-1.2.5/zlib.h
+@@ -1578,7 +1578,7 @@
+ # define gzoffset gzoffset64
+ # define adler32_combine adler32_combine64
+ # define crc32_combine crc32_combine64
+-# ifdef _LARGEFILE64_SOURCE
++# ifndef _LARGEFILE64_SOURCE
+ ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
+ ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int));
+ ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile));