forked from Symantec/389dsS3Backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
backup_ldap.spec
50 lines (35 loc) · 991 Bytes
/
backup_ldap.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Name: backup_ldap
Version: 0.9.2
Release: 1%{?dist}
Summary: Simple 389 ds backup utility
#Group:
License: ASL 2.0
URL: https://github.com/cviecco/backup_ldap/
Source0: backup_ldap-%{version}.tar.gz
#BuildRequires: golang
#Requires:
#no debug package as this is go
%define debug_package %{nil}
%description
Simple encryption using clound infrastrcture
%prep
%setup -n %{name}-%{version}
%build
go build -ldflags "-X main.Version=%{version}" backup_ldap.go
%install
#%make_install
%{__install} -Dp -m0755 backup_ldap %{buildroot}%{_sbindir}/backup_ldap
install -d %{buildroot}/usr/lib/systemd/system
install -p -m 0644 ./backup-ldap.service %{buildroot}/usr/lib/systemd/system/backup-ldap.service
%post
chown nobody /%{_sbindir}/backup_ldap
chgrp nobody /%{_sbindir}/backup_ldap
chmod u+s /%{_sbindir}/backup_ldap
systemctl daemon-reload
%postun
systemctl daemon-reload
%files
#%doc
%{_sbindir}/backup_ldap
/usr/lib/systemd/system/backup-ldap.service
%changelog