opie/opie.spec

changeset 483
fc03f72a209e
parent 482
8c83aede6fbd
child 484
66e25dea1e09
equal deleted inserted replaced
0:685330f9b215 1:c06638e194a5
34 Distribution: OpenPKG Community 34 Distribution: OpenPKG Community
35 Class: PLUS 35 Class: PLUS
36 Group: Cryptography 36 Group: Cryptography
37 License: INL3 37 License: INL3
38 Version: %{V_major}.%{V_minor} 38 Version: %{V_major}.%{V_minor}
39 Release: 20080101 39 Release: 20120800
40 40
41 # list of sources 41 # list of sources
42 Source0: http://www.inner.net/pub/opie/test/opie-%{V_major}-test%{V_minor}.tar.gz 42 Source0: http://www.inner.net/pub/opie/test/opie-%{V_major}-test%{V_minor}.tar.gz
43 Patch0: opie.patch 43 Patch0: opie.patch
44 44
45 # build information 45 # build information
46 Prefix: %{l_prefix} 46 BuildPreReq: OpenPKG, openpkg >= 20100101
47 BuildRoot: %{l_buildroot} 47 PreReq: OpenPKG, openpkg >= 20100101
48 BuildPreReq: OpenPKG, openpkg >= 20040130
49 PreReq: OpenPKG, openpkg >= 20040130
50 AutoReq: no
51 AutoReqProv: no
52 48
53 %description 49 %description
54 OPIE is a One Time Password (OTP) toolkit. 50 OPIE is a One Time Password (OTP) toolkit.
55 51
56 %track 52 %track
61 } 57 }
62 58
63 %prep 59 %prep
64 %setup -q -n opie-%{V_major}-test%{V_minor} 60 %setup -q -n opie-%{V_major}-test%{V_minor}
65 %patch -p0 61 %patch -p0
62 case "%{l_platform -t}" in
63 *-sunos* )
64 %{l_shtool} subst \
65 -e 's;\(#ifndef _PATH_WTMP\)$;\1_HACK;' \
66 libopie/logwtmp.c
67 %{l_shtool} subst \
68 -e 's;dirp->dd_fd;dirp->d_fd;g' \
69 glob.c
70 ;;
71 esac
66 72
67 %build 73 %build
68 %{l_shtool} subst \ 74 %{l_shtool} subst \
69 -e 's;/etc/opiekeys;%{l_prefix}/etc/opie/opiekeys;' \ 75 -e 's;/etc/opiekeys;%{l_prefix}/etc/opie/opiekeys;' \
70 Makefile.in 76 Makefile.in
78 --enable-opieauto 84 --enable-opieauto
79 %{l_make} %{l_mflags -O} 85 %{l_make} %{l_mflags -O}
80 echo "#permit 127.0.0.1 255.255.255.255" >opieaccess 86 echo "#permit 127.0.0.1 255.255.255.255" >opieaccess
81 87
82 %install 88 %install
83 rm -rf $RPM_BUILD_ROOT
84 %{l_shtool} mkdir -f -p -m 755 \ 89 %{l_shtool} mkdir -f -p -m 755 \
85 $RPM_BUILD_ROOT%{l_prefix}/bin \ 90 $RPM_BUILD_ROOT%{l_prefix}/bin \
86 $RPM_BUILD_ROOT%{l_prefix}/sbin \ 91 $RPM_BUILD_ROOT%{l_prefix}/sbin \
87 $RPM_BUILD_ROOT%{l_prefix}/man/man1 \ 92 $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
88 $RPM_BUILD_ROOT%{l_prefix}/man/man3 \ 93 $RPM_BUILD_ROOT%{l_prefix}/man/man3 \
113 '%config %{l_prefix}/etc/opie/*' 118 '%config %{l_prefix}/etc/opie/*'
114 119
115 %files -f files 120 %files -f files
116 121
117 %clean 122 %clean
118 rm -rf $RPM_BUILD_ROOT
119 123

mercurial