From ebe92cf9df5ea1530396582584940d34ea0105d5 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Thu, 20 Jan 2011 10:16:51 -0500 Subject: [PATCH] Build a vsyssh package. --- Makefile | 2 +- vsys.spec | 22 ++++++++++++++++++---- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index a1b37cc..781620b 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ install: vsys cp vsys $(INSTALL_DIR)/usr/bin cp vsys-initscript $(INSTALL_DIR)/etc/init.d/vsys -dep: +.dep: ocamldep *.ml > .dep clean: diff --git a/vsys.spec b/vsys.spec index 03de1a3..b877bd5 100644 --- a/vsys.spec +++ b/vsys.spec @@ -39,34 +39,48 @@ invoke services installed by the PlanetLab administration. Slices invoke and interact with these services through fifo pipes. Services can be added and removed dynamically. +%package -n vsyssh +Summary: Vsys client +Group: System Environment/Libraries + +%description -n vsyssh +vsyssh is a simple shell to use vsys through. + %prep %setup %build rm -rf $RPM_BUILD_ROOT make +make -C vsyssh %install mkdir -p $RPM_BUILD_ROOT/usr/bin mkdir -p $RPM_BUILD_ROOT/etc/init.d mkdir -p $RPM_BUILD_ROOT/vsys #cp factory/* $RPM_BUILD_ROOT/vsys -cp vsys $RPM_BUILD_ROOT/usr/bin -cp vsys-initscript $RPM_BUILD_ROOT/etc/init.d/vsys -cp vsys.conf $RPM_BUILD_ROOT/etc +cp -p vsys $RPM_BUILD_ROOT/usr/bin +cp -p vsys-initscript $RPM_BUILD_ROOT/etc/init.d/vsys +cp -p vsys.conf $RPM_BUILD_ROOT/etc +cp -p vsyssh/vsyssh $RPM_BUILD_ROOT/usr/bin -install -D -m 644 vsys.logrotate $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/vsys +install -D -p -m 644 vsys.logrotate $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/vsys %clean rm -rf $RPM_BUILD_ROOT %files +%defattr(-,root,root,-) /usr/bin/vsys /etc/init.d/vsys /vsys %config(noreplace) /etc/vsys.conf %{_sysconfdir}/logrotate.d/vsys +%files -n vsyssh +%defattr(-,root,root,-) +/usr/bin/vsyssh + %post chkconfig --add vsys chkconfig vsys on -- 2.43.0