]>
Commit | Line | Data |
---|---|---|
adbbb0ef | 1 | # TODO |
82cbee68 | 2 | # - webapps |
e882ca83 | 3 | # - move cgi binary to /usr/share/changepassword |
4 | # - write changepassword.conf for apache redirection + execution | |
808a7f40 JB |
5 | # - get sources for libdes and compile then instead of using |
6 | # precompiled version for x86!!! | |
82cbee68 ER |
7 | # |
8 | # Conditional build: | |
9 | %bcond_without samba # without samba passwords support | |
10 | %bcond_without squid # without squid passwords support | |
11 | # | |
dffb2711 | 12 | Summary: ChangePassword |
718b6420 | 13 | Summary(pl.UTF-8): ChangePassword - modyfikator haseł |
dffb2711 | 14 | Name: changepassword |
a54dbd64 | 15 | Version: 0.9 |
6d1b2271 | 16 | Release: 2 |
dffb2711 JB |
17 | License: GPL |
18 | Group: Networking/Admin | |
8cec02cc | 19 | Source0: http://dl.sourceforge.net/changepassword/%{name}-%{version}.tar.gz |
a54dbd64 | 20 | # Source0-md5: 7449a80c65db2e37c0aa3bb709926127 |
35d7321f | 21 | Source1: pldlogo.png |
dffb2711 | 22 | URL: http://changepassword.sourceforge.net/ |
adbbb0ef | 23 | Requires: webserver = apache |
dffb2711 JB |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
c32054d0 | 26 | %define _cgidir /home/services/httpd/cgi-bin |
dffb2711 JB |
27 | |
28 | %description | |
29 | ChangePassword modifies the passwords of passwd, Samba, and Squid | |
30 | through the Web. All passwords are syncronized and changed in real | |
31 | time through browsers like Mozilla, Netscape, IE, Opera, and others. | |
32 | ||
a1f7bd27 JR |
33 | %description -l pl.UTF-8 |
34 | ChangePassword modyfikuje hasła dla passwd, Samby i Squida za | |
35 | pośrednictwem interfejsu WWW. Wszystkie hasła są synchronizowane i | |
dffb2711 JB |
36 | zmieniane w trybie rzeczywistym. |
37 | ||
38 | %prep | |
27b01511 | 39 | %setup -q |
35d7321f | 40 | cp %{SOURCE1} . |
dffb2711 JB |
41 | |
42 | %build | |
f0296771 | 43 | %configure \ |
27b01511 | 44 | --enable-cgidir=%{_cgidir} \ |
dffb2711 | 45 | --enable-language=Polish \ |
c32054d0 | 46 | --enable-logo=pldlogo.png \ |
82cbee68 ER |
47 | --enable-smbpasswd=/etc/samba/smbpasswd \ |
48 | --enable-squidpasswd=/etc/squid/passwd \ | |
49 | %if %{without samba} | |
35d7321f SP |
50 | --disable-smbpasswd \ |
51 | %endif | |
82cbee68 | 52 | %if %{without squid} |
35d7321f SP |
53 | --disable-squidpasswd |
54 | %endif | |
dffb2711 JB |
55 | |
56 | %{__make} | |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | install -d $RPM_BUILD_ROOT%{_cgidir} | |
35d7321f | 61 | install -d $RPM_BUILD_ROOT/home/services/httpd/html |
dffb2711 | 62 | |
27b01511 | 63 | install changepassword.cgi $RPM_BUILD_ROOT%{_cgidir} |
35d7321f | 64 | install %{SOURCE1} $RPM_BUILD_ROOT/home/services/httpd/html |
dffb2711 JB |
65 | |
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
d7aa3bd7 JB |
71 | %doc BUGS CHANGELOG README TODO |
72 | %lang(pt_BR) %doc README.brazilian | |
f0296771 | 73 | %attr(755,root,root) %{_cgidir}/changepassword.cgi |
df710144 | 74 | /home/services/httpd/html/pldlogo.png |