-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtapd.spec
42 lines (34 loc) · 1.32 KB
/
tapd.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
name: tapd
version: 1.0
release: 0
summary: Taps Service Daemon
group: ctier
license: GPL
url: http://github.com/dtolabs/taps
requires: lighttpd >= 1.4
requires(post): chkconfig
requires(postun): chkconfig
%description
Rundeck supports dynamic input fields using valueUrls. These urls can be served from the file system using file:// or http:// using a webservice. This webservice provides a mechanism to serve dynamic options in an easy to use, easy to integration fashion.
The webservice uses the CGI standard to return json to Rundeck. By placing a file with the *.options under the /var/rundeck directory, any acceptable #! can be used to process the CGI request.
%files
%defattr(644, tapd, tapd, 755)
%config(noreplace) %attr(-, tapd, tapd) /etc/tapd/options.conf
%attr(755, -, -) /etc/rc.d/init.d/tapd
%attr(-, tapd, tapd) %ghost /var/log/tapd/error.log
%attr(-, tapd, tapd) %ghost /var/log/tapd/access.log
%attr(-, tapd, tapd) %ghost /var/log/tapd/dav.access.log
%attr(-, tapd, tapd) %dir /var/run/tapd/dav
%attr(755, -, -) /usr/sbin/tapd
%pre
getent group tapd >/dev/null || groupadd tapd
getent passwd tapd >/dev/null || useradd -m -g tapd tapd
%post
/sbin/chkconfig --add tapd
%postun
if [ "$1" = 0 ]; then
/sbin/chkconfig --del tapd
fi
%changelog
* Wed Oct 20 2010 Noah Campbell <noahcampbell@gmail.com> 1.0
- Initial spec file.