From 00f58df340ff96a0525ed1140738c6fe4f1a33d3 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Sep 09 2004 16:25:19 +0000 Subject: auto-import changelog data from ksh-20020628-1.src.rpm Wed Jul 17 2002 Preston Brown - initial Red Hat packaging of ksh93 --- diff --git a/.cvsignore b/.cvsignore index e69de29..01e49ca 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1,2 @@ +INIT.2002-06-28.tgz +ast-ksh.2002-06-28.tgz diff --git a/ksh.spec b/ksh.spec new file mode 100644 index 0000000..e3d0b68 --- /dev/null +++ b/ksh.spec @@ -0,0 +1,69 @@ +Name: ksh +Summary: The Original AT&T Korn Shell +URL: http://www.kornshell.com/ +Group: System Environment/Shells +License: AT&T +Version: 20020628 +Release: 1 +Source0: http://www.research.att.com/~gsf/download/tgz/ast-ksh.2002-06-28.tgz +Source1: http://www.research.att.com/~gsf/download/tgz/INIT.2002-06-28.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}.root +Obsoletes: pdksh + +%description +The KornShell language was designed and developed by David G. Korn +at AT&T Bell Laboratories. It is an interactive command language +that provides access to the UNIX system and to many other systems, +on the many different computers and workstations on which it is +implemented. This is Ksh93 which is intended to conform to the Shell +Language Standard developed by the IEEE POSIX 1003.2 Shell and +Utilities Language Committee. + +%prep +%setup0 -q -c -n ksh-%{version} +%setup1 -q -T -D -a 1 + +%build +./bin/package read || true +./bin/package make CFLAGS="$RPM_OPT_FLAGS -D_LARGEFILE64_SOURCE" + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p -m 755 \ + $RPM_BUILD_ROOT%{_bindir} \ + $RPM_BUILD_ROOT%{_mandir}/man1 +install -c -m 755 \ + arch/*/bin/ksh $RPM_BUILD_ROOT%{_bindir}/ksh +install -c -m 644 \ + arch/*/man/man1/sh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ksh.1 + +# rename license file +mv lib/package/LICENSES/ast LICENSE + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +if [ ! -f /etc/shells ]; then + echo "/bin/ksh" > /etc/shells +else + if ! grep -q '^/bin/ksh$' /etc/shells ; then + echo "/bin/ksh" >> /etc/shells + fi +fi + +%postun +if [ ! -f /bin/ksh ]; then + grep -v /bin/ksh /etc/shells > /etc/shells.new + mv /etc/shells.new /etc/shells +fi + +%files +%{_bindir}/ksh +%{_mandir}/man1/* +%doc LICENSE + +%changelog +* Wed Jul 17 2002 Preston Brown +- initial Red Hat packaging of ksh93 + diff --git a/sources b/sources index e69de29..1847d6a 100644 --- a/sources +++ b/sources @@ -0,0 +1,2 @@ +9478dd6ca2c9c56887e41011299e72e0 INIT.2002-06-28.tgz +36dee42ef33643d6566985b56c753ce0 ast-ksh.2002-06-28.tgz