Adds rpm specs to migration repo
This commit is contained in:
1 parent
acee7b8766
commit
7f035543e2
145 files changed
+13982
No files matched your search
Executable
+81
@@ -0,0 +1,81 @@
|
||||
# $Id$
|
||||
# $HeadURL$
|
||||
#
|
||||
# installieren laut wiki
|
||||
# /opt/prti1516e/bin/prti1516service folgende 12 Zeilen bei Zeile 0 hinzufügen (mit Kommentaren!):
|
||||
|
||||
#!/bin/sh
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: prti1516e
|
||||
# Required-Start: $network
|
||||
# Required-Stop: $network
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop: 0 1 2 6
|
||||
# Short-Description: Pitch RTI runtime
|
||||
# Description: Pitch RTI runtime
|
||||
### END INIT INFO
|
||||
#
|
||||
|
||||
# dst_dir=/usr/src/packages/BUILDROOT/ctc_prti_1516e-4.3.1-1.x86_64/opt/ (opensuse < 12)
|
||||
# dst_dir=${HOME}/rpmbuild/BUILDROOT/ctc_prti_1516e-4.3.1-1.x86_64/opt/ (opensuse >= 12.x)
|
||||
# mkdir -p $dst_dir
|
||||
# cp -r /opt/prti1516e $dst_dir
|
||||
# rpmbuild -bb ctc_prti1516e.spec
|
||||
#
|
||||
Summary: CTC Pitch RTI
|
||||
Name: ctc_prti_1516e
|
||||
Version: 4.3.1
|
||||
Release: 2
|
||||
License: proprietary
|
||||
Group: Applications/Communications
|
||||
Prefix: /
|
||||
Vendor: LifeMaps GmbH
|
||||
URL: http://www.life-maps.de
|
||||
Packager: ctc
|
||||
AutoReqProv: no
|
||||
|
||||
%description
|
||||
Pitch RTI Runtime for Combat Training Center
|
||||
|
||||
%changelog
|
||||
#* date +"%a %b %d %Y" text
|
||||
* Thu May 14 2013 CE
|
||||
- initial
|
||||
|
||||
%files
|
||||
%defattr(-,ctc,ctc)
|
||||
"%{prefix}/opt/prti1516e"
|
||||
|
||||
|
||||
%pre
|
||||
%post
|
||||
# symlinks anlegen
|
||||
ln -sf $RPM_INSTALL_PREFIX/opt/prti1516e/bin/crcSettings /usr/local/bin/
|
||||
ln -sf $RPM_INSTALL_PREFIX/opt/prti1516e/bin/LicenseActivator /usr/local/bin/
|
||||
ln -sf $RPM_INSTALL_PREFIX/opt/prti1516e/bin/LicenseActivatorGui /usr/local/bin/
|
||||
ln -sf $RPM_INSTALL_PREFIX/opt/prti1516e/bin/lrcSettings /usr/local/bin/
|
||||
ln -sf $RPM_INSTALL_PREFIX/opt/prti1516e/bin/pRTI1516e /usr/local/bin/
|
||||
ln -sf $RPM_INSTALL_PREFIX/opt/prti1516e/bin/traceSettings /usr/local/bin/
|
||||
ln -sf $RPM_INSTALL_PREFIX/opt/prti1516e/bin/VersionChecker /usr/local/bin/
|
||||
# init.d - Script
|
||||
ln -sf $RPM_INSTALL_PREFIX/opt/prti1516e/bin/prti1516service /etc/init.d/
|
||||
insserv prti1516service
|
||||
/etc/init.d/prti1516service restart
|
||||
|
||||
%preun
|
||||
# nur im uninstall-Fall
|
||||
if [ $1 -eq 0 ]; then
|
||||
/etc/init.d/prti1516service stop
|
||||
insserv -r prti1516service
|
||||
rm -f /etc/init.d/prti1516service
|
||||
|
||||
rm -f /usr/local/bin/crcSettings
|
||||
rm -f /usr/local/bin/LicenseActivator
|
||||
rm -f /usr/local/bin/LicenseActivatorGui
|
||||
rm -f /usr/local/bin/lrcSettings
|
||||
rm -f /usr/local/bin/pRTI1516e
|
||||
rm -f /usr/local/bin/traceSettings
|
||||
rm -f /usr/local/bin/VersionChecker
|
||||
fi
|
||||
%postun
|
||||
Reference in new issue
Block a user