]> git.pld-linux.org Git - packages/chpwdfile.git/blob - chpwdfile.spec
- %verify() for config file
[packages/chpwdfile.git] / chpwdfile.spec
1 # TODO:
2 # - make cgi version
3 Summary:        Program to manage /etc/passwd-like files
4 Summary(pl):    Program do zarz±dzania plikami podobnymi do /etc/passwd
5 Name:           chpwdfile
6 Version:        0.26
7 Release:        1
8 Epoch:          0
9 License:        GPL v2
10 Group:          Base/Authentication and Authorization
11 Source0:        ftp://eclipse.che.uct.ac.za/chpwdfile/%{name}-%{version}.tar.gz
12 # Source0-md5:  7f63f7c1ce95cedace94d18745038768
13 URL:            http://eclipse.che.uct.ac.za/chpwdfile/
14 Requires:       pam-pam_pwdfile
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 This is a simple program to allow the administration of a text file
19 containing username:crypted_password pairs, useful if one uses
20 pam_pwdfile by Charl Botha.
21
22 Multiple password files can be administered and minimum password
23 lengths, etc, can be set in a configuration file on a per-file basis.
24 Trusted users can set these parameters on the command line and
25 manipulate other users' entries. Both DES and MD5 passwords are
26 supported.
27
28 <TODO>
29 A CGI version allows manipulation of a single password file via a
30 simple HTML form.
31 </TODO>
32
33 %description -l pl
34 Ten program pozwala na administrowanie plikami tekstowymi,
35 zawieraj±cymi pary login:zaszyfrowane_has³o, u¿yteczne przy u¿ywaniu
36 modu³u do PAM pam_pwdfile.
37
38 Mo¿liwe jest administrowanie wieloma plikami z has³ami, a opcje
39 minimalnej d³ugo¶ci hase³ itp. mog± byæ ustawione dla ka¿dego pliku
40 osobno. Zaufani u¿ytkownicy mog± ustawiaæ te opcje z linii poleceñ i
41 manipulowaæ wpisami innych u¿ytkowników. Obs³ugiwane s± has³a DES oraz
42 MD5.
43
44 <TODO>
45 Wersja CGI pozwala na operowanie pojedynczym plikiem z has³ami poprzez
46 prosty interfejs HTML.
47 </TODO>
48
49 %prep
50 %setup -q
51
52 %build
53 %{__make} \
54         CC="%{__cc}" \
55         COPTS="%{rpmcflags} -Wall"
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT%{_sysconfdir}
60
61 %{__make} install \
62         DESTDIR=$RPM_BUILD_ROOT \
63         BINDIR=%{_sbindir} \
64         MANDIR=%{_mandir}/man1
65
66 install examples/chpwdfile.conf $RPM_BUILD_ROOT%{_sysconfdir}
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files
72 %defattr(644,root,root,755)
73 %doc README examples
74 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/chpwdfile.conf
75 %attr(755,root,root) %{_sbindir}/*
76 %{_mandir}/man1/*.1*
This page took 0.062482 seconds and 3 git commands to generate.