packages: lshell/lshell.spec (NEW) - initial

paszczus paszczus at pld-linux.org
Wed Jun 10 09:06:25 CEST 2009


Author: paszczus                     Date: Wed Jun 10 07:06:25 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial

---- Files affected:
packages/lshell:
   lshell.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/lshell/lshell.spec
diff -u /dev/null packages/lshell/lshell.spec:1.1
--- /dev/null	Wed Jun 10 09:06:25 2009
+++ packages/lshell/lshell.spec	Wed Jun 10 09:06:20 2009
@@ -0,0 +1,83 @@
+# $Revision$, $Date$
+Summary:	Limited Shell (lshell)
+Summary(pl.UTF-8):	Limited Shell (lshell)
+Name:		lshell
+Version:	0.9.4
+Release:	0.1
+License:	GPL v3
+Group:		Applications/Shells
+Source0:	http://dl.sourceforge.net/lshell/%{name}-%{version}.tar.gz
+# Source0-md5:	77aaaecb79cf62fc5fcca57c76521c6f
+URL:		http://lshell.ghantoos.org
+BuildRequires:	python-devel
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python-modules
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+lshell is a configurable limited shell coded in Python, that lets you
+restrict users to limited sets of commands, choose to enable/disable
+any command over SSH (e.g. SCP, SFTP, rsync, etc.), log user's
+commands, implement timing restriction, and more.
+
+%prep
+%setup -q
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+umask 022
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
+if [ ! -f /etc/shells ]; then
+	echo "%{_bindir}/lshell" >> /etc/shells
+else
+	grep -q '^%{_bindir}/lshell$' /etc/shells || echo "%{_bindir}/lshell" >> /etc/shells
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+	umask 022
+	grep -v '^%{_bindir}/lshell$' /etc/shells > /etc/shells.new
+	mv -f /etc/shells.new /etc/shells
+fi
+
+%postun	-p	/sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES README
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
+%attr(755,root,root) %{_bindir}/lshell
+%{_mandir}/man1/lshell.1*
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/lshell-0.9.4-py2.6.egg-info
+%endif
+%{py_sitescriptdir}/lshell.pyc
+%{py_sitescriptdir}/lshell.pyo
+
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/06/10 07:06:20  paszczus
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list