mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24735 72102866-910b-0410-8b05-ffd578937521
44 lines
1.1 KiB
RPMSpec
44 lines
1.1 KiB
RPMSpec
%post
|
|
if [ $1 = 1 ]; then
|
|
# if [ -z "$GNUSTEP_MAKEFILES" ]; then
|
|
# . %{gs_root}/Library/Makefiles/GNUstep.sh
|
|
# fi
|
|
|
|
#==============================================================
|
|
# Add lines for gdomap into /etc/services, if not already there
|
|
#==============================================================
|
|
grep -q '^gdomap' /etc/services \
|
|
|| (echo "gdomap 538/tcp # GNUstep distributed objects" >> /etc/services \
|
|
&& echo "gdomap 538/udp # GNUstep distributed objects" >> /etc/services)
|
|
|
|
#
|
|
# Need to add paths to ld.so.conf in gnustep-make if we want to do this
|
|
#
|
|
#%ifos Linux
|
|
#/sbin/ldconfig
|
|
#%endif
|
|
|
|
fi
|
|
|
|
|
|
%postun
|
|
if [ $1 = 0 ]; then
|
|
# if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
|
|
# . %{gs_root}/Library/Makefiles/GNUstep.sh
|
|
# fi
|
|
|
|
#=========================================
|
|
# Remove lines for gdomap in /etc/services
|
|
#=========================================
|
|
mv -f /etc/services /etc/services.orig
|
|
grep -v "^gdomap 538" /etc/services.orig > /etc/services
|
|
rm -f /etc/services.orig
|
|
|
|
#
|
|
# Need to add paths to ld.so.conf in gnustep-make if we want to do this
|
|
#
|
|
#%ifos Linux
|
|
#/sbin/ldconfig
|
|
#%endif
|
|
|
|
fi
|