Compare commits

..

2 commits

Author SHA1 Message Date
7c60ca302d added make and playbook for installation 2022-12-08 16:38:54 -08:00
fc3638b109 bump uacme to 1.7.3 2022-12-08 16:38:30 -08:00
3 changed files with 52 additions and 1 deletions

26
Makefile Normal file
View file

@ -0,0 +1,26 @@
PKGNAME = uacme
SPECFILE = $(PKGNAME).spec
ARCH = $(shell rpm --eval "%{_arch}")
RPMBUILD = $(shell rpm --eval "%{_builddir}")
RPMSOURCE = $(shell rpm --eval "%{_sourcedir}")
RPMDIR = $(shell rpm --eval "%{_rpmdir}")
version = $(shell egrep "^Version" $(SPECFILE) | awk '{ print $$2}')
release = $(shell egrep "^Release" $(SPECFILE) | awk '{ print $$2}')
sourceurl = https://github.com/ndilieto/uacme/archive/refs/tags/upstream/$(version).tar.gz
source = $(RPMSOURCE)/$(version).tar.gz
RPM = $(RPMDIR)/$(ARCH)/$(PKGNAME)-$(version)-$(release).$(ARCH).rpm
$(RPM): $(SPECFILE) $(source)
rpmbuild -bb $<
$(source):
wget -O $@ $(sourceurl)
clean:
rm $(RPM) $(source)
.PHONY: clean

22
install.yml Normal file
View file

@ -0,0 +1,22 @@
---
- name: Install uacme rpm package
hosts: linodes
vars:
rpm_location: /home/thrrgilag/rpmbuild/RPMS/x86_64
rpm_file: uacme-1.7.3-1.x86_64.rpm
tasks:
- name: ping host
ansible.builtin.ping:
- name: upload rpm
ansible.builtin.copy:
src: "{{ rpm_location }}/{{ rpm_file }}"
dest: /tmp
- name: install rpm
ansible.builtin.dnf:
name: /tmp/{{ rpm_file }}
state: latest
disable_gpg_check: yes
become: yes

View file

@ -1,6 +1,6 @@
Name: uacme
Version: 1.7.2
Version: 1.7.3
Release: 1
Summary: Lightweight SSL certificate verification and issue client
@ -91,5 +91,8 @@ which uacme --version
%doc AUTHORS ChangeLog NEWS README THANKS
%changelog
* Thu Dec 08 2022 Morgan McMillian <morgan@mcmillian.dev> 1.7.3-1
- Update to uacme 1.7.3
* Sun Sep 04 2022 Morgan McMillian <morgan@mcmillian.dev> 1.7.2-1
- Update to uacme 1.7.2