2001-01-26 22:41:58 +00:00
|
|
|
%post
|
2001-01-30 15:55:51 +00:00
|
|
|
if [ $1 = 1 ]; then
|
|
|
|
# if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
|
|
|
|
# . %{gs_root}/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
|
|
|
|
|
2001-01-26 22:41:58 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ $1 = 0 ]; then
|
2001-01-30 15:55:51 +00:00
|
|
|
# if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
|
|
|
|
# . %{gs_root}/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
|
|
|
|
|
2001-01-26 22:41:58 +00:00
|
|
|
fi
|