comparison Kibana.spec @ 26:610835fb4209

external configuration for kibana
author Carl Byington <carl@five-ten-sg.com>
date Fri, 03 May 2013 08:04:08 -0700
parents d058481276aa
children 76544ad0561d
comparison
equal deleted inserted replaced
25:d058481276aa 26:610835fb4209
12 12
13 Group: System Environment/Daemons 13 Group: System Environment/Daemons
14 License: MIT 14 License: MIT
15 URL: http://kibana.org/ 15 URL: http://kibana.org/
16 BuildArch: noarch 16 BuildArch: noarch
17 #Source0: https://codeload.github.com/rashidkpc/Kibana/tar.gz/v%{version} >%{name}-%{version}.tar.gz
18 #Source0: %{name}-%{version}.tar.gz
19 Source0: https://nodeload.github.com/rashidkpc/Kibana/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz 17 Source0: https://nodeload.github.com/rashidkpc/Kibana/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
18 Source1: Kibana-external-config-patch
20 Source10: %{name}.rc 19 Source10: %{name}.rc
20 Source13: %{name}.sysconfig
21 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) 21 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
22 Autoreq: 0 22 Autoreq: 0
23 23
24 BuildRequires: jruby java-devel 24 BuildRequires: jruby java-devel
25 25
36 make sense of a mountain of logs. 36 make sense of a mountain of logs.
37 37
38 38
39 %prep 39 %prep
40 %setup -qn %{name}-%{commit} 40 %setup -qn %{name}-%{commit}
41 #%setup -q 41 patch <%SOURCE1
42 42
43 43
44 %build 44 %build
45 if [ "$(which jruby)" == '' ]; then 45 if [ "$(which jruby)" == '' ]; then
46 JRUBY_CMD="java -jar /usr/share/jruby.jar" 46 JRUBY_CMD="java -jar /usr/share/jruby.jar"
61 rm -rf $RPM_BUILD_ROOT 61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT/var/log/%{name} 62 install -d $RPM_BUILD_ROOT/var/log/%{name}
63 install -d $RPM_BUILD_ROOT/%{_javadir}/%{name} 63 install -d $RPM_BUILD_ROOT/%{_javadir}/%{name}
64 cp -a * $RPM_BUILD_ROOT/%{_javadir}/%{name} 64 cp -a * $RPM_BUILD_ROOT/%{_javadir}/%{name}
65 install -D -m 755 %SOURCE10 $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} 65 install -D -m 755 %SOURCE10 $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
66 install -D -m 640 %SOURCE13 $RPM_BUILD_ROOT/etc/sysconfig/%{name}
66 67
67 68
68 %pre 69 %pre
69 /usr/bin/getent passwd %{name2} >/dev/null || /usr/sbin/useradd -r -c "%{name} pseudo-user" %{name2} >/dev/null 70 /usr/bin/getent passwd %{name2} >/dev/null || /usr/sbin/useradd -r -c "%{name} pseudo-user" %{name2} >/dev/null
70 71
87 88
88 89
89 %files 90 %files
90 %defattr(-,root,root,-) 91 %defattr(-,root,root,-)
91 %attr(0750,%{name2},root) %{_javadir}/* 92 %attr(0750,%{name2},root) %{_javadir}/*
93 %config(noreplace) %attr(0640,%{name2},root) /etc/sysconfig/%{name}
92 %dir %attr(0750,%{name2},root) /var/log/%{name} 94 %dir %attr(0750,%{name2},root) /var/log/%{name}
93 /etc/rc.d/init.d/%{name} 95 /etc/rc.d/init.d/%{name}
94 96
95 97
96 98