]> git.pld-linux.org Git - packages/changepassword.git/blame - changepassword.spec
rel 4
[packages/changepassword.git] / changepassword.spec
CommitLineData
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 10Summary: ChangePassword
718b6420 11Summary(pl.UTF-8): ChangePassword - modyfikator haseł
dffb2711 12Name: changepassword
a54dbd64 13Version: 0.9
3f1d3ae4 14Release: 4
dffb2711
JB
15License: GPL
16Group: Networking/Admin
8cec02cc 17Source0: http://dl.sourceforge.net/changepassword/%{name}-%{version}.tar.gz
a54dbd64 18# Source0-md5: 7449a80c65db2e37c0aa3bb709926127
35d7321f 19Source1: pldlogo.png
3f1d3ae4 20Patch0: build.patch
dffb2711 21URL: http://changepassword.sourceforge.net/
adbbb0ef 22Requires: webserver = apache
dffb2711
JB
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
c32054d0 25%define _cgidir /home/services/httpd/cgi-bin
dffb2711
JB
26
27%description
28ChangePassword modifies the passwords of passwd, Samba, and Squid
29through the Web. All passwords are syncronized and changed in real
30time through browsers like Mozilla, Netscape, IE, Opera, and others.
31
a1f7bd27
JR
32%description -l pl.UTF-8
33ChangePassword modyfikuje hasła dla passwd, Samby i Squida za
34pośrednictwem interfejsu WWW. Wszystkie hasła są synchronizowane i
dffb2711
JB
35zmieniane w trybie rzeczywistym.
36
37%prep
27b01511 38%setup -q
35d7321f 39cp %{SOURCE1} .
8a2baebc 40tar -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
65install des/libdes.a smbencrypt
66
67%{__make} \
68 CC="%{__cc}" \
69 CFLAGS="%{rpmcflags}"
dffb2711
JB
70
71%install
72rm -rf $RPM_BUILD_ROOT
73install -d $RPM_BUILD_ROOT%{_cgidir}
35d7321f 74install -d $RPM_BUILD_ROOT/home/services/httpd/html
dffb2711 75
27b01511 76install changepassword.cgi $RPM_BUILD_ROOT%{_cgidir}
35d7321f 77install %{SOURCE1} $RPM_BUILD_ROOT/home/services/httpd/html
dffb2711
JB
78
79%clean
80rm -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
This page took 0.161815 seconds and 4 git commands to generate.