]> git.pld-linux.org Git - packages/pam-pam_mount.git/blob - pam-pam_mount.spec
- release 2
[packages/pam-pam_mount.git] / pam-pam_mount.spec
1 %define         modulename pam_mount
2 Summary:        A PAM module that can mount remote volumes for a user session
3 Summary(pl.UTF-8):      Moduł PAM, pozwalający montować zdalne zasoby na czas sesji użytkownika
4 Name:           pam-%{modulename}
5 Version:        0.33
6 Release:        2
7 Epoch:          0
8 License:        LGPL
9 Group:          Base
10 Source0:        http://dl.sourceforge.net/pam-mount/%{modulename}-%{version}.tar.bz2
11 # Source0-md5:  08beec698dd95fc88e119848002a4e2e
12 URL:            http://pam-mount.sourceforge.net/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  glib2-devel
16 BuildRequires:  libtool
17 BuildRequires:  openssl-devel >= 0.9.7d
18 BuildRequires:  pam-devel
19 BuildRequires:  pkgconfig
20 BuildRequires:  zlib-devel
21 BuildRequires:  libHX-devel
22 Obsoletes:      pam_mount
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 This module is aimed to environments with SMB (Samba or Windows NT)
27 and/or NCP (Netware or Mars-NWE) servers that Unix users want or need
28 to access, and some users have / every user has private volumes in
29 that servers. The module also supports mounting home directories using
30 loopback encrypted filesystems (see also
31 http://www.tldp.org/HOWTO/Loopback-Encrypted-Filesystem-HOWTO.html).
32  - Every user can access his/her own volumes
33  - The user needs to type the password just once (at login) (*)
34  - The mouting process is transparent to the users
35  - There is no need to keep the login passwords in any additional file
36  - The volumes are unmount upon logout, so it saves system resources,
37    avoiding the need of listing every every possibly useful remote volume
38    in /etc/fstab or in an automount/supermount config file. This is also
39    necessary for securing encrypted filesystems.
40
41 (*) Obviously, the user password in the Unix system and in the remote
42 servers must be the same ;)
43
44 Pam_mount "understands" SMB, NCP, and encrypted loopback volumes, but
45 this can be extended very easily.
46
47 %description -l pl.UTF-8
48 Przeznaczeniem tego modułu są środowiska z protokołem SMB (Samba lub
49 Windows NT) i/lub NCP (Netware lub Mars-NWE), w których użytkownicy
50 chcą lub potrzebują indywidualnych zasobów. Moduł ten wspiera także
51 montowanie katalogów domowych z zaszyfrowanych systemów plików przy
52 użyciu loopbacka (zobacz także:
53 http://www.tldp.org/HOWTO/Loopback-Encrypted-Filesystem-HOWTO.html).
54  - każdy użytkownik ma dostęp do swoich zasobów
55  - użytkownik musi wpisać swoje hasło tylko raz (przy logowaniu) (*)
56  - proces montowania jest niewidzialny dla użytkownika
57  - nie ma potrzeby trzymania hasła i loginu w żadnym dodatkowym pliku
58  - katalogi są odmontowywane podczas wylogowania, co oszczędza zasoby
59    systemowe, zabezpiecza przed koniecznością umieszczenia każdego
60    potrzebnego zdalnego zasobu w /etc/fstab lub w konfiguracji
61    automounta/supermounta. Jest to także konieczne do zabezpieczenia
62    zaszyfrowanych systemów plików.
63
64 (*) Oczywiście hasło na lokalnym i zdalnym systemie musi być
65 identyczne ;)
66
67 pam_mount "rozumie" SMB, NCP oraz zaszyfrowane systemy plików po
68 loopbacku, ale może być rozszerzony w prosty sposób.
69
70 %prep
71 %setup -q -n %{modulename}-%{version}
72
73 %build
74 %{__libtoolize}
75 %{__aclocal}
76 %{__autoconf}
77 %{__autoheader}
78 %{__automake}
79 %configure \
80         --disable-static
81 %{__make}
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85 install -d $RPM_BUILD_ROOT{/etc/security,/sbin}
86
87 %{__make} install \
88         moduledir=/%{_lib}/security \
89         DESTDIR=$RPM_BUILD_ROOT
90
91 install config/pam_mount.conf.xml $RPM_BUILD_ROOT/etc/security
92 ln -sf /sbin/mount.crypt $RPM_BUILD_ROOT/%{_bindir}/mount.crypt
93
94 rm -f $RPM_BUILD_ROOT/%{_lib}/security/pam_mount.la
95
96 # void code on non-OpenBSD, besides broken
97 rm -f $RPM_BUILD_ROOT{%{_bindir}/mount_ehd,%{_mandir}/man8/mount_ehd.8}
98
99 install scripts/convert_pam_mount_conf.pl $RPM_BUILD_ROOT%{_sbindir}
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %files
105 %defattr(644,root,root,755)
106 %attr(755,root,root) /%{_lib}/security/pam_mount.so
107 %config(noreplace) %verify(not md5 mtime size) /etc/security/pam_mount.conf.xml
108 %attr(755,root,root) /sbin/mount.crypt
109 %attr(755,root,root) /sbin/umount.crypt
110 %attr(755,root,root) %{_bindir}/autoehd
111 %attr(755,root,root) %{_bindir}/mkehd
112 %attr(755,root,root) %{_bindir}/mount.crypt
113 %attr(755,root,root) %{_bindir}/passwdehd
114 %attr(755,root,root) %{_sbindir}/convert_pam_mount_conf.pl
115 %attr(755,root,root) %{_sbindir}/pmvarrun
116 %{_mandir}/man1/mkehd.1*
117 %{_mandir}/man8/autoehd.8*
118 %{_mandir}/man8/mount.crypt.8*
119 %{_mandir}/man8/pam_mount.8*
120 %{_mandir}/man8/passwdehd.8*
121 %{_mandir}/man8/pmvarrun.8*
122 %{_mandir}/man8/umount.crypt.8*
This page took 0.084177 seconds and 4 git commands to generate.