Changes of Revision 2
[-] | Added | xen-shell.spec |
x 1
2 +Name: xen-shell 3 +Version: 1.8 4 +Release: 1 5 +Summary: shell to control a xen vm 6 + 7 +Group: Applications/Emulators 8 +License: GPLv2 or Artistic 9 +URL: http://www.xen-tools.org/software/xen-shell/ 10 +Source0: http://www.xen-tools.org/software/xen-shell/xen-shell-%{version}.tar.gz 11 +Patch0: xen-shell-makefile.diff 12 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 13 + 14 +BuildArch: noarch 15 +Requires: perl 16 +AutoReqProv: no 17 + 18 +%description 19 +The Xen shell is a simple console application which allows you to easily allow a user to control multiple Xen instances, without the overhead of a web-based control panel. 20 + 21 +Using this shell users may: 22 + 23 + * Boot/Shutdown their Xen guest. 24 + * Reboot their Xen guest. 25 + * Connect to the serial console of their runing Xen guest. 26 + * Reimage their system to a pristine state, via xen-tools. 27 + * Manipulate their reverse DNS information 28 + * Change their login password. 29 + 30 +%prep 31 +%setup -q -n %{name}-%{version} 32 + 33 +%build 34 + 35 +%install 36 +rm -rf %{buildroot} 37 +%{__install} -m 755 -d %{buildroot}%{_bindir} 38 +make install DESTDIR=%{buildroot} 39 + 40 + 41 +%clean 42 +rm -rf %{buildroot} 43 + 44 + 45 +%files 46 +%defattr(-,root,root,-) 47 +%doc BUGS README 48 +%config(noreplace) %{_sysconfdir}/xen-shell 49 +%{_sysconfdir}/bash_completion.d/* 50 +%{_bindir}/* 51 +%{_mandir}/man1/* 52 + 53 +%changelog 54 +* Thu Mar 27 2008 Carsten Schoene <cs@linux-administrator.com> 55 +- Initial build 56 + 57 |
||
[+] | Added | xen-shell-makefile.diff ^ |
@@ -0,0 +1,38 @@ +--- Makefile.orig 2008-03-27 09:44:54.000000000 +0100 ++++ Makefile 2008-03-27 09:47:30.000000000 +0100 +@@ -34,14 +34,14 @@ + # Install into /usr/bin, then remove the old install from /usr/local/bin + # + install: manpages +- cp bin/xm-reimage /usr/bin +- cp bin/xen-login-shell /usr/bin +- cp bin/xen-shell /usr/bin +- if [ ! -d /etc/xen-shell ]; then mkdir /etc/xen-shell ; fi +- cp misc/_screenrc /etc/xen-shell +- cp misc/xen-shell.conf /etc/xen-shell +- if [ ! -d /etc/bash_completion.d ]; then mkdir /etc/bash_completion.d/ ; fi +- cp misc/xen-shell /etc/bash_completion.d ++ cp bin/xm-reimage ${DESTDIR}/usr/bin ++ cp bin/xen-login-shell ${DESTDIR}/usr/bin ++ cp bin/xen-shell ${DESTDIR}/usr/bin ++ if [ ! -d ${DESTDIR}/etc/xen-shell ]; then mkdir ${DESTDIR}/etc/xen-shell ; fi ++ cp misc/_screenrc ${DESTDIR}/etc/xen-shell ++ cp misc/xen-shell.conf ${DESTDIR}/etc/xen-shell ++ if [ ! -d ${DESTDIR}/etc/bash_completion.d ]; then mkdir ${DESTDIR}/etc/bash_completion.d/ ; fi ++ cp misc/xen-shell ${DESTDIR}/etc/bash_completion.d + @if [ -e /usr/local/bin/xm-reimage ]; then chmod -x /usr/local/bin/xm-reimage; echo "Obsolete software in /usr/local/bin/xm-reimage - please remove"; fi + @if [ -e /usr/local/bin/xen-shell ]; then chmod -x /usr/local/bin/xen-shell ; echo "Obsolete software in /usr/local/bin/xm-reimage - please remove"; fi + @if [ -e /usr/local/bin/xen-login-shell ]; then chmod -x /usr/local/bin/xen-login-shell; echo "Obsolete software in /usr/local/bin/xm-reimage - please remove"; fi +@@ -55,9 +55,9 @@ + + + manpages: makemanpages +- for i in man/*.man; do file=`basename $$i .man` ; cp $$i /usr/share/man/man1/$$file.1; done +- for i in /usr/share/man/man1/*.1; do gzip -f -9 $$i; done +- rm /usr/share/man/man1/xen-add-user.1.gz ++ for i in man/*.man; do file=`basename $$i .man` ; cp $$i ${DESTDIR}/usr/share/man/man1/$$file.1; done ++ for i in ${DESTDIR}/usr/share/man/man1/*.1; do gzip -f -9 $$i; done ++ rm ${DESTDIR}/usr/share/man/man1/xen-add-user.1.gz + + # + # Make a new release tarball. |