File: gnustep-base.script.spec.in

package info (click to toggle)
gnustep-base 1.13.0-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 18,140 kB
  • ctags: 2,571
  • sloc: ansic: 787,537; objc: 128,348; makefile: 419; sh: 113; cpp: 112
file content (44 lines) | stat: -rw-r--r-- 1,174 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
%post
if [ $1 = 1 ]; then
#  if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; 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