Adds rpm specs to migration repo

This commit is contained in:
torsten committed 2026-07-18 17:22:25 +02:00
1 parent acee7b8766
commit 7f035543e2
145 files changed
+13982

No files matched your search

+72
View File
@@ -0,0 +1,72 @@
# $Id$
# $HeadURL$
#
# Von Hand auszufuellen - Version und Release anpassen!
#
# bash
# name="lts_config_entw_192_168_133_44"
# mkdir ${name}
# cp ${name}.conf ${name}/lts-cc.conf
# tar cvzf ${name}.tgz ${name}/
# cp ${name}.tgz ~/rpmbuild/SOURCES/
# rm -r ${name}.tgz ${name}
# rpmbuild -bb --target=noarch ${name}.spec
Summary: LifeSimulation Training System Config for ENTW (192.168.133.44)
Name: lts_config_entw_192_168_133_44
Version: 1.0
Release: 3
License: proprietary
Group: Applications/Communications
Source: %{name}.tgz
Prefix: /
Vendor: LifeMaps GmbH GmbH
URL: http://www.life-maps.com
Packager: ctc
%description
LifeSimulation Training System Config for ENTW (192.168.133.44)
%changelog
#* date +"%a %b %d %Y" text
* Mon Dec 14 2015 CE
- initial
%prep
%setup -q -n %{name}
%build
# nothing to do here
%install
mkdir -p "$RPM_BUILD_ROOT/%{prefix}/etc/"
cp -r "%{_builddir}/%{buildsubdir}/lts-cc.conf" "$RPM_BUILD_ROOT/%{prefix}/etc/lts-cc.conf"
%clean
# nothing to do here
%files
%defattr(-,root,root)
%{prefix}/etc/lts-cc.conf
%pre
%post
if [ ! -e /tmp/coredumps ]; then
# TODO: cronjob zum Loeschen hinzufuegen
mkdir /tmp/coredumps
# 1 -> sticky bit
chmod 1777 /tmp/coredumps
echo "kernel.core_pattern = /tmp/coredumps/core.%e.%t.%p" > /etc/sysctl.d/50-tmp_coredumps.conf
echo "/tmp/coredumps/core.%e.%t.%p" > /proc/sys/kernel/core_pattern
fi
if [ ! -e /shd/CTC/LOG ]; then
mkdir /shd/CTC/LOG
chmod 1777 /shd/CTC/LOG
fi
%preun
if [ $1 -eq 0 ]; then
rm /etc/sysctl.d/50-tmp_coredumps.conf
fi
%postun