diff --git a/ci-build-mock.sh b/ci-build-mock.sh new file mode 100644 index 0000000..e8bed38 --- /dev/null +++ b/ci-build-mock.sh @@ -0,0 +1,22 @@ +#!/bin/bash +set -eu + +##################################################################### +# TigerOS Build Script for running on the build box with Jenkins CI # +# @author: Aidan Kahrs # +# # +# Usage: sudo bash build.sh # +# # +##################################################################### +wget -O tigeros.ks https://raw.githubusercontent.com/RITlug/TigerOS/master/tigeros.ks +mock -r fedora-25-x86_64 --init +mock -r fedora-25-x86_64 --copyin tigeros.ks ./tigeros.ks +mock -r fedora-25-x86_64 --install lorax-lmc-novirt git vim-minimal pykickstart svn +mock -r fedora-25-x86_64 --chroot "svn export https://github.com/RITlug/TigerOS/trunk/scripts/" +mock -r fedora-25-x86_64 --chroot "livemedia-creator --ks tigeros.ks --no-virt --resultdir /var/lmc --project TigerOS-Live --make-iso --volid TigerOS --iso-only --iso-name TigerOS.iso --releasever 25 --title TigerOS-live --macboot" +mock -r fedora-25-x86_64 --copyout /var/lmc/TigerOS.iso /srv/isos/TigerOS.iso +rm -rf /var/lmc/ +cd /srv/isos/ +sha512sum *.iso >CHECKSUM512 + + diff --git a/ci-build.sh b/ci-build.sh index e8bed38..cdfce3c 100644 --- a/ci-build.sh +++ b/ci-build.sh @@ -5,18 +5,15 @@ set -eu # TigerOS Build Script for running on the build box with Jenkins CI # # @author: Aidan Kahrs # # # -# Usage: sudo bash build.sh # +# Usage: sudo bash build.sh # # # ##################################################################### +rm -rf tigeros.ks wget -O tigeros.ks https://raw.githubusercontent.com/RITlug/TigerOS/master/tigeros.ks -mock -r fedora-25-x86_64 --init -mock -r fedora-25-x86_64 --copyin tigeros.ks ./tigeros.ks -mock -r fedora-25-x86_64 --install lorax-lmc-novirt git vim-minimal pykickstart svn -mock -r fedora-25-x86_64 --chroot "svn export https://github.com/RITlug/TigerOS/trunk/scripts/" -mock -r fedora-25-x86_64 --chroot "livemedia-creator --ks tigeros.ks --no-virt --resultdir /var/lmc --project TigerOS-Live --make-iso --volid TigerOS --iso-only --iso-name TigerOS.iso --releasever 25 --title TigerOS-live --macboot" -mock -r fedora-25-x86_64 --copyout /var/lmc/TigerOS.iso /srv/isos/TigerOS.iso +livemedia-creator --ks tigeros.ks --no-virt --resultdir /var/lmc --project TigerOS-Live --make-iso --volid TigerOS --iso-only --iso-name TigerOS.iso --releasever 25 --title TigerOS-live --macboot rm -rf /var/lmc/ -cd /srv/isos/ -sha512sum *.iso >CHECKSUM512 +cp -f TigerOS.iso /srv/isos/ +cd /srv/isos +sha512sum *.iso > CHECKSUM512 diff --git a/rpmbuild/SPECS/tigeros-scripts.spec b/rpmbuild/SPECS/tigeros-scripts.spec new file mode 100644 index 0000000..7bc452f --- /dev/null +++ b/rpmbuild/SPECS/tigeros-scripts.spec @@ -0,0 +1,45 @@ +Name: tigeros-scripts +Version: 1.0 +Release: 1%{?dist} +Summary: TigerOS setup scripts +License: GPLv3 +URL: https://github.com/RITlug/TigerOS +Source0: %{name}.tar.gz +BuildArch: noarch +BuildRequires: git + +%description +JFLAP is a package of graphical tools which can be used as an aid in learning the basic concepts of Formal Languages and Automata Theory. + +%prep +tar -xvf %{_sourcedir}/%{name}.tar.gz -C %{_sourcedir} + +%build +echo "We don't need to build" + +%install +%{__mkdir_p} %{buildroot}%{_prefix}/local/tigeros +install -p -m 755 %{_sourcedir}/FusionEnableLauncher.py %{buildroot}%{_prefix}/local/tigeros/FusionEnableLauncher.py +%{__mkdir_p} %{buildroot}%{_prefix}/local/tigeros/cs +install -p -m 755 %{_sourcedir}/cs/idea.sh %{buildroot}%{_prefix}/local/tigeros/cs/idea.sh +install -p -m 755 %{_sourcedir}/cs/jflap.sh %{buildroot}%{_prefix}/local/tigeros/cs/jflap.sh +install -p -m 755 %{_sourcedir}/cs/logisim.sh %{buildroot}%{_prefix}/local/tigeros/cs/logisim.sh +install -p -m 755 %{_sourcedir}/enablerpmfusion.sh %{buildroot}%{_prefix}/local/tigeros/enablerpmfusion.sh +install -p -m 755 %{_sourcedir}/removal %{buildroot}%{_prefix}/local/tigeros/removal +install -p -m 755 %{_sourcedir}/postinstall %{buildroot}%{_prefix}/local/tigeros/postinstall +%{__mkdir_p} %{buildroot}%{_prefix}/local/tigeros/se +install -p -m 755 %{_sourcedir}/se/alloy.sh %{buildroot}%{_prefix}/local/tigeros/se/alloy.sh +install -p -m 755 %{_sourcedir}/se/spin.sh %{buildroot}%{_prefix}/local/tigeros/se/spin.sh + +%files +%{_prefix}/local/tigeros/FusionEnableLauncher.py +%{_prefix}/local/tigeros/cs +%{_prefix}/local/tigeros/cs/idea.sh +%{_prefix}/local/tigeros/cs/jflap.sh +%{_prefix}/local/tigeros/cs/logisim.sh +%{_prefix}/local/tigeros/enablerpmfusion.sh +%{_prefix}/local/tigeros/removal +%{_prefix}/local/tigeros/postinstall +%{_prefix}/local/tigeros/se/alloy.sh +%{_prefix}/local/tigeros/se/spin.sh +%changelog diff --git a/tigeros.ks b/tigeros.ks index 4ad909a..81626a8 100644 --- a/tigeros.ks +++ b/tigeros.ks @@ -362,9 +362,8 @@ cd /usr/share/backgrounds/images mkdir -p /usr/share/autostart mkdir -p /usr/local/tigeros/ cd /usr/local/tigeros/ -#wget people.rit.edu/axk4545/scripts.tar.gz -wget --no-check-certificate http://129.21.1.44/axk4545/scripts.tar.gz -tar -xvf /usr/local/tigeros/scripts.tar.gz -C /usr/local/tigeros/ +svn export https://github.com/RITlug/TigerOS/trunk/scripts/ /usr/local/tigeros/ +mv "scripts/*" /usr/local/tigeros/ ln -s /usr/local/enablerpmfusion.sh /usr/share/autostart/enablerpmfusion.sh ln -s /usr/local/tigeros/FusionEnableLauncher.py /usr/share/autostart/FusionEnableLauncher.py ln -s /usr/local/tigeros/postinstall /usr/share/autostart/postinstall