Update to 1.0.5 and newstyle metadata.
This commit is contained in:
parent
2ecd3a9741
commit
00dd5398f7
112
bzip2/build.sh
112
bzip2/build.sh
@ -3,33 +3,21 @@
|
|||||||
# This is a generic build.sh script
|
# This is a generic build.sh script
|
||||||
# It can be used nearly unmodified with many packages
|
# It can be used nearly unmodified with many packages
|
||||||
#
|
#
|
||||||
# The concept of "method" registering and the logic that implements it was shamelessly
|
# build.sh helper functions
|
||||||
# stolen from jhlj's Compile.sh script :)
|
. ${BUILDPKG_BASE}/scripts/build.sh.functions
|
||||||
#
|
#
|
||||||
|
###########################################################
|
||||||
# Check the following 4 variables before running the script
|
# Check the following 4 variables before running the script
|
||||||
topdir=bzip2
|
topdir=bzip2
|
||||||
version=1.0.2
|
version=1.0.5
|
||||||
pkgver=2
|
pkgver=1
|
||||||
source[0]=$topdir-$version.tar.gz
|
source[0]=$topdir-$version.tar.gz
|
||||||
# If there are no patches, simply comment this
|
# If there are no patches, simply comment this
|
||||||
patch[0]=bzip2-braindead-solaris-linker.patch
|
patch[0]=bzip2-1.0.5-saneso.patch
|
||||||
|
|
||||||
# Source function library
|
# Source function library
|
||||||
. ${BUILDPKG_BASE}/scripts/buildpkg.functions
|
. ${BUILDPKG_BASE}/scripts/buildpkg.functions
|
||||||
|
|
||||||
# Fill in pkginfo values if necessary
|
|
||||||
# using pkgname,name,pkgcat,pkgvendor & pkgdesc
|
|
||||||
name="bzip2"
|
|
||||||
pkgcat="application"
|
|
||||||
pkgvendor="http://sources.redhat.com/bzip2/"
|
|
||||||
pkgdesc="A freely available, high-quality data compressor"
|
|
||||||
|
|
||||||
# Define script functions and register them
|
|
||||||
METHODS=""
|
|
||||||
reg() {
|
|
||||||
METHODS="$METHODS $1"
|
|
||||||
}
|
|
||||||
|
|
||||||
reg prep
|
reg prep
|
||||||
prep()
|
prep()
|
||||||
{
|
{
|
||||||
@ -40,33 +28,49 @@ reg build
|
|||||||
build()
|
build()
|
||||||
{
|
{
|
||||||
setdir source
|
setdir source
|
||||||
export LD_RUN_PATH=$prefix/lib
|
${__make} -f Makefile-libbz2_so CC="gcc -R$prefix/lib" CFLAGS="-D_FILE_OFFSET_BITS=64 -fpic -fPIC"
|
||||||
$MAKE_PROG -f Makefile-libbz2_so CFLAGS="-O2 -pipe -mcpu=ultrasparc -mtune=ultrasparc -D_FILE_OFFSET_BITS=64 -fpic -fPIC" all
|
rm -f *.o
|
||||||
$MAKE_PROG -f Makefile CFLAGS="-O2 -pipe -mcpu=ultrasparc -mtune=ultrasparc -D_FILE_OFFSET_BITS=64" all
|
${__make} -f Makefile LDFLAGS="-R$prefix/lib"
|
||||||
|
}
|
||||||
|
|
||||||
|
reg check
|
||||||
|
check()
|
||||||
|
{
|
||||||
|
generic_check
|
||||||
}
|
}
|
||||||
|
|
||||||
reg install
|
reg install
|
||||||
install()
|
install()
|
||||||
{
|
{
|
||||||
generic_install PREFIX
|
clean stage
|
||||||
setdir source
|
setdir source
|
||||||
$MKDIR -p $stagedir/share/doc/$topdir-$version
|
${__mkdir} -p ${stagedir}${prefix}/{${_bindir},${_mandir}/man1,${_libdir},${_includedir}}
|
||||||
DOCS="LICENSE CHANGES README README.COMPILATION.PROBLEMS Y2K_INFO"
|
${__install} -m 755 bzlib.h ${stagedir}${prefix}/${_includedir}
|
||||||
for i in $DOCS
|
${__install} -m 755 libbz2.so.1.0.4 ${stagedir}${prefix}/${_libdir}
|
||||||
do
|
${__install} -m 755 libbz2.a ${stagedir}${prefix}/${_libdir}
|
||||||
$CP $i $stagedir/share/doc/$topdir-$version
|
${__install} -m 755 bzip2-shared ${stagedir}${prefix}/${_bindir}/bzip2
|
||||||
done
|
${__install} -m 755 bzip2recover bzgrep bzdiff bzmore ${stagedir}${prefix}/${_bindir}/
|
||||||
$CP libbz2.so* $stagedir/lib
|
${__install} -m 644 bzip2.1 bzdiff.1 bzgrep.1 bzmore.1 ${stagedir}${prefix}/${_mandir}/man1/
|
||||||
$RM $stagedir/lib/libbz2.a
|
${__ln} -s bzip2 ${stagedir}${prefix}/${_bindir}/bunzip2
|
||||||
setdir $stagedir/lib
|
${__ln} -s bzip2 ${stagedir}${prefix}/${_bindir}/bzcat
|
||||||
ln -sf libbz2.so.1.0.2 libbz2.so.1.0
|
${__ln} -s bzdiff ${stagedir}${prefix}/${_bindir}/bzcmp
|
||||||
ln -sf libbz2.so.1.0 libbz2.so
|
${__ln} -s bzmore ${stagedir}${prefix}/${_bindir}/bzless
|
||||||
|
${__ln} -s libbz2.so.1.0.4 ${stagedir}${prefix}/${_libdir}/libbz2.so.1
|
||||||
|
${__ln} -s libbz2.so.1 ${stagedir}${prefix}/${_libdir}/libbz2.so
|
||||||
|
${__ln} -s bzip2.1 ${stagedir}${prefix}/${_mandir}/man1/bzip2recover.1
|
||||||
|
${__ln} -s bzip2.1 ${stagedir}${prefix}/${_mandir}/man1/bunzip2.1
|
||||||
|
${__ln} -s bzip2.1 ${stagedir}${prefix}/${_mandir}/man1/bzcat.1
|
||||||
|
${__ln} -s bzdiff.1 ${stagedir}${prefix}/${_mandir}/man1/bzcmp.1
|
||||||
|
${__ln} -s bzmore.1 ${stagedir}${prefix}/${_mandir}/man1/bzless.1
|
||||||
|
|
||||||
|
doc LICENSE CHANGES README README.COMPILATION.PROBLEMS
|
||||||
|
docs_for bzip2-devel manual.html
|
||||||
}
|
}
|
||||||
|
|
||||||
reg pack
|
reg pack
|
||||||
pack()
|
pack()
|
||||||
{
|
{
|
||||||
generic_pack shortroot
|
generic_pack
|
||||||
}
|
}
|
||||||
|
|
||||||
reg distclean
|
reg distclean
|
||||||
@ -78,42 +82,4 @@ distclean()
|
|||||||
###################################################
|
###################################################
|
||||||
# No need to look below here
|
# No need to look below here
|
||||||
###################################################
|
###################################################
|
||||||
|
build_sh $*
|
||||||
reg all
|
|
||||||
all()
|
|
||||||
{
|
|
||||||
for METHOD in $METHODS
|
|
||||||
do
|
|
||||||
case $METHOD in
|
|
||||||
all*|*clean) ;;
|
|
||||||
*) $METHOD
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
reg
|
|
||||||
usage() {
|
|
||||||
echo Usage $0 "{"$(echo $METHODS | tr " " "|")"}"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
OK=0
|
|
||||||
for METHOD in $*
|
|
||||||
do
|
|
||||||
METHOD=" $METHOD *"
|
|
||||||
if [ "${METHODS%$METHOD}" == "$METHODS" ] ; then
|
|
||||||
usage
|
|
||||||
fi
|
|
||||||
OK=1
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ $OK = 0 ] ; then
|
|
||||||
usage;
|
|
||||||
fi
|
|
||||||
|
|
||||||
for METHOD in $*
|
|
||||||
do
|
|
||||||
( $METHOD )
|
|
||||||
done
|
|
||||||
|
1
bzip2/meta/depend
Normal file
1
bzip2/meta/depend
Normal file
@ -0,0 +1 @@
|
|||||||
|
TGCbzip2d bzip2 auto
|
26
bzip2/meta/pkgdef
Normal file
26
bzip2/meta/pkgdef
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
[bzip2]
|
||||||
|
pkgname="${pkgprefix}${topdir}"
|
||||||
|
name="$topdir - The bzip2 compression library and utilities"
|
||||||
|
pkgcat="system"
|
||||||
|
pkgvendor="http://www.bzip.org"
|
||||||
|
shortdesc="A library implementing bzip2 compression and utilities using it"
|
||||||
|
pkgver="$pkgver"
|
||||||
|
files(-,root,bin)
|
||||||
|
default_docs
|
||||||
|
$_bindir
|
||||||
|
$_libdir/*.so.*
|
||||||
|
$_mandir/man1
|
||||||
|
|
||||||
|
[bzip2-devel]
|
||||||
|
pkgname="${pkgprefix}${topdir}d"
|
||||||
|
name="${topdir}-devel - Development support for bzip2"
|
||||||
|
pkgcat="system"
|
||||||
|
pkgvendor="http://www.bzip.org"
|
||||||
|
shortdesc="Files needed for developing with bzip2"
|
||||||
|
pkgver="$pkgver"
|
||||||
|
files(-,root,bin)
|
||||||
|
default_docs
|
||||||
|
$_includedir
|
||||||
|
$_libdir/*.so
|
||||||
|
$_libdir/*.a
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
PKG="%%pkgname%%"
|
|
||||||
NAME="%%name%%"
|
|
||||||
ARCH="sparc"
|
|
||||||
VERSION="%%version%%"
|
|
||||||
CATEGORY="%%pkgcat%%"
|
|
||||||
VENDOR="%%pkgvendor%%"
|
|
||||||
EMAIL="Tom G. Christenen - tgc@statsbiblioteket.dk"
|
|
||||||
PSTAMP="%%pkgver%%"
|
|
||||||
BASEDIR="%%topinstalldir%%"
|
|
||||||
CLASSES="none"
|
|
||||||
DESC="%%pkgdesc%%"
|
|
28
bzip2/meta/relnotes
Normal file
28
bzip2/meta/relnotes
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
PACKAGE DETAILS
|
||||||
|
---------------
|
||||||
|
Name: %%PKGNAME%%
|
||||||
|
Version: %%SOURCE_AND_VER%%
|
||||||
|
Vendor: %%VENDOR%%
|
||||||
|
Packager: %%PKGEDBY%%
|
||||||
|
|
||||||
|
Source (sha1sum):
|
||||||
|
%%SOURCE_SHA1SUM%%
|
||||||
|
|
||||||
|
BUILD DETAILS
|
||||||
|
-------------
|
||||||
|
Compiler:
|
||||||
|
%%COMPILER%%
|
||||||
|
|
||||||
|
Environment:
|
||||||
|
%%ENVIRONMENT%%
|
||||||
|
|
||||||
|
Configure:
|
||||||
|
%%CONFIGURE%%
|
||||||
|
|
||||||
|
KNOWN DEPENDENCIES
|
||||||
|
------------------
|
||||||
|
%%DEPENDENCIES%%
|
||||||
|
|
||||||
|
ERRORS/MISCELLANEOUS
|
||||||
|
--------------------
|
||||||
|
A patch was applied to change the soname from libbz2.so.1.0 to libbz2.so.1.
|
19
bzip2/src/bzip2-1.0.5-saneso.patch
Normal file
19
bzip2/src/bzip2-1.0.5-saneso.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
*** bzip2-1.0.5/Makefile-libbz2_so.orig Sat Apr 26 11:42:11 2008
|
||||||
|
--- bzip2-1.0.5/Makefile-libbz2_so Sat Apr 26 11:45:11 2008
|
||||||
|
***************
|
||||||
|
*** 35,41 ****
|
||||||
|
bzlib.o
|
||||||
|
|
||||||
|
all: $(OBJS)
|
||||||
|
! $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.4 $(OBJS)
|
||||||
|
$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.4
|
||||||
|
rm -f libbz2.so.1.0
|
||||||
|
ln -s libbz2.so.1.0.4 libbz2.so.1.0
|
||||||
|
--- 35,41 ----
|
||||||
|
bzlib.o
|
||||||
|
|
||||||
|
all: $(OBJS)
|
||||||
|
! $(CC) -shared -Wl,-h -Wl,libbz2.so.1 -o libbz2.so.1.0.4 $(OBJS)
|
||||||
|
$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.4
|
||||||
|
rm -f libbz2.so.1.0
|
||||||
|
ln -s libbz2.so.1.0.4 libbz2.so.1.0
|
@ -1,11 +0,0 @@
|
|||||||
--- bzip2-1.0.2/Makefile-libbz2_so.orig 2004-01-09 10:17:44.310014000 +0100
|
|
||||||
+++ bzip2-1.0.2/Makefile-libbz2_so 2004-01-09 10:17:57.600005000 +0100
|
|
||||||
@@ -20,7 +20,7 @@
|
|
||||||
bzlib.o
|
|
||||||
|
|
||||||
all: $(OBJS)
|
|
||||||
- $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.2 $(OBJS)
|
|
||||||
+ $(CC) -shared -Wl,-h -Wl,libbz2.so.1.0 -o libbz2.so.1.0.2 $(OBJS)
|
|
||||||
$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.2
|
|
||||||
rm -f libbz2.so.1.0
|
|
||||||
ln -s libbz2.so.1.0.2 libbz2.so.1.0
|
|
Loading…
x
Reference in New Issue
Block a user