Accepting request 912000 from Base:System

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/912000
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/man?expand=0&rev=87
This commit is contained in:
Richard Brown 2021-08-16 08:09:05 +00:00 committed by Git OBS Bridge
commit 3d03c5070a
4 changed files with 46 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Aug 6 13:38:49 UTC 2021 - Dr. Werner Fink <werner@suse.de>
- Add manpath.sh and manpath.csh below /usr/etc/profile.d
-------------------------------------------------------------------
Tue May 31 20:59:59 UTC 2021 - Stefan Schubert <schubi@suse.de>

View File

@ -38,6 +38,8 @@ Source4: cron.daily.do_mandb
Source5: wrapper.c
Source6: man-rpmlintrc
Source7: man-db-create.service
Source8: manpath.csh
Source9: manpath.sh
Patch0: man-db-2.3.19deb4.0-groff.dif
Patch1: man-db-2.7.1-security4.dif
Patch2: man-db-2.7.1-firefox.dif
@ -267,6 +269,10 @@ mkdir -p %{buildroot}%{_unitdir}/
install -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/
%endif
mkdir -p %{buildroot}%{_prefix}/etc/profile.d
install -m 644 %{SOURCE8} %{buildroot}%{_prefix}/etc/profile.d/
install -m 644 %{SOURCE9} %{buildroot}%{_prefix}/etc/profile.d/
%find_lang man-db --all-name --with-man
%pre
@ -348,6 +354,8 @@ fi
%ghost %{_sysconfdir}/alternatives/man.1%{ext_man}
%ghost %{_sysconfdir}/alternatives/apropos.1%{ext_man}
%ghost %{_sysconfdir}/alternatives/whatis.1%{ext_man}
%dir %{_prefix}/etc/profile.d/
%{_prefix}/etc/profile.d/manpath.*
%{_bindir}/apropos
%{_bindir}/catman
%{_bindir}/lexgrog

16
manpath.csh Normal file
View File

@ -0,0 +1,16 @@
#
# Current manpath
#
if (-x /usr/bin/manpath && ! ${?MANPATHISSET}) then
set _tmpman=`(unsetenv MANPATH; /usr/bin/manpath -q)`
if ( ${?MANPATH} ) then
if (${MANPATH} != ${_tmpman}) then
setenv MANPATH "${MANPATH}:${_tmpman}"
else
setenv MANPATH "${_tmpman}"
endif
else
setenv MANPATH "${_tmpman}"
endif
setenv MANPATHISSET yes
endif

17
manpath.sh Normal file
View File

@ -0,0 +1,17 @@
#
# Current manpath
#
if test -x /usr/bin/manpath -a -z "$MANPATHISSET"
then
_tmpenv="$MANPATH"
unset MANPATH
_tmpman="$(/usr/bin/manpath -q)"
if test -n "$_tmpenv" -a "$_tmpenv" != ${_tmpman} ; then
MANPATH="${_tmpenv}:${_tmpman}"
else
MANPATH="${_tmpman}"
fi
unset _tmpenv _tmpman
MANPATHISSET=yes
export MANPATH MANPATHISSET
fi