]>
Commit | Line | Data |
---|---|---|
adbbb0ef | 1 | # TODO |
82cbee68 | 2 | # - webapps |
acb6316f | 3 | # - move cgi binary to /usr/lib/changepassword |
e882ca83 | 4 | # - write changepassword.conf for apache redirection + execution |
82cbee68 ER |
5 | # |
6 | # Conditional build: | |
7 | %bcond_without samba # without samba passwords support | |
8 | %bcond_without squid # without squid passwords support | |
9 | # | |
dffb2711 | 10 | Summary: ChangePassword |
718b6420 | 11 | Summary(pl.UTF-8): ChangePassword - modyfikator haseł |
dffb2711 | 12 | Name: changepassword |
a54dbd64 | 13 | Version: 0.9 |
3f1d3ae4 | 14 | Release: 4 |
dffb2711 JB |
15 | License: GPL |
16 | Group: Networking/Admin | |
8cec02cc | 17 | Source0: http://dl.sourceforge.net/changepassword/%{name}-%{version}.tar.gz |
a54dbd64 | 18 | # Source0-md5: 7449a80c65db2e37c0aa3bb709926127 |
35d7321f | 19 | Source1: pldlogo.png |
3f1d3ae4 | 20 | Patch0: build.patch |
dffb2711 | 21 | URL: http://changepassword.sourceforge.net/ |
adbbb0ef | 22 | Requires: webserver = apache |
dffb2711 JB |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
c32054d0 | 25 | %define _cgidir /home/services/httpd/cgi-bin |
dffb2711 JB |
26 | |
27 | %description | |
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. | |
31 | ||
a1f7bd27 JR |
32 | %description -l pl.UTF-8 |
33 | ChangePassword modyfikuje hasła dla passwd, Samby i Squida za | |
34 | pośrednictwem interfejsu WWW. Wszystkie hasła są synchronizowane i | |
dffb2711 JB |
35 | zmieniane w trybie rzeczywistym. |
36 | ||
37 | %prep | |
27b01511 | 38 | %setup -q |
35d7321f | 39 | cp %{SOURCE1} . |
8a2baebc | 40 | tar -xf smbencrypt/libdes-4.04b.tar.gz |
3f1d3ae4 | 41 | %patch0 -p1 |
dffb2711 JB |
42 | |
43 | %build | |
f0296771 | 44 | %configure \ |
27b01511 | 45 | --enable-cgidir=%{_cgidir} \ |
dffb2711 | 46 | --enable-language=Polish \ |
c32054d0 | 47 | --enable-logo=pldlogo.png \ |
82cbee68 ER |
48 | --enable-smbpasswd=/etc/samba/smbpasswd \ |
49 | --enable-squidpasswd=/etc/squid/passwd \ | |
50 | %if %{without samba} | |
35d7321f SP |
51 | --disable-smbpasswd \ |
52 | %endif | |
82cbee68 | 53 | %if %{without squid} |
35d7321f SP |
54 | --disable-squidpasswd |
55 | %endif | |
dffb2711 | 56 | |
c2d79fee JB |
57 | %{__make} -C des \ |
58 | CC="%{__cc}" \ | |
59 | %ifarch %{ix86} | |
60 | DES_INC="asm/dx86-elf.o asm/yx86-elf.o" \ | |
61 | CFLAG="%{rpmcflags} -DELF" | |
62 | %else | |
63 | CFLAG="%{rpmcflags}" | |
64 | %endif | |
65 | install des/libdes.a smbencrypt | |
66 | ||
67 | %{__make} \ | |
68 | CC="%{__cc}" \ | |
69 | CFLAGS="%{rpmcflags}" | |
dffb2711 JB |
70 | |
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | install -d $RPM_BUILD_ROOT%{_cgidir} | |
35d7321f | 74 | install -d $RPM_BUILD_ROOT/home/services/httpd/html |
dffb2711 | 75 | |
27b01511 | 76 | install changepassword.cgi $RPM_BUILD_ROOT%{_cgidir} |
35d7321f | 77 | install %{SOURCE1} $RPM_BUILD_ROOT/home/services/httpd/html |
dffb2711 JB |
78 | |
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
d7aa3bd7 JB |
84 | %doc BUGS CHANGELOG README TODO |
85 | %lang(pt_BR) %doc README.brazilian | |
f0296771 | 86 | %attr(755,root,root) %{_cgidir}/changepassword.cgi |
df710144 | 87 | /home/services/httpd/html/pldlogo.png |