-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpukcab.spec.in
73 lines (55 loc) · 1.87 KB
/
pukcab.spec.in
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# disable -debuginfo RPM generation
%global debug_package %{nil}
Summary: Simple Network Backup Utility
Name: pukcab
Version: @@VERSION@@
Release: 1
Source: http://www.ezix.org/software/files/%{name}-%{version}.tar.gz
URL: http://ezix.org/project/wiki/Pukcab
License: GPL
Group: Applications/System
BuildRequires: golang
BuildRequires: git
%description
Pukcab is a lightweight, single-binary backup system that stores de-duplicated, compressed and incremental backups on a remote server using just an SSH connection.
%package client
BuildArch: noarch
Summary: Simple Network Backup Utility (client)
Group: Applications/System
Requires: openssh-clients
Requires: tar
Requires: %{name} >= %{version}
%description client
Pukcab is a lightweight, single-binary backup system that stores de-duplicated, compressed and incremental backups on a remote server using just an SSH connection.
This package ensures a system can act as a pukcab client.
%package server
BuildArch: noarch
Summary: Simple Network Backup Utility (server)
Group: Applications/System
Requires: openssh-server
Requires: %{name} >= %{version}
%description server
Pukcab is a lightweight, single-binary backup system that stores de-duplicated, compressed and incremental backups on a remote server using just an SSH connection.
This package ensures a system can act as a pukcab server.
%prep
%setup -q
%build
%{__make} VERSION=%{version}
%install
%{__rm} -rf "%{buildroot}"
%{__install} -D pukcab "%{buildroot}%{_bindir}/pukcab"
%clean
%{__rm} -rf %{buildroot}
%pre server
id pukcab || useradd -r -m -d "%{_localstatedir}/pukcab" pukcab || true
%files
%defattr(-,root,root, 0555)
%doc MANUAL.html
%config(noreplace) %attr(0555 ,root,root) %ghost %{_sysconfdir}/%{name}.conf
%{_bindir}/*
%files client
%files server
%dir %ghost %{_localstatedir}/pukcab
%changelog
* Wed Feb 18 2015 Lyonel Vincent <[email protected]> 1.1-1
- RPM packaging