-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathepm.list.in
94 lines (85 loc) · 2.25 KB
/
epm.list.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
$epmVersion3=@EPM_VERSION_3@
$epmVersion4=@EPM_VERSION_4@
$prefix=@INSTALL_DIR@
$exec_prefix=@INSTALL_DIR@
$bindir=${exec_prefix}/bin
$datarootdir=/usr/share
$docdir=${datarootdir}/doc/bar
$mandir=@MAN_DIR@
$configdir=@CONFIG_DIR@
$tlsdir=@TLS_DIR@
%product BAR
%copyright @COPYRIGHT_DATE@ by Torsten Rupp, All Rights Reserved.
%vendor Torsten Rupp
%if epmVersion3
%license GPL v2
%licensefile doc/COPYING
%readmefile doc/README
%endif
%if epmVersion4
%license doc/COPYING
%readme doc/README
%endif
%ifdef PACKAGE_CMD
%description Backup archiver program for UNIX (command line tools).
%elseifdef PACKAGE_GUI
%description Backup archiver program for UNIX (GUI tools).
%else
%description Backup archiver program for UNIX.
%endif
%version @VERSION_MAJOR@.@VERSION_MINOR@
# executables
%system all
%ifdef PACKAGE_CMD
f 0755 root sys ${bindir}/bar bar/bar
f 0755 root sys ${bindir}/bar-keygen bar/bar-keygen
%elseifdef PACKAGE_GUI
f 0755 root sys ${bindir}/barcontrol barcontrol/barcontrol
f 0644 root sys ${bindir}/barcontrol-linux.jar barcontrol/barcontrol-linux.jar
%endif
# configuration
%system all
%ifdef PACKAGE_CMD
f 0600 root sys ${configdir}/bar.cfg bar/bar.cfg
%elseifdef PACKAGE_GUI
f 0600 root sys ${configdir}/barcontrol.cfg barcontrol/barcontrol.cfg
%endif
d 0755 root sys ${configdir}/jobs
# documentation
%system all
%ifdef PACKAGE_CMD
f 0644 root sys ${docdir}/README doc/README
f 0644 root sys ${docdir}/COPYING doc/COPYING
f 0644 root sys ${docdir}/bar.7 doc/bar.7
f 0644 root sys ${docdir}/bar.pdf doc/bar.pdf
f 0644 root sys ${docdir}/quickstart.txt doc/quickstart.txt
%endif
# man pages
%system all
%ifdef PACKAGE_CMD
f 0644 root sys ${mandir}/man7/bar.7 doc/bar.7
%endif
# startup scripts
%system linux
%ifdef PACKAGE_CMD
%format rpm
f 0755 root sys /etc/init.d/barserver scripts/barserver-SuSE
%format deb
f 0755 root sys /etc/init.d/barserver scripts/barserver-debian
%endif
# create keys
%ifdef PACKAGE_CMD
%postinstall <<EOT
bar-keygen --tls-directory=$tlsdir --java-private-directory=$configdir --quiet
EOT
%endif
# uninstall
%ifdef PACKAGE_CMD
%preremove <<EOT
rm -f $configdir/bar.jks
rm -f $tlsdir/private/bar-key.pem
rm -f $tlsdir/private/bar-server-key.pem
rm -f $tlsdir/certs/bar-ca.pem
rm -f $tlsdir/certs/bar-server-cert.pem
EOT
%endif