Browse Source

More work on this package. It unfortunately still does not build correctly because it still tries to link stlport_gcc.

master
parent
commit
b26f17f069
  1. 40
      tripwire/tripwire.spec

40
tripwire/tripwire.spec

@ -23,16 +23,15 @@
## SUCH DAMAGE.
##
# package versions
%define V_tripwire 2.3.1
%define V_lvl 2
%define V_stlport 4.5.3
%define V_openpkg %{V_tripwire}.%{V_lvl}
%define V_vendor %{V_tripwire}-%{V_lvl}
# package information
Name: tripwire
Summary: File and directory integrity checker
Summary: File and Directory Integrity Checker
URL: http://www.tripwire.org/
Vendor: Tripwire, Inc
Packager: The OpenPKG Project
@ -40,10 +39,11 @@ Distribution: OpenPKG [JUNK]
Group: Security
License: GPL
Version: %{V_openpkg}
Release: 20030124
Release: 20030126
# list of sources
Source0: http://osdn.dl.sourceforge.net/sourceforge/tripwire/tripwire-%{V_vendor}.tar.gz
Patch0: tripwire.patch
# build information
Prefix: %{l_prefix}
@ -58,42 +58,28 @@ AutoReqProv: no
allows system administrators to verify the integrity of their data.
%prep
%setup0 -q -n tripwire-%{V_vendor}
%setup -q -n tripwire-%{V_vendor}
%patch -p0
%build
case "%{l_target}" in
*-freebsd*)
syspre="i386-unknown-freebsd"
;;
*-linux*)
syspre="i686-pc-linux"
;;
*-solaris*)
syspre="sparc-linux"
;;
*-netbsd*)
syspre="i386-unknown-openbsd"
;;
*)
echo "ERROR: Unsupport platform '%{l_target}'"
exit 1
;;
*-freebsd* ) syspre="i386-unknown-freebsd" ;;
*-linux* ) syspre="i686-pc-linux" ;;
*-solaris* ) syspre="sparc-linux" ;;
*-netbsd* ) syspre="i386-unknown-openbsd" ;;
*) echo "ERROR: Unsupport platform '%{l_target}'"; exit 1 ;;
esac
cd src
%{l_shtool} subst \
-e '/^targets/s/STLport_r//' \
Makefile
touch STLport_r
for f in cryptolib/*.mak; do
for f in cryptlib/*.mak; do
%{l_shtool} subst \
-e 's;-[IL]../STLPort[^[:blank]]*;;' \
-e 's;-[IL]../STLPort[^[:blank:]]*;;' \
-e 's;stlport_gcc;stdc++;' \
$f
done
%{l_make} %{l_mflags -O} release \
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \

Loading…
Cancel
Save