|
|
@@ -31,9 +31,9 @@ Vendor: Eric Gisin, Charles Forsyth
|
|
|
Packager: The OpenPKG Project
|
|
|
Distribution: OpenPKG [REL]
|
|
|
Group: Shell
|
|
|
-License: ?
|
|
|
+License: unknown
|
|
|
Version: 5.2.14
|
|
|
-Release: 20020206
|
|
|
+Release: 20020416
|
|
|
|
|
|
# list of sources
|
|
|
Source0: ftp://ftp.cs.mun.ca/pub/pdksh/pdksh-%{version}.tar.gz
|
|
|
@@ -41,8 +41,8 @@ Source0: ftp://ftp.cs.mun.ca/pub/pdksh/pdksh-%{version}.tar.gz
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
-BuildPreReq: OpenPKG, openpkg >= 20020206
|
|
|
-PreReq: OpenPKG, openpkg >= 20020206
|
|
|
+BuildPreReq: OpenPKG, openpkg >= 20020416
|
|
|
+PreReq: OpenPKG, openpkg >= 20020416
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
@@ -76,17 +76,13 @@ AutoReqProv: no
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%post
|
|
|
- if [ ".$1" = .1 -a -w /etc/shells ]; then
|
|
|
- cp -p /etc/shells /tmp/shells
|
|
|
- grep -v "$RPM_INSTALL_PREFIX/bin/pdksh" </tmp/shells >/etc/shells
|
|
|
- echo "$RPM_INSTALL_PREFIX/bin/pdksh" >>/etc/shells
|
|
|
- rm -f /tmp/shells
|
|
|
+ if [ ".$1" = .1 ]; then
|
|
|
+ if [ -f /etc/shells ]; then
|
|
|
+ if [ ".`grep $RPM_INSTALL_PREFIX/bin/pdksh /etc/shells`" = . ]; then
|
|
|
+ ( echo "Hint: If you want to use $RPM_INSTALL_PREFIX/bin/pdksh as the login"
|
|
|
+ echo "shell for users you have to add this path to /etc/shells, please."
|
|
|
+ ) | %{l_rpmtool} msg -b -t notice
|
|
|
+ fi
|
|
|
+ fi
|
|
|
fi
|
|
|
|
|
|
-%postun
|
|
|
- if [ ".$1" = .0 -a -w /etc/shells ]; then
|
|
|
- cp -p /etc/shells /tmp/shells
|
|
|
- grep -v "$RPM_INSTALL_PREFIX/bin/pdksh" </tmp/shells >/etc/shells
|
|
|
- rm -f /tmp/shells
|
|
|
- fi
|
|
|
-
|