3 %bcond_without samba # without samba passwords support
4 %bcond_without squid # without squid passwords support
7 # - move cgi binary to /usr/share/changepassword
8 # - write changepassword.conf for apache redirection + execution
9 # - get sources for libdes and compile then instead of using
10 # precompiled version for x86!!!
11 Summary: ChangePassword
12 Summary(pl): ChangePassword - modyfikator hase³
17 Group: Networking/Admin
18 Source0: http://dl.sourceforge.net/changepassword/%{name}-%{version}.tar.gz
19 # Source0-md5: 7449a80c65db2e37c0aa3bb709926127
21 URL: http://changepassword.sourceforge.net/
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _cgidir /home/services/httpd/cgi-bin
28 ChangePassword modifies the passwords of passwd, Samba, and Squid
29 through the Web. All passwords are syncronized and changed in real
30 time through browsers like Mozilla, Netscape, IE, Opera, and others.
33 ChangePassword modyfikuje has³a dla passwd, Samby i Squida za
34 po¶rednictwem interfejsu WWW. Wszystkie has³a s± synchronizowane i
35 zmieniane w trybie rzeczywistym.
43 --enable-cgidir=%{_cgidir} \
44 --enable-language=Polish \
45 --enable-logo=pldlogo.png \
46 --enable-smbpasswd=%{_sysconfdir}/smbpasswd \
47 --enable-squidpasswd=%{_sysconfdir}/squid/passwd \
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT%{_cgidir}
60 install -d $RPM_BUILD_ROOT/home/services/httpd/html
62 install changepassword.cgi $RPM_BUILD_ROOT%{_cgidir}
63 install %{SOURCE1} $RPM_BUILD_ROOT/home/services/httpd/html
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
70 %doc BUGS CHANGELOG README TODO
71 %lang(pt_BR) %doc README.brazilian
72 %attr(755,root,root) %{_cgidir}/changepassword.cgi
73 %attr(644,root,root) /home/services/httpd/html/pldlogo.png