diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2020-02-18 20:10:17 -0800 |
---|---|---|
committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2020-02-18 20:10:17 -0800 |
commit | e278e3b073e84f503e29220c33d94ff832e4ef48 (patch) | |
tree | de4b8b95d2eeb6697c9b9427ac9fe3984c0ed493 /admin | |
parent | eaab558661ecab22f0f735632ab6f1fb396c14ca (diff) | |
download | specs-e278e3b073e84f503e29220c33d94ff832e4ef48.tar.gz specs-e278e3b073e84f503e29220c33d94ff832e4ef48.tar.xz specs-e278e3b073e84f503e29220c33d94ff832e4ef48.zip |
pam-cryptsetup: uploading for review
Diffstat (limited to 'admin')
-rw-r--r-- | admin/pam-cryptsetup.spec | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/admin/pam-cryptsetup.spec b/admin/pam-cryptsetup.spec new file mode 100644 index 0000000..bebcf2c --- /dev/null +++ b/admin/pam-cryptsetup.spec @@ -0,0 +1,66 @@ +%global snapshot_date 20190823 +%global snapshot_rev 7b42892 +%global snapinfo %{snapshot_date}.%{snapshot_rev} + +Name: pam-cryptsetup +Version: 0.1 +Release: 0.1.%{snapinfo}%{?dist} +Summary: PAM module for updating LUKS-encrypted volumes + +License: ASL 2.0 +URL: https://github.com/google/pam-cryptsetup/ +# git archive --format=tar --prefix=pam-cryptsetup/ -o /tmp/pam-cryptsetup-0.1-$(git rev-parse --short HEAD).tar master +Source0: %{name}-%{version}-%{snapshot_rev}.tar.xz +# https://github.com/google/pam-cryptsetup/pull/9 +Patch0: %{name}-0.1-fix-stringop-truncation.patch + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: cryptsetup-devel +BuildRequires: device-mapper-devel +BuildRequires: pam-devel +BuildRequires: pkgconfig(glib-2.0) + +%description +pam-cryptsetup provides a PAM module that allows LUKS-based disk encryption +passwords to be kept in sync with account passwords automatically based on +factors like if the user has decrypted the disk successfully previously. + +The project as a whole consists of two parts: a PAM module pam_cryptsetup.so for +triggering on user authentication, and a helper program pam_cryptsetup_helper to +perform the actual encryption checks and modifications required. + + +%prep +%autosetup -n %{name} -p1 + + +%build +./autogen.sh +%configure +%make_build + + +%install +rm -rf $RPM_BUILD_ROOT +%make_install +rm $RPM_BUILD_ROOT%{_libdir}/security/pam_cryptsetup.la + + +%check +# Only works if run as root outside of mock +# make check + + +%files +%license LICENSE +%doc CONTRIBUTING.md README.md +%{_libdir}/security/pam_cryptsetup.so +%{_libexecdir}/pam-cryptsetup + + + +%changelog +* Fri Feb 14 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.1-0.1.20190823.7b42892 +- Initial package |