forked from srvrco/getssl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add files to build getssl scripts as an RPM file, and install crontab…
… and logrotation entries. Signed-off-by: jeffmerkey <[email protected]>
- Loading branch information
1 parent
8941e15
commit 548c0fd
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 0 18 1 */1 * means run at 18:00 on day-of-month 1 in every month | ||
# uncomment the line below to activate cron getssl service | ||
# 0 18 1 */1 * root /usr/bin/getssl -u -a &>> /var/log/getssl.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/var/log/getssl.log { | ||
weekly | ||
rotate 10 | ||
copytruncate | ||
delaycompress | ||
compress | ||
notifempty | ||
missingok | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
%define _build_id_links none | ||
%define debug_package %{nil} | ||
|
||
# set this to true or the rpmbuild will fail with errors due to shebang defines | ||
# in some of the dns scripts for python | ||
%global __brp_mangle_shebangs /usr/bin/true | ||
|
||
Summary: getssl ACME Scripts for managing Let's Encrypt certificates | ||
License: GPL | ||
Name: getssl | ||
Version: 2.47 | ||
Release: 1 | ||
|
||
URL: http://github.com/srvrco/getssl/ | ||
Source0: %{name}-%{version}.tar.gz | ||
Source1: getssl.crontab | ||
Source2: getssl.logrotate | ||
BuildArch: noarch | ||
|
||
Requires: bash cronie | ||
BuildRequires: bash | ||
|
||
%description | ||
The %{name} package contains the getssl scripts, crontab files, and logrotate files for implementing automated creation and installation of SSL certificates from the Let's Encrypt ACME website. | ||
|
||
%prep | ||
%setup -q -n %{name}-%{version} | ||
|
||
%build | ||
|
||
%install | ||
[ -n "%{buildroot}" -a "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} | ||
%{__mkdir_p} %{buildroot}%{_bindir} | ||
%{__mkdir_p} %{buildroot}%{_datadir}/getssl/dns_scripts | ||
%{__mkdir_p} %{buildroot}%{_datadir}/getssl/other_scripts | ||
%{__make} \ | ||
DESTDIR=%{buildroot}\ | ||
install | ||
install -Dpm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/cron.d/getssl | ||
install -Dpm 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/getssl | ||
|
||
%pre | ||
|
||
%post | ||
|
||
%preun | ||
|
||
%postun | ||
|
||
%files | ||
%defattr(-,root,root) | ||
%{_bindir}/getssl | ||
%{_datadir}/getssl/dns_scripts/* | ||
%{_datadir}/getssl/other_scripts/* | ||
%{_sysconfdir}/cron.d/getssl | ||
%{_sysconfdir}/logrotate.d/getssl | ||
|
||
%changelog |