# HG changeset patch # User Michael Schloh von Bennewitz # Date 1344252902 -7200 # Node ID fc03f72a209ed455c37315e6dda13ad9b6b16b7c # Parent 8c83aede6fbda8bc321976a15c27b48037cd40bd Port ISO C to Solaris 11, accommodating new path and glob definitions. diff -r 8c83aede6fbd -r fc03f72a209e opie/opie.spec --- a/opie/opie.spec Mon Aug 06 13:34:16 2012 +0200 +++ b/opie/opie.spec Mon Aug 06 13:35:02 2012 +0200 @@ -36,19 +36,15 @@ Group: Cryptography License: INL3 Version: %{V_major}.%{V_minor} -Release: 20080101 +Release: 20120800 # list of sources Source0: http://www.inner.net/pub/opie/test/opie-%{V_major}-test%{V_minor}.tar.gz Patch0: opie.patch # build information -Prefix: %{l_prefix} -BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20040130 -PreReq: OpenPKG, openpkg >= 20040130 -AutoReq: no -AutoReqProv: no +BuildPreReq: OpenPKG, openpkg >= 20100101 +PreReq: OpenPKG, openpkg >= 20100101 %description OPIE is a One Time Password (OTP) toolkit. @@ -63,6 +59,16 @@ %prep %setup -q -n opie-%{V_major}-test%{V_minor} %patch -p0 + case "%{l_platform -t}" in + *-sunos* ) + %{l_shtool} subst \ + -e 's;\(#ifndef _PATH_WTMP\)$;\1_HACK;' \ + libopie/logwtmp.c + %{l_shtool} subst \ + -e 's;dirp->dd_fd;dirp->d_fd;g' \ + glob.c + ;; + esac %build %{l_shtool} subst \ @@ -80,7 +86,6 @@ echo "#permit 127.0.0.1 255.255.255.255" >opieaccess %install - rm -rf $RPM_BUILD_ROOT %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/bin \ $RPM_BUILD_ROOT%{l_prefix}/sbin \ @@ -115,5 +120,4 @@ %files -f files %clean - rm -rf $RPM_BUILD_ROOT