packages: ipmiview/ipmiview.spec - .ipmiview as configuration dir

arekm arekm at pld-linux.org
Thu Dec 1 22:44:42 CET 2011


Author: arekm                        Date: Thu Dec  1 21:44:42 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- .ipmiview as configuration dir

---- Files affected:
packages/ipmiview:
   ipmiview.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/ipmiview/ipmiview.spec
diff -u packages/ipmiview/ipmiview.spec:1.1 packages/ipmiview/ipmiview.spec:1.2
--- packages/ipmiview/ipmiview.spec:1.1	Thu Dec  1 22:36:40 2011
+++ packages/ipmiview/ipmiview.spec	Thu Dec  1 22:44:37 2011
@@ -37,15 +37,19 @@
 
 install *.jar *.jnilib $RPM_BUILD_ROOT%{_libdir}/%{name}
 
-echo "#!/bin/sh
-cd \${TMPDIR:-/tmp}
-exec java -Djava.library.path=%{_libdir}/%{name} -jar %{_libdir}/%{name}/IPMIView20.jar" \
-	> $RPM_BUILD_ROOT%{_bindir}/ipmiview
-
-echo "#!/bin/sh
-cd \${TMPDIR:-/tmp}
-exec java -Djava.library.path=%{_libdir}/%{name} -jar %{_libdir}/%{name}/TrapView.jar" \
-	> $RPM_BUILD_ROOT%{_bindir}/trapview
+cat > $RPM_BUILD_ROOT%{_bindir}/ipmiview << 'EOF'
+#!/bin/sh
+[ ! -d "$HOME/.ipmiview" ] && mkdir -p "$HOME/.ipmiview"
+cd "$HOME/.ipmiview"
+exec java -Djava.library.path=%{_libdir}/%{name} -jar %{_libdir}/%{name}/IPMIView20.jar
+EOF
+
+cat > $RPM_BUILD_ROOT%{_bindir}/trapview << 'EOF'
+#!/bin/sh
+[ ! -d "$HOME/.ipmiview" ] && mkdir -p "$HOME/.ipmiview"
+cd "$HOME/.ipmiview"
+exec java -Djava.library.path=%{_libdir}/%{name} -jar %{_libdir}/%{name}/TrapView.jar
+EOF
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -66,6 +70,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2011/12/01 21:44:37  arekm
+- .ipmiview as configuration dir
+
 Revision 1.1  2011/12/01 21:36:40  arekm
 - initial
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ipmiview/ipmiview.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list