30 Distribution: OpenPKG Community |
30 Distribution: OpenPKG Community |
31 Class: PLUS |
31 Class: PLUS |
32 Group: Security |
32 Group: Security |
33 License: Artistic |
33 License: Artistic |
34 Version: 2.8.19 |
34 Version: 2.8.19 |
35 Release: 20120519 |
35 Release: 20120800 |
36 |
36 |
37 # list of sources |
37 # list of sources |
38 Source0: http://switch.dl.sourceforge.net/cracklib/cracklib-%{version}.tar.gz |
38 Source0: http://switch.dl.sourceforge.net/cracklib/cracklib-%{version}.tar.gz |
39 Source1: http://switch.dl.sourceforge.net/cracklib/cracklib-words.gz |
39 Source1: http://switch.dl.sourceforge.net/cracklib/cracklib-words.gz |
40 Source2: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/common-passwords.txt.gz |
40 Source2: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/common-passwords.txt.gz |
65 |
65 |
66 %build |
66 %build |
67 # configure library |
67 # configure library |
68 CC="%{l_cc}" \ |
68 CC="%{l_cc}" \ |
69 CFLAGS="%{l_cflags -O}" \ |
69 CFLAGS="%{l_cflags -O}" \ |
|
70 CPPFLAGS="%{l_cppflags} -D_POSIX_PTHREAD_SEMANTICS" \ |
70 ./configure \ |
71 ./configure \ |
71 --prefix=%{l_prefix} \ |
72 --prefix=%{l_prefix} \ |
72 --with-default-dict=%{l_prefix}/lib/cracklib/pw_dict \ |
73 --with-default-dict=%{l_prefix}/lib/cracklib/pw_dict \ |
73 --without-python \ |
74 --without-python \ |
74 --disable-shared \ |
75 --disable-shared \ |
75 --disable-nls |
76 --disable-nls |
76 |
77 |
77 # build library |
78 # build library |
78 %{l_make} %{l_mflags} |
79 %{l_make} %{l_mflags -O} |
79 |
80 |
80 %install |
81 %install |
81 # install library |
82 # install library |
82 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
83 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
83 |
84 |
113 %files -f files |
114 %files -f files |
114 |
115 |
115 %clean |
116 %clean |
116 |
117 |
117 %post |
118 %post |
118 # (re-)generate run-time password dictionary |
119 # (re)generate runtime password dictionary |
119 ( echo "(Re-)Generating run-time password dictionary" |
120 ( echo "(Re)Generating runtime password dictionary" |
120 ) | %{l_rpmtool} msg -b -t warn |
121 ) | %{l_rpmtool} msg -b -t warn |
121 ( cd $RPM_INSTALL_PREFIX/share/cracklib && \ |
122 ( cd $RPM_INSTALL_PREFIX/share/cracklib && \ |
122 $RPM_INSTALL_PREFIX/bin/make |
123 $RPM_INSTALL_PREFIX/bin/make |
123 ) >/dev/null 2>&1 |
124 ) >/dev/null 2>&1 |
124 |
125 |