]> git.pld-linux.org Git - packages/changepassword.git/blob - changepassword.spec
- dropped SourceX-size
[packages/changepassword.git] / changepassword.spec
1 #
2 # Conditional build:
3 %bcond_without  samba   # without samba passwords support
4 %bcond_without  squid   # without squid passwords support
5
6 #TODO
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³
13 Name:           changepassword
14 Version:        0.9
15 Release:        1
16 License:        GPL
17 Group:          Networking/Admin
18 Source0:        http://dl.sourceforge.net/changepassword/%{name}-%{version}.tar.gz
19 # Source0-md5:  7449a80c65db2e37c0aa3bb709926127
20 Source1:        pldlogo.png
21 URL:            http://changepassword.sourceforge.net/
22 Requires:       apache
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         _cgidir         /home/services/httpd/cgi-bin
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
32 %description -l pl
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.
36
37 %prep
38 %setup -q
39 cp %{SOURCE1} .
40
41 %build
42 %configure \
43         --enable-cgidir=%{_cgidir} \
44         --enable-language=Polish \
45         --enable-logo=pldlogo.png \
46         --enable-smbpasswd=%{_sysconfdir}/smbpasswd \
47         --enable-squidpasswd=%{_sysconfdir}/squid/passwd \
48 %if %{without samba}
49         --disable-smbpasswd \
50 %endif
51 %if %{without squid}
52         --disable-squidpasswd
53 %endif
54
55 %{__make}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT%{_cgidir}
60 install -d $RPM_BUILD_ROOT/home/services/httpd/html
61
62 install changepassword.cgi $RPM_BUILD_ROOT%{_cgidir}
63 install %{SOURCE1} $RPM_BUILD_ROOT/home/services/httpd/html
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
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
This page took 0.05843 seconds and 3 git commands to generate.