|
|
@@ -39,7 +39,7 @@
|
|
|
# o any cc(1)
|
|
|
|
|
|
# the package version/release
|
|
|
-%define V_openpkg 20040602
|
|
|
+%define V_openpkg 20040604
|
|
|
|
|
|
# the used software versions
|
|
|
%define V_rpm 4.2.1
|
|
|
@@ -244,12 +244,11 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
echo >>.buildenv ' else'
|
|
|
echo >>.buildenv ' echo "$*" | sh %{_sourcedir}/rpmtool msg'
|
|
|
echo >>.buildenv ' fi'
|
|
|
- echo >>.buildenv ' set -x'
|
|
|
echo >>.buildenv '}'
|
|
|
. ./.buildenv
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "PREPARATION: Determine Build Tool Paths"
|
|
|
+ set +x; VERBOSE "PREPARATION: Determine Build Tool Paths"; set -x
|
|
|
|
|
|
# determine path to shtool
|
|
|
shtool=`SOURCE shtool`
|
|
|
@@ -313,7 +312,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
echo "usrgrp=$usrgrp" >>./.buildenv
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "PREPARATION: Determine OpenPKG User/Group Name/Id Pairs"
|
|
|
+ set +x; VERBOSE "PREPARATION: Determine OpenPKG User/Group Name/Id Pairs"; set -x
|
|
|
|
|
|
# determine user/group name/id pairs
|
|
|
# - bootstrapping: %{l_[smrn]{usr,grp}} is set via sed(1)
|
|
|
@@ -367,7 +366,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
echo "ngid=\"$ngid\"; export ngid" >>.buildenv
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "PREPARATION: Determine OpenPKG Instance Environment"
|
|
|
+ set +x; VERBOSE "PREPARATION: Determine OpenPKG Instance Environment"; set -x
|
|
|
|
|
|
# determine installation location id
|
|
|
if [ ".%{?l_tag_fmt:set}" = .set ]; then
|
|
|
@@ -413,7 +412,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
echo "l_build_ulim=\"$l_build_ulim\"; export l_build_ulim" >>.buildenv
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "PREPARATION: Build GNU gzip (Compression Tool)"
|
|
|
+ set +x; VERBOSE "PREPARATION: Build GNU gzip (Compression Tool)"; set -x
|
|
|
|
|
|
# bootstrap GNU zip tool
|
|
|
${l_tar} xf `SOURCE gzip-%{V_gzip}.tar` 2>/dev/null || true
|
|
|
@@ -429,7 +428,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
echo "l_gzip=\"$l_gzip\"; export l_gzip" >>.buildenv
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "PREPARATION: Unpack Distribution Tarballs"
|
|
|
+ set +x; VERBOSE "PREPARATION: Unpack Distribution Tarballs"; set -x
|
|
|
|
|
|
# unpack distribution tarballs
|
|
|
${l_gzip} -dc `SOURCE rpm-%{V_rpm}.tar.gz` | ${l_tar} xf - 2>/dev/null || true
|
|
|
@@ -453,7 +452,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
done
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "PREPARATION: Build GNU patch (Source Patching Tool)"
|
|
|
+ set +x; VERBOSE "PREPARATION: Build GNU patch (Source Patching Tool)"; set -x
|
|
|
|
|
|
# bootstrap GNU patch tool
|
|
|
( cd patch-%{V_patch}
|
|
|
@@ -473,7 +472,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
echo "l_patch=\"$l_patch\"; export l_patch" >>.buildenv
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "PREPARATION: Apply OpenPKG Patches to Distibutions"
|
|
|
+ set +x; VERBOSE "PREPARATION: Apply OpenPKG Patches to Distibutions"; set -x
|
|
|
|
|
|
# apply OpenPKG patches to distribution trees
|
|
|
( cd rpm-%{V_rpm}
|
|
|
@@ -501,7 +500,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
) || exit $?
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "PREPARATION: Build GNU make (Build Tool)"
|
|
|
+ set +x; VERBOSE "PREPARATION: Build GNU make (Build Tool)"; set -x
|
|
|
|
|
|
# bootstrap GNU make tool
|
|
|
( cd make-%{V_make}
|
|
|
@@ -524,7 +523,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
. ./.buildenv
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "BUILD: Build GNU bash (Bourne-Again Shell)"
|
|
|
+ set +x; VERBOSE "BUILD: Build GNU bash (Bourne-Again Shell)"; set -x
|
|
|
|
|
|
# build GNU bash tool
|
|
|
( cd bash-%{V_bash}
|
|
|
@@ -553,7 +552,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
) || exit $?
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "BUILD: Build GNU tar (Archiving Tool)"
|
|
|
+ set +x; VERBOSE "BUILD: Build GNU tar (Archiving Tool)"; set -x
|
|
|
|
|
|
# build GNU tar tool
|
|
|
( cd tar-%{V_tar}
|
|
|
@@ -577,7 +576,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
) || exit $?
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "BUILD: Build GNU bzip2 (Compression Library)"
|
|
|
+ set +x; VERBOSE "BUILD: Build GNU bzip2 (Compression Library)"; set -x
|
|
|
|
|
|
# build BZIP2 library
|
|
|
( cd bzip2-%{V_bzip2}
|
|
|
@@ -585,7 +584,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
) || exit $?
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "BUILD: Build Zlib (Compression Library)"
|
|
|
+ set +x; VERBOSE "BUILD: Build Zlib (Compression Library)"; set -x
|
|
|
|
|
|
# build ZLIB library
|
|
|
( cd zlib-%{V_zlib}
|
|
|
@@ -594,7 +593,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
) || exit $?
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "BUILD: Build OSSP uuid (UUID Generation Tool)"
|
|
|
+ set +x; VERBOSE "BUILD: Build OSSP uuid (UUID Generation Tool)"; set -x
|
|
|
|
|
|
# build OSSP uuid tool
|
|
|
( cd uuid-%{V_uuid}
|
|
|
@@ -608,7 +607,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
) || exit $?
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "BUILD: Build cURL (URL Fetching Tool)"
|
|
|
+ set +x; VERBOSE "BUILD: Build cURL (URL Fetching Tool)"; set -x
|
|
|
|
|
|
# build cURL tool
|
|
|
( cd curl-%{V_curl}
|
|
|
@@ -635,12 +634,13 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
) || exit $?
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "BUILD: Build BeeCrypt (Cryptography Library)"
|
|
|
+ set +x; VERBOSE "BUILD: Build BeeCrypt (Cryptography Library)"; set -x
|
|
|
|
|
|
# build BeeCrypt library
|
|
|
( cd beecrypt-%{V_beecrypt}
|
|
|
( echo 'ac_cv_have_dev_dsp=no'
|
|
|
echo 'ac_cv_have_dev_audio=no'
|
|
|
+ echo 'ac_cv_func_gettimeofday=yes'
|
|
|
) >config.cache
|
|
|
CC="${l_cc}" \
|
|
|
CFLAGS="-O" \
|
|
|
@@ -656,7 +656,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
) || exit $?
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "BUILD: Build RPM (RedHat Package Manager)"
|
|
|
+ set +x; VERBOSE "BUILD: Build RPM (RedHat Package Manager)"; set -x
|
|
|
|
|
|
# build RPM
|
|
|
( br=`pwd`
|
|
|
@@ -701,7 +701,9 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
|
|
|
# provide platform identification
|
|
|
os_name=`(uname -s) 2>/dev/null` || os_name='Unknown'
|
|
|
- os_name=`echo "${os_name}" | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
+ os_name=`echo "${os_name}" |\
|
|
|
+ sed -e 's;[^a-zA-Z0-9];;g' |\
|
|
|
+ tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
|
|
|
# set build tool flags
|
|
|
CC="${l_cc}"
|
|
|
@@ -736,7 +738,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
. ./.buildenv
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "INSTALL: Create Installation Filesystem Hierarchy"
|
|
|
+ set +x; VERBOSE "INSTALL: Create Installation Filesystem Hierarchy"; set -x
|
|
|
|
|
|
# create installation hierarchy
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
@@ -771,7 +773,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
mkdir $RPM_BUILD_ROOT%{l_prefix}/include/openpkg
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "INSTALL: Installation of RPM"
|
|
|
+ set +x; VERBOSE "INSTALL: Installation of RPM"; set -x
|
|
|
|
|
|
# install RPM into installation hierarchy
|
|
|
( cd rpm-%{V_rpm}
|
|
|
@@ -779,7 +781,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
) || exit $?
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "INSTALL: Stripping Down Installation"
|
|
|
+ set +x; VERBOSE "INSTALL: Stripping Down Installation"; set -x
|
|
|
|
|
|
# strip RPM installation
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* \
|
|
|
@@ -810,7 +812,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
done
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "INSTALL: Install Additional Files"
|
|
|
+ set +x; VERBOSE "INSTALL: Install Additional Files"; set -x
|
|
|
|
|
|
# add additional development files
|
|
|
cp rpm-%{V_rpm}/misc/glob.h $RPM_BUILD_ROOT%{l_prefix}/include/rpm/
|
|
|
@@ -822,7 +824,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
cp beecrypt-%{V_beecrypt}/libbeecrypt.a $RPM_BUILD_ROOT%{l_prefix}/lib/librpmbeecrypt.a
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "INSTALL: Post-Adjust Installation"
|
|
|
+ set +x; VERBOSE "INSTALL: Post-Adjust Installation"; set -x
|
|
|
|
|
|
# post-adjust RPM installation (namespace-clean POPT inclusion)
|
|
|
mv $RPM_BUILD_ROOT%{l_prefix}/lib/libpopt.a \
|
|
|
@@ -850,7 +852,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/openpkg/rpmbuild.8
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "INSTALL: Install Additional Tools"
|
|
|
+ set +x; VERBOSE "INSTALL: Install Additional Tools"; set -x
|
|
|
|
|
|
# install lsync tool
|
|
|
sed -e "s:@l_prefix@:%{l_prefix}:g" \
|
|
|
@@ -968,7 +970,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
chmod a+x $RPM_BUILD_ROOT%{l_prefix}/lib/openpkg/shtool
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "INSTALL: Install Configuration Files"
|
|
|
+ set +x; VERBOSE "INSTALL: Install Configuration Files"; set -x
|
|
|
|
|
|
# install a few README files
|
|
|
sed -e "s:@l_prefix@:%{l_prefix}:g" \
|
|
|
@@ -1056,7 +1058,7 @@ Provides: openpkg = 2.0.3-2.0.3
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/openpkg/openpkg.pgp
|
|
|
|
|
|
# display verbosity header
|
|
|
- set +x; VERBOSE "INSTALL: Done. Thank you for flying OpenPKG..."
|
|
|
+ set +x; VERBOSE "INSTALL: Done. Thank you for flying OpenPKG..."; set -x
|
|
|
|
|
|
%files
|
|
|
%defattr(-,%{?l_musr}%{!?l_musr:%{l_fsusr}},%{?l_mgrp}%{!?l_mgrp:%{l_fsgrp}})
|