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