Wed, 07 Jan 2009 14:58:25 +0100
Import package vendor original specs for necessary manipulations.
aqbanking/aqbanking.patch | file | annotate | diff | comparison | revisions | |
aqbanking/aqbanking.spec | file | annotate | diff | comparison | revisions | |
aqmoney/aqmoney.patch | file | annotate | diff | comparison | revisions | |
aqmoney/aqmoney.spec | file | annotate | diff | comparison | revisions | |
bison/bison.patch | file | annotate | diff | comparison | revisions | |
bison/bison.spec | file | annotate | diff | comparison | revisions | |
perl/perl.patch | file | annotate | diff | comparison | revisions | |
perl/perl.spec | file | annotate | diff | comparison | revisions |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/aqbanking/aqbanking.patch Wed Jan 07 14:58:25 2009 +0100 1.3 @@ -0,0 +1,69 @@ 1.4 +Index: aqbanking-2.3.3/src/libs/aqbanking/Makefile.in 1.5 +--- aqbanking-2.3.3/src/libs/aqbanking/Makefile.in.orig 2006-01-28 00:56:18 +0100 1.6 ++++ aqbanking-2.3.3/src/libs/aqbanking/Makefile.in 2006-01-28 09:50:06 +0100 1.7 +@@ -525,7 +525,7 @@ 1.8 + wcb.c\ 1.9 + msgengine.c 1.10 + 1.11 +-libaqbanking_la_LIBADD = $(gwenhywfar_libs) \ 1.12 ++libaqbanking_la_LIBADD = \ 1.13 + jobs/libjobs.la \ 1.14 + types/libtypes.la 1.15 + 1.16 +@@ -537,7 +537,7 @@ 1.17 + libaqbanking_la_DEPENDENCIES = jobs/libjobs.la types/libtypes.la \ 1.18 + $(am__append_1) 1.19 + testlib_SOURCES = testlib.c 1.20 +-testlib_LDADD = libaqbanking.la 1.21 ++testlib_LDADD = libaqbanking.la $(gwenhywfar_libs) 1.22 + TESTS = testlib 1.23 + all: all-recursive 1.24 + 1.25 +Index: aqbanking-2.3.3/src/plugins/bankinfo/generic/Makefile.in 1.26 +--- aqbanking-2.3.3/src/plugins/bankinfo/generic/Makefile.in.orig 2006-01-28 00:56:42 +0100 1.27 ++++ aqbanking-2.3.3/src/plugins/bankinfo/generic/Makefile.in 2006-01-28 09:49:40 +0100 1.28 +@@ -476,7 +476,7 @@ 1.29 + libbankinfo_la_SOURCES = \ 1.30 + generic.c 1.31 + 1.32 +-libbankinfo_la_LIBADD = -L$(top_builddir)/src/libs/aqbanking $(aqbanking_internal_libs) $(gwenhywfar_libs) 1.33 ++libbankinfo_la_LIBADD = 1.34 + libbankinfo_la_LDFLAGS = $(STRIPALL) 1.35 + at_files = at/blz.idx at/bic.idx at/namloc.idx at/banks.data 1.36 + ch_files = ch/blz.idx ch/bic.idx ch/namloc.idx ch/banks.data 1.37 +Index: openhbci-0.9.18/src/openhbci/openhbci-config.in.in 1.38 +--- openhbci-0.9.18/src/openhbci/openhbci-config.in.in.orig 2003-05-18 23:46:36 +0200 1.39 ++++ openhbci-0.9.18/src/openhbci/openhbci-config.in.in 2006-01-28 09:49:40 +0100 1.40 +@@ -9,7 +9,7 @@ 1.41 + result="$result @PROGRAM_INCLUDES@ -I$dir/include" 1.42 + ;; 1.43 + --libraries) 1.44 +- result="$result -L$dir/lib @OPENHBCI_LIB@" 1.45 ++ result="$result -L$dir/lib @OPENHBCI_LIB@ -lgwenhywfar" 1.46 + ;; 1.47 + --plugins) 1.48 + result="$result @PLUGIN_PATH@/@OPENHBCI_SO_VERSION@" 1.49 +Index: openhbci2-1.9.4/src/openhbci-tng/openhbci2-config.in.in 1.50 +--- openhbci2-1.9.4/src/openhbci-tng/openhbci2-config.in.in.orig 2004-05-20 03:33:53 +0200 1.51 ++++ openhbci2-1.9.4/src/openhbci-tng/openhbci2-config.in.in 2006-01-28 09:49:40 +0100 1.52 +@@ -9,7 +9,7 @@ 1.53 + result="$result @PROGRAM_INCLUDES@ -I$dir/include" 1.54 + ;; 1.55 + --libraries) 1.56 +- result="$result -L$dir/lib @OPENHBCI_LIB@" 1.57 ++ result="$result -L$dir/lib @OPENHBCI_LIB@ -lgwenhywfar" 1.58 + ;; 1.59 + --plugins) 1.60 + result="$result @PLUGIN_PATH@/@OPENHBCI_SO_EFFECTIVE_VERSION@" 1.61 +Index: openhbci2-1.9.4/src/tools/hbcixml/Makefile.in 1.62 +--- openhbci2-1.9.4/src/tools/hbcixml/Makefile.in.orig 2006-01-20 12:09:55 +0100 1.63 ++++ openhbci2-1.9.4/src/tools/hbcixml/Makefile.in 2006-01-28 09:49:40 +0100 1.64 +@@ -218,7 +218,7 @@ 1.65 + INCLUDES = -I../../../ -I../../../openhbci2 @PROGRAM_INCLUDES@ -I../../plugins/msg-xml 1.66 + noinst_HEADERS = loganalyzer.h 1.67 + hbcixml_SOURCES = hbcixml.cpp loganalyzer.cpp 1.68 +-hbcixml_LDADD = -L../../openhbci-tng -L../../openhbci-tng/openhbci-core @PROGRAM_LIBS@ ../../plugins/msg-xml/libmsgxml.la 1.69 ++hbcixml_LDADD = -L../../openhbci-tng -L../../openhbci-tng/openhbci-core @PROGRAM_LIBS@ ../../plugins/msg-xml/libmsgxml.la $(gwenhywfar_libs) 1.70 + all: all-am 1.71 + 1.72 + .SUFFIXES:
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/aqbanking/aqbanking.spec Wed Jan 07 14:58:25 2009 +0100 2.3 @@ -0,0 +1,249 @@ 2.4 +## 2.5 +## aqbanking.spec -- OpenPKG RPM Package Specification 2.6 +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> 2.7 +## 2.8 +## Permission to use, copy, modify, and distribute this software for 2.9 +## any purpose with or without fee is hereby granted, provided that 2.10 +## the above copyright notice and this permission notice appear in all 2.11 +## copies. 2.12 +## 2.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 2.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 2.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 2.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 2.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 2.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2.24 +## SUCH DAMAGE. 2.25 +## 2.26 + 2.27 +# package version 2.28 +%define V_openpkg 2.3.3 2.29 +%define V_aqbanking 2.3.3 2.30 +%define V_gwenhywfar 2.6.2 2.31 +%define V_openhbci2 1.9.4 2.32 +%define V_openhbci1 0.9.18 2.33 + 2.34 +# package information 2.35 +Name: aqbanking 2.36 +Summary: Banking Abstraction Library 2.37 +URL: http://www.aquamaniac.de/aqbanking/ 2.38 +Vendor: Martin Preuß 2.39 +Packager: OpenPKG Foundation e.V. 2.40 +Distribution: OpenPKG Community 2.41 +Class: EVAL 2.42 +Group: Finance 2.43 +License: GPL 2.44 +Version: %{V_openpkg} 2.45 +Release: 20080101 2.46 + 2.47 +# list of sources 2.48 +Source0: http://switch.dl.sourceforge.net/aqbanking/aqbanking-%{V_aqbanking}.tar.gz 2.49 +Source1: http://switch.dl.sourceforge.net/gwenhywfar/gwenhywfar-%{V_gwenhywfar}.tar.gz 2.50 +Source2: http://switch.dl.sourceforge.net/openhbci/openhbci2-%{V_openhbci2}.tar.gz 2.51 +Source3: http://switch.dl.sourceforge.net/openhbci/openhbci-%{V_openhbci1}.tar.gz 2.52 +Patch0: aqbanking.patch 2.53 + 2.54 +# build information 2.55 +Prefix: %{l_prefix} 2.56 +BuildRoot: %{l_buildroot} 2.57 +BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, gcc::with_cxx = yes 2.58 +PreReq: OpenPKG, openpkg >= 20040130 2.59 +BuildPreReq: openssl 2.60 +PreReq: openssl 2.61 +AutoReq: no 2.62 +AutoReqProv: no 2.63 + 2.64 +%description 2.65 + AqBanking is a middle layer between a home banking applicaton and 2.66 + various online banking backend libraries which provide various bank 2.67 + access methods. AqBanking supports the following banking operations: 2.68 + retrieving account balance, retrieving account statements, 2.69 + transfers, debit notes and EU transfers. 2.70 + 2.71 +%track 2.72 + prog aqbanking:aqbanking = { 2.73 + version = %{V_aqbanking} 2.74 + url = http://prdownloads.sourceforge.net/aqbanking/ 2.75 + regex = aqbanking-(\d+\.\d+(\.\d+)+)\.tar\.gz 2.76 + } 2.77 + prog aqbanking:gwenhywfar = { 2.78 + version = %{V_gwenhywfar} 2.79 + url = http://prdownloads.sourceforge.net/gwenhywfar/ 2.80 + regex = gwenhywfar-(\d+\.\d+\.\d+)\.tar\.gz 2.81 + } 2.82 + prog aqbanking:openhbci2 = { 2.83 + version = %{V_openhbci2} 2.84 + url = http://prdownloads.sourceforge.net/openhbci/ 2.85 + regex = openhbci2-(\d+\.\d+\.\d+)\.tar\.gz 2.86 + } 2.87 + prog aqbanking:openhbci1 = { 2.88 + version = %{V_openhbci1} 2.89 + url = http://prdownloads.sourceforge.net/openhbci/ 2.90 + regex = openhbci-(\d+\.\d+\.\d+)\.tar\.gz 2.91 + } 2.92 + 2.93 +%prep 2.94 + %setup -q -c 2.95 + %setup -q -D -T -a 1 2.96 + %setup -q -D -T -a 2 2.97 + %setup -q -D -T -a 3 2.98 + %patch -p0 2.99 + 2.100 +%build 2.101 + # build Gwhenhywfar 2.102 + ( cd gwenhywfar-%{V_gwenhywfar} 2.103 + %{l_shtool} subst \ 2.104 + -e 's;rm -Rf gwenhywfar;#;' \ 2.105 + configure 2.106 + CC="%{l_cc}" \ 2.107 + CFLAGS="%{l_cflags -O}" \ 2.108 + CPPFLAGS="-I`pwd`/gwenhywfar %{l_cppflags}" \ 2.109 + LDFLAGS="-L`pwd`/src %{l_ldflags}" \ 2.110 + ./configure \ 2.111 + --prefix=%{l_prefix} \ 2.112 + --enable-ssl \ 2.113 + --with-openssl-includes=%{l_prefix}/include \ 2.114 + --with-openssl-libs=%{l_prefix}/lib \ 2.115 + --disable-nls \ 2.116 + --disable-shared 2.117 + 2.118 + # build the library 2.119 + %{l_make} %{l_mflags} 2.120 + 2.121 + # pre-install it and adjust for temporary usage by AqBanking build (below) 2.122 + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 2.123 + %{l_shtool} subst \ 2.124 + -e "s;%{l_prefix};$RPM_BUILD_ROOT%{l_prefix};g" \ 2.125 + $RPM_BUILD_ROOT%{l_prefix}/bin/gwenhywfar-config 2.126 + ) || exit $? 2.127 + 2.128 + # build OpenHBCI v1 (legacy) 2.129 + ( cd openhbci-%{V_openhbci1} 2.130 + CC="%{l_prefix}/bin/gcc" \ 2.131 + CXX="%{l_prefix}/bin/g++" \ 2.132 + CFLAGS="%{l_cflags -O}" \ 2.133 + CXXFLAGS="%{l_cxxflags -O}" \ 2.134 + CPPFLAGS="%{l_cppflags}" \ 2.135 + LDFLAGS="%{l_ldflags}" \ 2.136 + ./configure \ 2.137 + --prefix=%{l_prefix} \ 2.138 + --with-plugin-path=%{l_prefix}/lib/openhbci/plugins \ 2.139 + --with-gwen-dir=$RPM_BUILD_ROOT%{l_prefix} \ 2.140 + --with-openssl-includes=%{l_prefix}/include \ 2.141 + --with-openssl-libs=%{l_prefix}/lib \ 2.142 + --enable-shared \ 2.143 + --enable-static 2.144 + %{l_make} %{l_mflags} 2.145 + ) || exit $? 2.146 + 2.147 + # build OpenHBCI v2 (legacy) 2.148 + ( cd openhbci2-%{V_openhbci2} 2.149 + %{l_shtool} subst \ 2.150 + -e 's;^\(hbcixml_LDADD =\);\1 -static ;g' \ 2.151 + src/tools/hbcixml/Makefile.in 2.152 + CC="%{l_prefix}/bin/gcc" \ 2.153 + CXX="%{l_prefix}/bin/g++" \ 2.154 + CFLAGS="%{l_cflags -O}" \ 2.155 + CXXFLAGS="%{l_cxxflags -O}" \ 2.156 + CPPFLAGS="%{l_cppflags}" \ 2.157 + LDFLAGS="%{l_ldflags}" \ 2.158 + ./configure \ 2.159 + --prefix=%{l_prefix} \ 2.160 + --with-plugin-path=%{l_prefix}/lib/openhbci2/plugins \ 2.161 + --with-xmldata-dir=%{l_prefix}/share/openhbci2/xmldata \ 2.162 + --with-gwen-dir=$RPM_BUILD_ROOT%{l_prefix} \ 2.163 + --with-openssl-includes=%{l_prefix}/include \ 2.164 + --with-openssl-libs=%{l_prefix}/lib \ 2.165 + --enable-shared \ 2.166 + --enable-static 2.167 + %{l_make} %{l_mflags} 2.168 + ) || exit $? 2.169 + 2.170 + # build AqBanking 2.171 + ( cd aqbanking-%{V_aqbanking} 2.172 + echo 'ac_cv_header_iconv_h=no' >config.cache 2.173 + CC="%{l_cc}" \ 2.174 + CFLAGS="%{l_cflags -O}" \ 2.175 + CPPFLAGS="-I`pwd`/aqbanking %{l_cppflags}" \ 2.176 + LDFLAGS="-L`pwd`/src/libs/aqbanking %{l_ldflags}" \ 2.177 + LIBS="-lssl -lcrypto" \ 2.178 + SHELL="%{l_bash}" \ 2.179 + ./configure \ 2.180 + --cache-file=./config.cache \ 2.181 + --prefix=%{l_prefix} \ 2.182 + --with-gwen-dir=$RPM_BUILD_ROOT%{l_prefix} \ 2.183 + --disable-chipcard-client \ 2.184 + --with-backends="aqhbci aqdtaus" \ 2.185 + --with-frontends="cbanking" \ 2.186 + --disable-nls \ 2.187 + --enable-shared \ 2.188 + --enable-static 2.189 + %{l_make} %{l_mflags} \ 2.190 + SHELL="%{l_bash}" 2.191 + ) || exit $? 2.192 + 2.193 +%install 2.194 + rm -rf $RPM_BUILD_ROOT 2.195 + 2.196 + # install Gwhenhywfar 2.197 + ( cd gwenhywfar-%{V_gwenhywfar} 2.198 + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 2.199 + ) || exit $? 2.200 + 2.201 + # install OpenHBCI v1 (legacy) 2.202 + ( cd openhbci-%{V_openhbci1} 2.203 + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 2.204 + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 2.205 + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/openhbci/plugins/*/*/*.a 2.206 + mv $RPM_BUILD_ROOT%{l_prefix}/lib/*.so* \ 2.207 + $RPM_BUILD_ROOT%{l_prefix}/lib/openhbci/ 2.208 + ) || exit $? 2.209 + 2.210 + # install OpenHBCI v2 (legacy) 2.211 + ( cd openhbci2-%{V_openhbci2} 2.212 + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 2.213 + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 2.214 + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/openhbci2/plugins/*/*/*.a 2.215 + mv $RPM_BUILD_ROOT%{l_prefix}/lib/*.so* \ 2.216 + $RPM_BUILD_ROOT%{l_prefix}/lib/openhbci2/ 2.217 + mv $RPM_BUILD_ROOT%{l_prefix}/bin/hbcixml \ 2.218 + $RPM_BUILD_ROOT%{l_prefix}/bin/openhbci2-hbcixml 2.219 + ) || exit $? 2.220 + 2.221 + # install AqBanking 2.222 + ( cd aqbanking-%{V_aqbanking} 2.223 + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 2.224 + ) || exit $? 2.225 + 2.226 + # strip down installation 2.227 + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 2.228 + rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/gwen-public-ca.crt 2.229 + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.so* 2.230 + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/aqbanking/plugins/0/*/*.a 2.231 + rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc 2.232 + 2.233 + # post-adjust installation 2.234 + %{l_shtool} subst \ 2.235 + -e 's;-laqbanking";-laqbanking -lgwenhywfar";' \ 2.236 + -e 's;-laqbankingpp";-laqbankingpp -lgwenpp";' \ 2.237 + -e "s;$RPM_BUILD_ROOT%{l_prefix};%{l_prefix};" \ 2.238 + $RPM_BUILD_ROOT%{l_prefix}/bin/aqbanking-config 2.239 + %{l_shtool} subst \ 2.240 + -e 's;^\(dlname=.\).*\(.\)$;\1\2;' \ 2.241 + -e 's;^\(library_names=.\).*\(.\)$;\1\2;' \ 2.242 + $RPM_BUILD_ROOT%{l_prefix}/lib/lib*.la 2.243 + 2.244 + # determine installation files 2.245 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ 2.246 + %{l_files_std} 2.247 + 2.248 +%files -f files 2.249 + 2.250 +%clean 2.251 + rm -rf $RPM_BUILD_ROOT 2.252 +
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/aqmoney/aqmoney.patch Wed Jan 07 14:58:25 2009 +0100 3.3 @@ -0,0 +1,63 @@ 3.4 +Index: src/Makefile.in 3.5 +--- src/Makefile.in.orig 2004-05-27 23:29:46 +0200 3.6 ++++ src/Makefile.in 2005-04-21 21:58:27 +0200 3.7 +@@ -197,7 +197,7 @@ 3.8 + 3.9 + 3.10 + aqmoney2_LDADD = \ 3.11 +- @PROGRAM_LIBS@ modules/libmodules.la libaqmoney/libaqmoney.la 3.12 ++ modules/libmodules.la libaqmoney/libaqmoney.la @PROGRAM_LIBS@ 3.13 + 3.14 + aqmoney2_SOURCES = \ 3.15 + aqmauth.cpp \ 3.16 +@@ -206,7 +206,7 @@ 3.17 + 3.18 + 3.19 + qtest_LDADD = \ 3.20 +- @PROGRAM_LIBS@ modules/libmodules.la libaqmoney/libaqmoney.la 3.21 ++ modules/libmodules.la libaqmoney/libaqmoney.la @PROGRAM_LIBS@ 3.22 + 3.23 + 3.24 + qtest_SOURCES = qtest.cpp 3.25 +Index: src/libaqmoney/converter/oldconf.c 3.26 +--- src/libaqmoney/converter/oldconf.c.orig 2004-01-25 19:51:29 +0100 3.27 ++++ src/libaqmoney/converter/oldconf.c 2005-04-21 21:34:14 +0200 3.28 +@@ -642,7 +642,7 @@ 3.29 + assert(root); 3.30 + assert(path); 3.31 + DBG_VERBOUS(0, "GetValue for \"%s\"",path); 3.32 +- var=ConfigOld__GetPath(root,path, 3.33 ++ var=(CONFIGOLDVARIABLE *)ConfigOld__GetPath(root,path, 3.34 + CONFIGOLDMODE_PATHMUSTEXIST | 3.35 + CONFIGOLDMODE_NAMEMUSTEXIST | 3.36 + CONFIGOLDMODE_VARIABLE); 3.37 +@@ -945,7 +945,7 @@ 3.38 + } 3.39 + *p=0; 3.40 + DBG_VERBOUS(0, "Selecting group \"%s\"",name); 3.41 +- grp=ConfigOld__GetPath(root, name, mode &~CONFIGOLDMODE_VARIABLE); 3.42 ++ grp=(CONFIGOLDGROUP *)ConfigOld__GetPath(root, name, mode &~CONFIGOLDMODE_VARIABLE); 3.43 + if (!grp) { 3.44 + DBG_DEBUG(0, "Group \"%s\" is not available",name); 3.45 + return 0; 3.46 +@@ -1017,7 +1017,7 @@ 3.47 + 3.48 + DBG_VERBOUS(0, "Creating variable \"%s\"",np); 3.49 + if (mode & CONFIGOLDMODE_ALLOW_PATH_IN_VARS) 3.50 +- var=ConfigOld__GetPath(group, 3.51 ++ var=(CONFIGOLDVARIABLE *)ConfigOld__GetPath(group, 3.52 + np, 3.53 + mode|CONFIGOLDMODE_VARIABLE); 3.54 + else { 3.55 +Index: configure 3.56 +--- configure.orig 2004-05-27 23:29:51 +0200 3.57 ++++ configure 2005-04-22 11:16:30 +0200 3.58 +@@ -21333,7 +21333,7 @@ 3.59 + 3.60 + if test -n "$found_file" ; then 3.61 + ktoblzcheck_libraries="-L$d" 3.62 +- ktoblzcheck_lib="-l`echo $found_file | sed 's/lib//;s/\.so*//;s/\.a//'`" 3.63 ++ ktoblzcheck_lib="-l`echo $found_file | sed 's/lib//;s/\.so*//;s/\.a//;s/\\.la//'`" 3.64 + break 3.65 + fi 3.66 + done
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/aqmoney/aqmoney.spec Wed Jan 07 14:58:25 2009 +0100 4.3 @@ -0,0 +1,158 @@ 4.4 +## 4.5 +## aqmoney.spec -- OpenPKG RPM Package Specification 4.6 +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> 4.7 +## 4.8 +## Permission to use, copy, modify, and distribute this software for 4.9 +## any purpose with or without fee is hereby granted, provided that 4.10 +## the above copyright notice and this permission notice appear in all 4.11 +## copies. 4.12 +## 4.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 4.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 4.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 4.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 4.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 4.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 4.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 4.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 4.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 4.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 4.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 4.24 +## SUCH DAMAGE. 4.25 +## 4.26 + 4.27 +# package version 4.28 +%define V_aqmoney 1.9.5 4.29 +%define V_ktoblzcheck 1.19 4.30 + 4.31 +# package information 4.32 +Name: aqmoney 4.33 +Summary: Homebanking Command Line Interface 4.34 +URL: http://aqmoney.sourceforge.net/ 4.35 +Vendor: Martin Preuß 4.36 +Packager: OpenPKG Foundation e.V. 4.37 +Distribution: OpenPKG Community 4.38 +Class: EVAL 4.39 +Group: Finance 4.40 +License: GPL 4.41 +Version: %{V_aqmoney} 4.42 +Release: 20080813 4.43 + 4.44 +# list of sources 4.45 +Source0: http://switch.dl.sourceforge.net/aqmoney/aqmoney2-%{V_aqmoney}.tar.gz 4.46 +Source1: http://switch.dl.sourceforge.net/ktoblzcheck/ktoblzcheck-%{V_ktoblzcheck}.tar.gz 4.47 +Patch0: aqmoney.patch 4.48 + 4.49 +# build information 4.50 +Prefix: %{l_prefix} 4.51 +BuildRoot: %{l_buildroot} 4.52 +BuildPreReq: OpenPKG, openpkg >= 20040130 4.53 +PreReq: OpenPKG, openpkg >= 20040130 4.54 +BuildPreReq: aqbanking 4.55 +PreReq: aqbanking 4.56 +AutoReq: no 4.57 +AutoReqProv: no 4.58 + 4.59 +%description 4.60 + AqMoney is a command line interface for the AqBanking/AqHBCI and 4.61 + OpenHBCI libraries in order to perform financial transactions 4.62 + through the German HomeBanking Computer Interface (HBCI). 4.63 + 4.64 +%track 4.65 + prog aqmoney = { 4.66 + version = %{V_aqmoney} 4.67 + url = http://prdownloads.sourceforge.net/aqmoney/ 4.68 + regex = aqmoney2-(__VER__)\.tar\.gz 4.69 + } 4.70 + prog aqmoney:ktoblzcheck = { 4.71 + version = %{V_ktoblzcheck} 4.72 + url = http://prdownloads.sourceforge.net/ktoblzcheck/ 4.73 + regex = ktoblzcheck-(__VER__)\.tar\.gz 4.74 + } 4.75 + 4.76 +%prep 4.77 + %setup -q -c 4.78 + %setup -q -D -T -a 1 4.79 + %patch -p0 -d aqmoney2-%{V_aqmoney} 4.80 + 4.81 +%build 4.82 + # build KtoBlzCheck library 4.83 + ( cd ktoblzcheck-%{V_ktoblzcheck} 4.84 + CC="%{l_cc}" \ 4.85 + CXX="%{l_cxx}" \ 4.86 + CFLAGS="%{l_cflags -O}" \ 4.87 + CXXFLAGS="%{l_cxxflags -O}" \ 4.88 + CPPFLAGS="%{l_cppflags}" \ 4.89 + LDFLAGS="%{l_ldflags}" \ 4.90 + ./configure \ 4.91 + --prefix=%{l_prefix} \ 4.92 + --disable-shared 4.93 + %{l_make} %{l_mflags -O} 4.94 + 4.95 + # pre-install it and adjust for temporary usage by AqMoney build (below) 4.96 + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 4.97 + ) || exit $? 4.98 + 4.99 + # configure and build program 4.100 + ( cd aqmoney2-%{version} 4.101 + %{l_shtool} subst \ 4.102 + -e 's;ktoblzcheck_datafile="";;' \ 4.103 + configure 4.104 + CC="%{l_cxx}" \ 4.105 + CXX="%{l_cxx}" \ 4.106 + CFLAGS="%{l_cflags -O}" \ 4.107 + CXXFLAGS="%{l_cxxflags -O}" \ 4.108 + CPPFLAGS="%{l_cppflags}" \ 4.109 + LDFLAGS="%{l_ldflags}" \ 4.110 + ./configure \ 4.111 + --prefix=%{l_prefix} \ 4.112 + --with-openhbci-prefix=%{l_prefix} \ 4.113 + --with-ktoblzcheck-includes=$RPM_BUILD_ROOT%{l_prefix}/include \ 4.114 + --with-ktoblzcheck-libs=$RPM_BUILD_ROOT%{l_prefix}/lib \ 4.115 + --with-ktoblzcheck-datafile=%{l_prefix}/share/ktoblzcheck/bankdata.txt \ 4.116 + --disable-shared \ 4.117 + --disable-nls 4.118 + %{l_make} %{l_mflags -O} 4.119 + ) || exit $? 4.120 + 4.121 +%install 4.122 + rm -rf $RPM_BUILD_ROOT 4.123 + 4.124 + # install programs 4.125 + ( cd ktoblzcheck-%{V_ktoblzcheck} 4.126 + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 4.127 + ) || exit $? 4.128 + ( cd aqmoney2-%{version} 4.129 + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 4.130 + ) || exit $? 4.131 + 4.132 + # workaround problems with AqHBCI plugin run-time 4.133 + %{l_shtool} mkdir -f -p -m 755 \ 4.134 + $RPM_BUILD_ROOT%{l_prefix}/libexec/aqmoney 4.135 + mv $RPM_BUILD_ROOT%{l_prefix}/bin/aqmoney2 \ 4.136 + $RPM_BUILD_ROOT%{l_prefix}/libexec/aqmoney/aqmoney 4.137 + ( echo "#!/bin/sh" 4.138 + echo "LD_LIBRARY_PATH=\"%{l_prefix}/lib/openhbci2:/lib:/usr/lib\"" 4.139 + echo "export LD_LIBRARY_PATH" 4.140 + echo "exec %{l_prefix}/libexec/aqmoney/aqmoney \${1+\"\$@\"}" 4.141 + ) >$RPM_BUILD_ROOT%{l_prefix}/bin/aqmoney 4.142 + chmod a+x $RPM_BUILD_ROOT%{l_prefix}/bin/aqmoney 4.143 + 4.144 + # post-adjust installation 4.145 + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 4.146 + mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/aqmoney2.1 \ 4.147 + $RPM_BUILD_ROOT%{l_prefix}/man/man1/aqmoney.1 4.148 + mv $RPM_BUILD_ROOT%{l_prefix}/include/aqmoney2 \ 4.149 + $RPM_BUILD_ROOT%{l_prefix}/include/aqmoney 4.150 + %{l_shtool} subst \ 4.151 + -e 's;aqmoney2;aqmoney;g' \ 4.152 + $RPM_BUILD_ROOT%{l_prefix}/man/man1/aqmoney.1 4.153 + 4.154 + # determine installation files 4.155 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 4.156 + 4.157 +%files -f files 4.158 + 4.159 +%clean 4.160 + rm -rf $RPM_BUILD_ROOT 4.161 +
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/bison/bison.patch Wed Jan 07 14:58:25 2009 +0100 5.3 @@ -0,0 +1,31 @@ 5.4 +Index: lib/timevar.c 5.5 +--- lib/timevar.c.orig 2008-07-14 10:56:12 +0200 5.6 ++++ lib/timevar.c 2008-11-03 19:16:04 +0100 5.7 +@@ -42,6 +42,7 @@ 5.8 + # include <sys/times.h> 5.9 + #endif 5.10 + #ifdef HAVE_SYS_RESOURCE_H 5.11 ++#include <sys/time.h> 5.12 + #include <sys/resource.h> 5.13 + #endif 5.14 + 5.15 +---------------------------------------------------------------------------- 5.16 + 5.17 +Security Fix: 5.18 +http://undeadly.org/cgi?action=article&sid=20080708155228&mode=flat&count=13 5.19 + 5.20 +Index: data/yacc.c 5.21 +--- data/yacc.c.orig 2008-11-02 19:09:10 +0100 5.22 ++++ data/yacc.c 2008-11-03 19:16:04 +0100 5.23 +@@ -1444,7 +1444,10 @@ 5.24 + users should not rely upon it. Assigning to YYVAL 5.25 + unconditionally makes the parser a bit smaller, and it avoids a 5.26 + GCC warning that YYVAL may be used uninitialized. */ 5.27 ++if (yylen) 5.28 + yyval = yyvsp[1-yylen]; 5.29 ++else 5.30 ++ memset(&yyval, 0, sizeof(yyval)); 5.31 + 5.32 + ]b4_locations_if( 5.33 + [[ /* Default location. */ 5.34 +
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/bison/bison.spec Wed Jan 07 14:58:25 2009 +0100 6.3 @@ -0,0 +1,137 @@ 6.4 +## 6.5 +## bison.spec -- OpenPKG RPM Package Specification 6.6 +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> 6.7 +## 6.8 +## Permission to use, copy, modify, and distribute this software for 6.9 +## any purpose with or without fee is hereby granted, provided that 6.10 +## the above copyright notice and this permission notice appear in all 6.11 +## copies. 6.12 +## 6.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 6.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 6.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 6.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 6.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 6.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 6.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 6.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 6.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 6.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 6.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 6.24 +## SUCH DAMAGE. 6.25 +## 6.26 + 6.27 +# package versions 6.28 +%define V_new 2.4.1 6.29 +%define V_old 1.35 6.30 + 6.31 +# package information 6.32 +Name: bison 6.33 +Summary: Yacc-compatible LALR(1) Parser Generator 6.34 +URL: http://www.gnu.org/software/bison/ 6.35 +Vendor: Free Software Foundation 6.36 +Packager: OpenPKG Foundation e.V. 6.37 +Distribution: OpenPKG Community 6.38 +Class: CORE 6.39 +Group: CompilerCompiler 6.40 +License: GPL 6.41 +Version: %{V_new} 6.42 +Release: 20081213 6.43 + 6.44 +# package options 6.45 +%option with_old no 6.46 + 6.47 +# list of sources 6.48 +Source0: ftp://ftp.gnu.org/gnu/bison/bison-%{V_new}.tar.gz 6.49 +Source1: ftp://ftp.gnu.org/gnu/bison/bison-%{V_old}.tar.gz 6.50 +Patch0: bison.patch 6.51 + 6.52 +# build information 6.53 +Prefix: %{l_prefix} 6.54 +BuildRoot: %{l_buildroot} 6.55 +BuildPreReq: OpenPKG, openpkg >= 20040212, m4, make 6.56 +PreReq: OpenPKG, openpkg >= 20040212, m4 6.57 +AutoReq: no 6.58 +AutoReqProv: no 6.59 +Conflicts: yacc 6.60 + 6.61 +%description 6.62 + Bison is a general-purpose parser generator that converts a grammar 6.63 + description for an LALR(1) context-free grammar into a C program 6.64 + to parse that grammar. Once you are proficient with bison, you may 6.65 + use it to develop a wide range of language parsers, from those used 6.66 + in simple desk calculators to complex programming languages. Bison 6.67 + is upward compatible with yacc: all properly-written yacc grammars 6.68 + ought to work with bison with no change. Anyone familiar with yacc 6.69 + should be able to use bison with little trouble. 6.70 + 6.71 +%track 6.72 + prog bison:new = { 6.73 + version = %{V_new} 6.74 + url = ftp://ftp.gnu.org/gnu/bison/ 6.75 + regex = bison-(2.\d+(.\d+)*[a-z]?)\.tar\.gz 6.76 + } 6.77 + prog bison:old = { 6.78 + version = %{V_old} 6.79 + url = ftp://ftp.gnu.org/gnu/bison/ 6.80 + regex = bison-(1\.3\d+)\.tar\.gz 6.81 + } 6.82 + 6.83 +%prep 6.84 + %setup -q -c -n bison-%{V_new} 6.85 + %patch -p0 -d bison-%{V_new} 6.86 + %setup -q -T -D -a 1 6.87 + %{l_shtool} subst \ 6.88 + -e 's;^\( *SUBDIRS = .*\) examples\(.*\)$;\1\2;' \ 6.89 + bison-%{V_new}/Makefile.in 6.90 + 6.91 +%build 6.92 + ( cd bison-%{V_new} 6.93 + CC="%{l_cc}" \ 6.94 + CFLAGS="%{l_cflags -O}" \ 6.95 + CONFIG_SHELL=/bin/sh \ 6.96 + ./configure \ 6.97 + --prefix=%{l_prefix} \ 6.98 + --mandir=%{l_prefix}/man \ 6.99 + --infodir=%{l_prefix}/info \ 6.100 + --disable-nls 6.101 + %{l_make} -f Makefile %{l_mflags} 6.102 + ) || exit $? 6.103 +%if "%{with_old}" == "yes" 6.104 + ( cd bison-%{V_old} 6.105 + CC="%{l_cc}" \ 6.106 + CFLAGS="%{l_cflags -O}" \ 6.107 + ./configure \ 6.108 + --prefix=%{l_prefix} \ 6.109 + --mandir=%{l_prefix}/man \ 6.110 + --infodir=%{l_prefix}/info \ 6.111 + --disable-nls 6.112 + %{l_make} -f Makefile %{l_mflags} 6.113 + ) || exit $? 6.114 +%endif 6.115 + 6.116 +%install 6.117 + rm -rf $RPM_BUILD_ROOT 6.118 +%if "%{with_old}" == "yes" 6.119 + ( cd bison-%{V_old} 6.120 + %{l_make} -f Makefile %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 6.121 + mv $RPM_BUILD_ROOT%{l_prefix}/bin/bison \ 6.122 + $RPM_BUILD_ROOT%{l_prefix}/bin/bison-old 6.123 + mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/bison.1 \ 6.124 + $RPM_BUILD_ROOT%{l_prefix}/man/man1/bison-old.1 6.125 + ) || exit $? 6.126 +%endif 6.127 + ( cd bison-%{V_new} 6.128 + %{l_make} -f Makefile %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 6.129 + ) || exit $? 6.130 + rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale 6.131 + rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir 6.132 + rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias 6.133 + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 6.134 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 6.135 + 6.136 +%files -f files 6.137 + 6.138 +%clean 6.139 + rm -rf $RPM_BUILD_ROOT 6.140 +
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 7.2 +++ b/perl/perl.patch Wed Jan 07 14:58:25 2009 +0100 7.3 @@ -0,0 +1,309 @@ 7.4 +By default, the "vendor" area is not used, so Perl's installation 7.5 +procedure forgot to create its top-level paths, too. In OpenPKG we use 7.6 +the "vendor" area, so make sure it is created the same way the "site" 7.7 +area is. 7.8 + 7.9 +Index: installperl 7.10 +--- installperl.orig 2007-12-18 11:47:07 +0100 7.11 ++++ installperl 2008-03-28 15:23:47 +0100 7.12 +@@ -211,6 +211,8 @@ 7.13 + my $installarchlib = "$destdir$Config{installarchlib}"; 7.14 + my $installsitelib = "$destdir$Config{installsitelib}"; 7.15 + my $installsitearch = "$destdir$Config{installsitearch}"; 7.16 ++my $installvendorlib = "$destdir$Config{installvendorlib}"; 7.17 ++my $installvendorarch = "$destdir$Config{installvendorarch}"; 7.18 + my $installman1dir = "$destdir$Config{installman1dir}"; 7.19 + my $man1ext = $Config{man1ext}; 7.20 + my $libperl = $Config{libperl}; 7.21 +@@ -372,6 +374,8 @@ 7.22 + mkpath($installarchlib, $verbose, 0777); 7.23 + mkpath($installsitelib, $verbose, 0777) if ($installsitelib); 7.24 + mkpath($installsitearch, $verbose, 0777) if ($installsitearch); 7.25 ++mkpath($installvendorlib, $verbose, 0777) if ($installvendorlib); 7.26 ++mkpath($installvendorarch, $verbose, 0777) if ($installvendorarch); 7.27 + 7.28 + if (chdir "lib") { 7.29 + $do_installarchlib = ! samepath($installarchlib, '.'); 7.30 + 7.31 +----------------------------------------------------------------------------- 7.32 + 7.33 +By default, the Perl module search order is "use lib, -I, PERL[5]LIB, 7.34 +perl, site, vendor, other". This means that in OpenPKG both the modules 7.35 +installed via CPAN shell (in "site" area) and the "perl-xxx" packages 7.36 +(in "vendor" area) cannot override the (sometimes obsoleted) module 7.37 +versions distributed with Perl (in "perl" area). Hence, we change 7.38 +the search order to a more reasonable one for OpenPKG: "use lib, -I, 7.39 +PERL[5]LIB, site, vendor, perl, other". 7.40 + 7.41 +Index: perl.c 7.42 +--- perl.c.orig 2007-12-18 11:47:08 +0100 7.43 ++++ perl.c 2008-03-28 15:23:47 +0100 7.44 +@@ -4753,39 +4753,6 @@ 7.45 + incpush(APPLLIB_EXP, TRUE, TRUE, TRUE, TRUE); 7.46 + #endif 7.47 + 7.48 +-#ifdef ARCHLIB_EXP 7.49 +- incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE, TRUE); 7.50 +-#endif 7.51 +-#ifdef MACOS_TRADITIONAL 7.52 +- { 7.53 +- Stat_t tmpstatbuf; 7.54 +- SV * privdir = newSV(0); 7.55 +- char * macperl = PerlEnv_getenv("MACPERL"); 7.56 +- 7.57 +- if (!macperl) 7.58 +- macperl = ""; 7.59 +- 7.60 +- Perl_sv_setpvf(aTHX_ privdir, "%slib:", macperl); 7.61 +- if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode)) 7.62 +- incpush(SvPVX(privdir), TRUE, FALSE, TRUE, FALSE); 7.63 +- Perl_sv_setpvf(aTHX_ privdir, "%ssite_perl:", macperl); 7.64 +- if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode)) 7.65 +- incpush(SvPVX(privdir), TRUE, FALSE, TRUE, FALSE); 7.66 +- 7.67 +- SvREFCNT_dec(privdir); 7.68 +- } 7.69 +- if (!PL_tainting) 7.70 +- incpush(":", FALSE, FALSE, TRUE, FALSE); 7.71 +-#else 7.72 +-#ifndef PRIVLIB_EXP 7.73 +-# define PRIVLIB_EXP "/usr/local/lib/perl5:/usr/local/lib/perl" 7.74 +-#endif 7.75 +-#if defined(WIN32) 7.76 +- incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE, TRUE); 7.77 +-#else 7.78 +- incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE, TRUE); 7.79 +-#endif 7.80 +- 7.81 + #ifdef SITEARCH_EXP 7.82 + /* sitearch is always relative to sitelib on Windows for 7.83 + * DLL-based path intuition to work correctly */ 7.84 +@@ -4828,6 +4795,39 @@ 7.85 + incpush(PERL_VENDORLIB_STEM, FALSE, TRUE, TRUE, TRUE); 7.86 + #endif 7.87 + 7.88 ++#ifdef ARCHLIB_EXP 7.89 ++ incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE, TRUE); 7.90 ++#endif 7.91 ++#ifdef MACOS_TRADITIONAL 7.92 ++ { 7.93 ++ Stat_t tmpstatbuf; 7.94 ++ SV * privdir = newSV(0); 7.95 ++ char * macperl = PerlEnv_getenv("MACPERL"); 7.96 ++ 7.97 ++ if (!macperl) 7.98 ++ macperl = ""; 7.99 ++ 7.100 ++ Perl_sv_setpvf(aTHX_ privdir, "%slib:", macperl); 7.101 ++ if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode)) 7.102 ++ incpush(SvPVX(privdir), TRUE, FALSE, TRUE, FALSE); 7.103 ++ Perl_sv_setpvf(aTHX_ privdir, "%ssite_perl:", macperl); 7.104 ++ if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode)) 7.105 ++ incpush(SvPVX(privdir), TRUE, FALSE, TRUE, FALSE); 7.106 ++ 7.107 ++ SvREFCNT_dec(privdir); 7.108 ++ } 7.109 ++ if (!PL_tainting) 7.110 ++ incpush(":", FALSE, FALSE, TRUE, FALSE); 7.111 ++#else 7.112 ++#ifndef PRIVLIB_EXP 7.113 ++# define PRIVLIB_EXP "/usr/local/lib/perl5:/usr/local/lib/perl" 7.114 ++#endif 7.115 ++#if defined(WIN32) 7.116 ++ incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE, TRUE); 7.117 ++#else 7.118 ++ incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE, TRUE); 7.119 ++#endif 7.120 ++ 7.121 + #ifdef PERL_OTHERLIBDIRS 7.122 + incpush(PERL_OTHERLIBDIRS, TRUE, TRUE, TRUE, TRUE); 7.123 + #endif 7.124 + 7.125 +----------------------------------------------------------------------------- 7.126 + 7.127 +Port to [Open]Darwin 6.6.2: 7.128 + 7.129 +1. In OpenPKG, Perl does not use the vendor GCC and our GCC does not 7.130 + understand "-no-cpp-precomp", so remove this build option. 7.131 + 7.132 +2. The <sys/mman.h> indirectly includes system specific headers 7.133 + which in turn have fields named "environ" while Perl uses 7.134 + a define of "environ" internally. So wrap the inclusion. 7.135 + 7.136 +3. Darwin 6 no longer accepts the non-standard "#import" statements, 7.137 + so replace with "#include" and circumvent some header problem 7.138 + related to the non-standard "__private_extern__" attribute. 7.139 + 7.140 +Index: hints/darwin.sh 7.141 +--- hints/darwin.sh.orig 2007-12-18 11:47:07 +0100 7.142 ++++ hints/darwin.sh 2008-03-28 15:23:47 +0100 7.143 +@@ -120,9 +120,6 @@ 7.144 + *-2147483648) ccflags="${ccflags} -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN" ;; 7.145 + esac 7.146 + 7.147 +-# Avoid Apple's cpp precompiler, better for extensions 7.148 +-cppflags="${cppflags} -no-cpp-precomp" 7.149 +- 7.150 + # This is necessary because perl's build system doesn't 7.151 + # apply cppflags to cc compile lines as it should. 7.152 + ccflags="${ccflags} ${cppflags}" 7.153 +@@ -182,8 +179,7 @@ 7.154 + esac 7.155 + ldlibpthname='DYLD_LIBRARY_PATH'; 7.156 + 7.157 +-# useshrplib=true results in much slower startup times. 7.158 +-# 'false' is the default value. Use Configure -Duseshrplib to override. 7.159 ++useshrplib='true' 7.160 + 7.161 + cat > UU/archname.cbu <<'EOCBU' 7.162 + # This script UU/archname.cbu will get 'called-back' by Configure 7.163 +Index: perlio.c 7.164 +--- perlio.c.orig 2007-12-18 11:47:08 +0100 7.165 ++++ perlio.c 2008-03-28 15:23:47 +0100 7.166 +@@ -472,7 +472,14 @@ 7.167 + #include <unistd.h> 7.168 + #endif 7.169 + #ifdef HAS_MMAP 7.170 ++#ifdef PERL_DARWIN 7.171 ++#define environ_safe environ 7.172 ++#undef environ 7.173 + #include <sys/mman.h> 7.174 ++#define environ environ_safe 7.175 ++#else 7.176 ++#include <sys/mman.h> 7.177 ++#endif 7.178 + #endif 7.179 + 7.180 + void 7.181 +Index: ext/DynaLoader/dl_dyld.xs 7.182 +--- ext/DynaLoader/dl_dyld.xs.orig 2007-12-18 11:47:07 +0100 7.183 ++++ ext/DynaLoader/dl_dyld.xs 2008-03-28 15:23:47 +0100 7.184 +@@ -45,7 +45,13 @@ 7.185 + 7.186 + #undef environ 7.187 + #undef bool 7.188 ++#ifdef PERL_DARWIN 7.189 ++#define __private_extern__ extern 7.190 ++#include <mach-o/dyld.h> 7.191 ++#undef __private_extern__ 7.192 ++#else 7.193 + #import <mach-o/dyld.h> 7.194 ++#endif 7.195 + 7.196 + static char *dlerror() 7.197 + { 7.198 + 7.199 +----------------------------------------------------------------------------- 7.200 + 7.201 +Port to Tru64 5.1: 7.202 + 7.203 +Under Tru64 our gcc has to be built without binutils and the system 7.204 +ld(1) does not accept a "-O" option, so remove the whole passing of 7.205 +optimization flags to ld(1). Under a brain-dead platform like Tru64 we 7.206 +really don't need any more optimization because we are already happy if 7.207 +it works at all. 7.208 + 7.209 +Index: hints/dec_osf.sh 7.210 +--- hints/dec_osf.sh.orig 2007-12-18 11:47:07 +0100 7.211 ++++ hints/dec_osf.sh 2008-03-28 15:23:47 +0100 7.212 +@@ -73,15 +73,6 @@ 7.213 + *) if $test "X$optimize" = "X$undef"; then 7.214 + lddlflags="$lddlflags -msym" 7.215 + else 7.216 +- case "$myosvers" in 7.217 +- *4.0D*) 7.218 +- # QAR 56761: -O4 + .so may produce broken code, 7.219 +- # fixed in 4.0E or better. 7.220 +- ;; 7.221 +- *) 7.222 +- lddlflags="$lddlflags $optimize" 7.223 +- ;; 7.224 +- esac 7.225 + # -msym: If using a sufficiently recent /sbin/loader, 7.226 + # keep the module symbols with the modules. 7.227 + lddlflags="$lddlflags -msym $_lddlflags_strict_ansi" 7.228 + 7.229 +----------------------------------------------------------------------------- 7.230 + 7.231 +http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0976 7.232 + Multiple scripts in the perl package in Trustix Secure Linux 1.5 7.233 + through 2.1, and possibly other operating systems, allows local 7.234 + users to overwrite files via a symlink attack on temporary files. 7.235 + 7.236 +Index: lib/CGI/Cookie.pm 7.237 +--- lib/CGI/Cookie.pm.orig 2007-12-18 11:47:07 +0100 7.238 ++++ lib/CGI/Cookie.pm 2008-03-28 15:23:47 +0100 7.239 +@@ -470,7 +470,7 @@ 7.240 + You may also retrieve cookies that were stored in some external 7.241 + form using the parse() class method: 7.242 + 7.243 +- $COOKIES = `cat /usr/tmp/Cookie_stash`; 7.244 ++ $COOKIES = `cat /var/run/www/Cookie_stash`; 7.245 + %cookies = parse CGI::Cookie($COOKIES); 7.246 + 7.247 + If you are in a mod_perl environment, you can save some overhead by 7.248 +Index: lib/Shell.pm 7.249 +--- lib/Shell.pm.orig 2007-12-18 11:47:07 +0100 7.250 ++++ lib/Shell.pm 2008-03-28 15:23:47 +0100 7.251 +@@ -151,7 +151,7 @@ 7.252 + use Shell qw(cat ps cp); 7.253 + $passwd = cat('</etc/passwd'); 7.254 + @pslines = ps('-ww'), 7.255 +- cp("/etc/passwd", "/tmp/passwd"); 7.256 ++ cp("/etc/passwd", "/etc/passwd.orig"); 7.257 + 7.258 + # object oriented 7.259 + my $sh = Shell->new; 7.260 + 7.261 +----------------------------------------------------------------------------- 7.262 + 7.263 +Index: Configure 7.264 +--- Configure.orig 2007-12-18 11:47:07 +0100 7.265 ++++ Configure 2008-03-28 15:23:47 +0100 7.266 +@@ -7871,7 +7871,7 @@ 7.267 + ;; 7.268 + linux|irix*|gnu*) dflt="-shared $optimize" ;; 7.269 + next) dflt='none' ;; 7.270 +- solaris) dflt='-G' ;; 7.271 ++ solaris) dflt='-shared' ;; 7.272 + sunos) dflt='-assert nodefinitions' ;; 7.273 + svr4*|esix*|nonstopux) dflt="-G $ldflags" ;; 7.274 + *) dflt='none' ;; 7.275 + 7.276 +----------------------------------------------------------------------------- 7.277 + 7.278 +Security Fix (CVE-2005-3962, OpenPKG-SA-2005.025-perl) 7.279 + 7.280 +Index: sv.c 7.281 +--- sv.c.orig 2007-12-18 11:47:08 +0100 7.282 ++++ sv.c 2008-03-28 15:23:47 +0100 7.283 +@@ -8667,7 +8667,10 @@ 7.284 + if ( (width = expect_number(&q)) ) { 7.285 + if (*q == '$') { 7.286 + ++q; 7.287 +- efix = width; 7.288 ++ if (width > PERL_INT_MAX) 7.289 ++ efix = PERL_INT_MAX; 7.290 ++ else 7.291 ++ efix = width; 7.292 + } else { 7.293 + goto gotwidth; 7.294 + } 7.295 + 7.296 +----------------------------------------------------------------------------- 7.297 + 7.298 +Detect NetBSD 5.x as well 7.299 + 7.300 +Index: hints/netbsd.sh 7.301 +--- hints/netbsd.sh.orig 2007-12-18 11:47:07.000000000 +0100 7.302 ++++ hints/netbsd.sh 2008-12-24 10:51:08.000000000 +0100 7.303 +@@ -79,7 +79,7 @@ 7.304 + ;; 7.305 + esac 7.306 + case "$osvers" in 7.307 +-0.9*|1.*|2.*|3.*|4.*) 7.308 ++0.9*|1.*|2.*|3.*|4.*|5.*) 7.309 + d_getprotoent_r="$undef" 7.310 + d_getprotobyname_r="$undef" 7.311 + d_getprotobynumber_r="$undef" 7.312 +
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 8.2 +++ b/perl/perl.spec Wed Jan 07 14:58:25 2009 +0100 8.3 @@ -0,0 +1,212 @@ 8.4 +## 8.5 +## perl.spec -- OpenPKG RPM Package Specification 8.6 +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> 8.7 +## 8.8 +## Permission to use, copy, modify, and distribute this software for 8.9 +## any purpose with or without fee is hereby granted, provided that 8.10 +## the above copyright notice and this permission notice appear in all 8.11 +## copies. 8.12 +## 8.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 8.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 8.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 8.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 8.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 8.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 8.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 8.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 8.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 8.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 8.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 8.24 +## SUCH DAMAGE. 8.25 +## 8.26 + 8.27 +# package information 8.28 +Name: perl 8.29 +Summary: Practical Extraction and Reporting Language 8.30 +URL: http://www.perl.com/ 8.31 +Vendor: The Perl Project 8.32 +Packager: OpenPKG Foundation e.V. 8.33 +Distribution: OpenPKG Community 8.34 +Class: CORE 8.35 +Group: Perl 8.36 +License: GPL/Artistic 8.37 +Version: 5.10.0 8.38 +Release: 20081225 8.39 + 8.40 +# list of sources 8.41 +Source0: ftp://ftp.cpan.org/pub/CPAN/src/perl-%{version}.tar.gz 8.42 +Patch0: perl.patch 8.43 + 8.44 +# build information 8.45 +Prefix: %{l_prefix} 8.46 +BuildRoot: %{l_buildroot} 8.47 +BuildPreReq: OpenPKG, openpkg >= 20040130, gcc 8.48 +PreReq: OpenPKG, openpkg >= 20040130 8.49 +AutoReq: no 8.50 +AutoReqProv: no 8.51 + 8.52 +%description 8.53 + Perl ("Practical Reporting and Extraction Language") is a very 8.54 + sophisticated and flexible (but this way also complex) programming 8.55 + language. This is the original implementation of the Perl 5 8.56 + interpreter from Larry Wall and his community. 8.57 + 8.58 +%track 8.59 + prog perl = { 8.60 + version = %{version} 8.61 + url = ftp://ftp.cpan.org/pub/CPAN/src/ 8.62 + regex = perl-(5\.10\.\d+)\.tar\.gz 8.63 + } 8.64 + 8.65 +%prep 8.66 + %setup -q 8.67 + %patch -p0 8.68 + chmod -R u+w . 8.69 + 8.70 +%build 8.71 + # configure the Perl package 8.72 + %{l_shtool} subst \ 8.73 + -e 's;\(.*for thislib in $libswanted.*\);libswanted=`echo " $libswanted " | sed -e "s/ bind / /g" -e "s/ db / /g" -e "s/ gdbm / /g" -e "s/ iconv / /g"`\; \1;' \ 8.74 + -e 's;package=perl5;package=perl;' \ 8.75 + Configure 8.76 + %{l_shtool} subst \ 8.77 + -e 's; */usr/local/lib;;' \ 8.78 + hints/freebsd.sh hints/netbsd.sh 8.79 + optimize="" 8.80 + case "%{l_platform -t}" in 8.81 + amd64-* ) optimize="%{l_cflags}" ;; 8.82 + *-aix* ) optimize="%{l_cflags}" ;; 8.83 + *-* ) optimize="%{l_cflags -O}" ;; 8.84 + esac 8.85 + if [ ".$optimize" = . ]; then 8.86 + optimize="-Uoptimize" 8.87 + else 8.88 + optimize="-Doptimize=$optimize" 8.89 + fi 8.90 + libdirs="" 8.91 + for dir in %{l_prefix}/lib /lib64 /usr/lib64 /lib /usr/lib /usr/ccs/lib; do 8.92 + if [ -d $dir ]; then 8.93 + if [ ".$libdirs" = . ]; then 8.94 + libdirs="$dir" 8.95 + else 8.96 + libdirs="$libdirs $dir" 8.97 + fi 8.98 + fi 8.99 + done 8.100 + ./Configure \ 8.101 + -d -e -s \ 8.102 + -Dcf_by="%{l_openpkg_release}" \ 8.103 + -Dcf_email="http://www.openpkg.org/" \ 8.104 + -Dprefix=%{l_prefix} \ 8.105 + -Dvendorprefix=%{l_prefix} \ 8.106 + -Dinstallprefix=%{l_prefix} \ 8.107 + -Dinstallstyle="lib/perl5" \ 8.108 + -Dman1dir=%{l_prefix}/man/man1 \ 8.109 + -Dman3dir=%{l_prefix}/man/man3 \ 8.110 + -Dcc="%{l_prefix}/bin/gcc" "$optimize" \ 8.111 + -Dlocincpth="%{l_prefix}/include" \ 8.112 + -Dloclibpth="%{l_prefix}/lib" \ 8.113 + -Dldflags="%{l_ldflags}" \ 8.114 + -Dlibpth="$libdirs" \ 8.115 + -Dglibpth="$libdirs" \ 8.116 + -Dscriptdir="%{l_prefix}/bin" \ 8.117 + -Uinstallusrbinperl \ 8.118 + -Ui_malloc -Ui_iconv -Ui_db \ 8.119 + -Uusedevel 8.120 + 8.121 + # build the Perl package 8.122 + %{l_make} %{l_mflags} -f Makefile 8.123 + 8.124 +%install 8.125 + rm -rf $RPM_BUILD_ROOT 8.126 + 8.127 + # install the Perl package via standard procedure 8.128 + %{l_make} %{l_mflags} -f Makefile install DESTDIR=$RPM_BUILD_ROOT 8.129 + 8.130 + # allow us to already use the temporary install perl(1) 8.131 + PERL5LIB=$RPM_BUILD_ROOT%{l_prefix}/lib/perl 8.132 + export PERL5LIB 8.133 + 8.134 + # install Perl versions of system header files 8.135 + ( case "%{l_platform -t}" in 8.136 + *-darwin* ) export DYLD_LIBRARY_PATH="`pwd`" ;; 8.137 + esac 8.138 + cd /usr/include 8.139 + eval `$RPM_BUILD_ROOT%{l_prefix}/bin/perl -V:installarchlib` 8.140 + echo *.h sys/*.h |\ 8.141 + xargs $RPM_BUILD_ROOT%{l_prefix}/bin/perl \ 8.142 + $RPM_BUILD_ROOT%{l_prefix}/bin/h2ph -h -d $RPM_BUILD_ROOT$installarchlib 8.143 + ) || exit $? 8.144 + 8.145 + # post-adjustments to installation tree 8.146 + rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/perl%{version} 8.147 + rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/man3 8.148 + for name in \ 8.149 + libnetcfg perlaix perlamiga perlapollo \ 8.150 + perlbeos perlbs2000 perlcygwin perldgux perlepoc perlfreebsd perlhpux \ 8.151 + perlhurd perlirix perlmachten perlmacos perlmacosx perlmint perlmpeix \ 8.152 + perlnetware perlos2 perlos390 perlos400 perlplan9 perlqnx perlsolaris \ 8.153 + perlvmesa perlvms perlvos perlwin32; do 8.154 + rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/$name.1 8.155 + done 8.156 + 8.157 + # re-adjust configuration as mentioned in Perl's INSTALL document 8.158 + ( case "%{l_platform -t}" in 8.159 + *-darwin* ) export DYLD_LIBRARY_PATH="`pwd`" ;; 8.160 + esac 8.161 + $RPM_BUILD_ROOT%{l_prefix}/bin/perl -pi.orig \ 8.162 + -e "s:$RPM_BUILD_ROOT%{l_prefix}:%{l_prefix}:g" \ 8.163 + $RPM_BUILD_ROOT%{l_prefix}/lib/perl/%{version}/*/Config.pm \ 8.164 + `find $RPM_BUILD_ROOT%{l_prefix}/lib/perl/%{version}/ \ 8.165 + -type f -name ".packlist" -print` 8.166 + find $RPM_BUILD_ROOT%{l_prefix}/lib/perl/ \ 8.167 + -name "*.orig" -print | xargs rm -f 8.168 + ) || exit $? 8.169 + 8.170 + # assume ownership for various arch/site/vendor install dirs 8.171 + ( eval "`$RPM_BUILD_ROOT%{l_prefix}/bin/perl -V:installarchlib`" 8.172 + eval "`$RPM_BUILD_ROOT%{l_prefix}/bin/perl -V:installprivlib`" 8.173 + eval "`$RPM_BUILD_ROOT%{l_prefix}/bin/perl -V:installsitearch`" 8.174 + eval "`$RPM_BUILD_ROOT%{l_prefix}/bin/perl -V:installsitelib`" 8.175 + eval "`$RPM_BUILD_ROOT%{l_prefix}/bin/perl -V:installvendorarch`" 8.176 + eval "`$RPM_BUILD_ROOT%{l_prefix}/bin/perl -V:installvendorlib`" 8.177 + %{l_shtool} mkdir -f -p -m 755 \ 8.178 + $RPM_BUILD_ROOT$installarchlib/auto \ 8.179 + $RPM_BUILD_ROOT$installprivlib/auto \ 8.180 + $RPM_BUILD_ROOT$installsitearch/auto \ 8.181 + $RPM_BUILD_ROOT$installsitelib/auto \ 8.182 + $RPM_BUILD_ROOT$installvendorarch/auto \ 8.183 + $RPM_BUILD_ROOT$installvendorlib/auto 8.184 + ) || exit $? 8.185 + 8.186 + # strip binary files 8.187 + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true 8.188 + 8.189 + # resolve file conflicts (with perl-locale) 8.190 + rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/enc2xs \ 8.191 + $RPM_BUILD_ROOT%{l_prefix}/bin/piconv 8.192 + 8.193 + # resolve file conflicts (with perl-module) 8.194 + rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/corelist \ 8.195 + $RPM_BUILD_ROOT%{l_prefix}/bin/config_data \ 8.196 + $RPM_BUILD_ROOT%{l_prefix}/man/man1/config_data.1 8.197 + 8.198 + # resolve file conflicts (with perl-sys) 8.199 + rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/ptar \ 8.200 + $RPM_BUILD_ROOT%{l_prefix}/bin/ptardiff \ 8.201 + $RPM_BUILD_ROOT%{l_prefix}/man/man1/ptar.1 \ 8.202 + $RPM_BUILD_ROOT%{l_prefix}/man/man1/ptardiff.1 8.203 + 8.204 + # resolve file conflicts (with perl-crypto) 8.205 + rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/shasum \ 8.206 + $RPM_BUILD_ROOT%{l_prefix}/man/man1/shasum.1 8.207 + 8.208 + # determine installed files 8.209 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 8.210 + 8.211 +%files -f files 8.212 + 8.213 +%clean 8.214 + rm -rf $RPM_BUILD_ROOT 8.215 +