LFS-RPM/SPECS/make-ca.spec

83 lines
2.5 KiB
RPMSpec
Raw Normal View History

2023-04-30 23:09:28 +08:00
%global githubv 20230430
2023-05-07 04:36:41 +08:00
%if 0%{!?__curl:1} == 1
%global __curl %{_bindir}/curl
%endif
2023-04-30 23:09:28 +08:00
Name: make-ca
Version: %{githubv}
2023-05-07 04:36:41 +08:00
Release: %{?repo}0.rc2%{?dist}
2023-04-30 23:09:28 +08:00
Summary: Manage PKI configuration
BuildArch: noarch
Group: System Environment/Utilities
License: MIT and GPL-3.0-only
URL: https://github.com/YellowJacketLinux/make-ca
Source0: https://github.com/YellowJacketLinux/make-ca/archive/refs/tags/%{githubv}.tar.gz
2023-05-07 04:36:41 +08:00
Source1: rpm-macros-makeca
2023-04-30 23:09:28 +08:00
Requires: libressl
2023-05-07 04:36:41 +08:00
Requires: %{__curl}
2023-04-30 23:09:28 +08:00
Requires: nss
Requires: p11-kit
Requires(post): libressl
Requires(post): nss
Requires(post): p11-kit
%description
make-ca is a utility to deliver and manage a complete PKI configuration
for workstations and servers using only standard Unix utilities, LibreSSL,
curl, and p11-kit, using a Mozilla cacerts.txt or like file as the trust
source. It can optionally generate keystores for OpenJDK PKCS#12 and
NSS if installed.
make-ca was originally developed for use with Linux From Scratch to
minimize dependencies for early system build, but has been written to
be generic enough for any Linux distribution. This version has been
modified for YellowJacket GNU/Linux (YJL).
%prep
%setup -q -n make-ca-%{version}
%build
%install
make install DESTDIR=%{buildroot}
2023-05-07 04:36:41 +08:00
mkdir -p %{buildroot}/usr/lib/rpm/macros.d
install -m644 %{SOURCE1} %{buildroot}%{_prefix}/lib/rpm/macros.d/macros.makeca
2023-04-30 23:09:28 +08:00
%post
if [ $1 == 1 ]; then
%{_sbindir}/make-ca -f -C %{_sysconfdir}/make-ca/certdata-dist.txt \
> /dev/null 2>&1 ||:
fi
%files
%defattr(-,root,root,-)
%dir %{_sysconfdir}/make-ca
%attr(0644,root,root) %{_sysconfdir}/make-ca/CS.txt
%attr(0644,root,root) %{_sysconfdir}/make-ca/certdata-dist.txt
%attr(0644,root,root) %{_sysconfdir}/make-ca/make-ca.conf.dist
#%%attr(0644,root,root) %%{_prefix}/lib/systemd/system/update-pki.service
#%%attr(0644,root,root) %%{_prefix}/lib/systemd/system/update-pki.timer
%dir %{_libexecdir}/make-ca
%attr(0700,root,root) %{_libexecdir}/make-ca/copy-trust-modifications
%attr(0755,root,root) %{_sbindir}/make-ca
2023-05-07 04:36:41 +08:00
%attr(0644,root,root) %{_prefix}/lib/rpm/macros.d/macros.makeca
2023-04-30 23:09:28 +08:00
%attr(0644,root,root) %{_mandir}/man8/make-ca.8*
%license LICENSE LICENSE.GPLv3 LICENSE.MIT LICENSE.MPLv2
%doc CHANGELOG* README.md LICENSE LICENSE.GPLv3 LICENSE.MIT LICENSE.MPLv2
%changelog
2023-05-07 04:36:41 +08:00
* Sat May 06 2023 Michael A. Peters <anymouseprophet@gmail.com> - 20230430-0.rc2
- Add RPM macro file
2023-04-30 23:09:28 +08:00
* Sun Apr 30 2023 Michael A. Peters <anymouseprophet@gmail.com> - 20230430-0.rc1
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)