packages: ipmiview/ipmiview.spec - use xdg dir
glen
glen at pld-linux.org
Fri Dec 2 10:46:55 CET 2011
Author: glen Date: Fri Dec 2 09:46:55 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- use xdg dir
---- Files affected:
packages/ipmiview:
ipmiview.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: packages/ipmiview/ipmiview.spec
diff -u packages/ipmiview/ipmiview.spec:1.2 packages/ipmiview/ipmiview.spec:1.3
--- packages/ipmiview/ipmiview.spec:1.2 Thu Dec 1 22:44:37 2011
+++ packages/ipmiview/ipmiview.spec Fri Dec 2 10:46:50 2011
@@ -39,15 +39,17 @@
cat > $RPM_BUILD_ROOT%{_bindir}/ipmiview << 'EOF'
#!/bin/sh
-[ ! -d "$HOME/.ipmiview" ] && mkdir -p "$HOME/.ipmiview"
-cd "$HOME/.ipmiview"
+CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/ipmiview"
+[ ! -d "$CONFIG_DIR" ] && mkdir -p "$CONFIG_DIR"
+cd "$CONFIG_DIR"
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"
+CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/ipmiview"
+[ ! -d "$CONFIG_DIR" ] && mkdir -p "$CONFIG_DIR"
+cd "$CONFIG_DIR"
exec java -Djava.library.path=%{_libdir}/%{name} -jar %{_libdir}/%{name}/TrapView.jar
EOF
@@ -70,9 +72,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2011/12/02 09:46:50 glen
+- use xdg dir
+
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.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list