SPECS: posh.spec (NEW) - new
glen
glen at pld-linux.org
Thu Jun 1 00:50:04 CEST 2006
Author: glen Date: Wed May 31 22:50:04 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
posh.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/posh.spec
diff -u /dev/null SPECS/posh.spec:1.1
--- /dev/null Thu Jun 1 00:50:04 2006
+++ SPECS/posh.spec Thu Jun 1 00:49:59 2006
@@ -0,0 +1,64 @@
+# $Revision$, $Date$
+Summary: Policy-compliant Ordinary SHell
+Name: posh
+Version: 0.5
+Release: 0.2
+License: GPL v2+
+Group: Applications/Shells
+Source0: http://ftp.debian.org/debian/pool/main/p/posh/%{name}_%{version}.tar.gz
+# Source0-md5: 56ca21ffb22ab80bcaecb88df5cff2e4
+URL: http://packages.debian.org/unstable/source/posh
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _exec_prefix /
+%define _shell %{_bindir}/posh
+
+%description
+posh is a stripped-down version of pdksh that aims for compliance with
+Debian's policy, and few extra features.
+
+posh contains code from pdksh 5.2.14, which is "in the public domain."
+
+%prep
+%setup -q
+
+%build
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ ! -f /etc/shells ]; then
+ umask 022
+ echo '%{_shell}' > /etc/shells
+else
+ grep -q '^%{_shell}$' /etc/shells || echo '%{_shell}' >> /etc/shells
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+ %{__sed} -i -e '/^%(echo %{_shell} | sed -e 's,/,\\/,g')$/d' /etc/shells
+fi
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/posh
+%{_mandir}/man1/posh.1*
+
+%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 2006/05/31 22:49:59 glen
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list