SPECS: flixengine.spec - more interactive flixd-license-get script
glen
glen at pld-linux.org
Wed Jan 30 14:51:54 CET 2008
Author: glen Date: Wed Jan 30 13:51:53 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- more interactive flixd-license-get script
---- Files affected:
SPECS:
flixengine.spec (1.56 -> 1.57)
---- Diffs:
================================================================
Index: SPECS/flixengine.spec
diff -u SPECS/flixengine.spec:1.56 SPECS/flixengine.spec:1.57
--- SPECS/flixengine.spec:1.56 Wed Jan 30 14:47:55 2008
+++ SPECS/flixengine.spec Wed Jan 30 14:51:48 2008
@@ -430,9 +430,19 @@
install -d $RPM_BUILD_ROOT%{_sbindir}
cat > $RPM_BUILD_ROOT%{_sbindir}/flixd-license-get <<'EOF'
#!/bin/sh
+set -e
+
. %{_sysconfdir}/flixd-license.conf
+if [ -z "$FLIX_USERNAME" -o -z "$FLIX_SERIAL" ]; then
+ echo >&2 "Please fill FLIX_USERNAME and FLIX_SERIAL!"
+ exit 1
+fi
%{_sbindir}/lget -u "$FLIX_USERNAME" -s "$FLIX_SERIAL" -i %{_sysconfdir}/hostinfo -o %{_sysconfdir}/flixengine.lic -a 'On2FlixEngine/%{full_version} (%(uname -o))'
+echo ""
+echo "Serial registered and saved into %{_sysconfdir}/flixengine.lic"
+echo ""
+echo "Run \"/sbin/service flixd start\" to start flixd"
EOF
%clean
@@ -579,6 +589,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.57 2008-01-30 13:51:48 glen
+- more interactive flixd-license-get script
+
Revision 1.56 2008-01-30 13:47:55 glen
- improve post installation text
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/flixengine.spec?r1=1.56&r2=1.57&f=u
More information about the pld-cvs-commit
mailing list