usr/src/cmd/quagga/post-install.sh
branchoi_151a
changeset 228 dc60997879d6
parent 14 ebdd963f7d5e
equal deleted inserted replaced
227:fbe7929c18b4 228:dc60997879d6
    17 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # fields enclosed by brackets "[]" replaced with your own identifying
    18 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 # information: Portions Copyright [yyyy] [name of copyright owner]
    19 #
    19 #
    20 # CDDL HEADER END
    20 # CDDL HEADER END
    21 #
    21 #
    22 # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
    22 # Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
    23 #
    23 #
    24 # ident	"@(#)post-install.sh	1.8	10/04/22 SMI"
    24 # ident	"@(#)post-install.sh	1.9	11/03/10 SMI"
    25 #
    25 #
    26 # Handle various things where the files installed by Quagga's 'make install'
    26 # Handle various things where the files installed by Quagga's 'make install'
    27 # differ from what we need for the SFW packages. E.g.:
    27 # differ from what we need for the SFW packages. E.g.:
    28 #
    28 #
    29 # - manual pages are delivered mode 0444, but make install'd 0644. Perms must
    29 # - manual pages are delivered mode 0444, but make install'd 0644. Perms must
    71 	"usr/sfw/lib/libospfapiclient.la*" \
    71 	"usr/sfw/lib/libospfapiclient.la*" \
    72 	"usr/sfw/share/man/man1/vtysh.1" \
    72 	"usr/sfw/share/man/man1/vtysh.1" \
    73 	"usr/sfw/include/quagga/*.h" \
    73 	"usr/sfw/include/quagga/*.h" \
    74 	"usr/sfw/include/quagga/ospfd/*.h" \
    74 	"usr/sfw/include/quagga/ospfd/*.h" \
    75 	"usr/sfw/include/quagga/ospfapi/*.h" ; do
    75 	"usr/sfw/include/quagga/ospfapi/*.h" ; do
    76 	rm -- ${ROOT}/${H}
    76 	rm -f -- ${ROOT}/${H}
    77 done
    77 done
    78 
    78 
    79 for H in quagga/ospfd quagga/ospfapi quagga ; do
    79 for H in quagga/ospfd quagga/ospfapi quagga ; do
    80 	rmdir ${ROOT}/usr/sfw/include/${H}
    80 	rmdir ${ROOT}/usr/sfw/include/${H}
    81 done
    81 done
    93 # files which must be copied.
    93 # files which must be copied.
    94 _install N ../Solaris/quagga.8 ${ROOT}/usr/sfw/share/man/man8/quagga.8 444
    94 _install N ../Solaris/quagga.8 ${ROOT}/usr/sfw/share/man/man8/quagga.8 444
    95 _install N ../Solaris/quaggaadm.1m ${ROOT}/usr/sfw/share/man/man1m/quaggaadm.1m 444
    95 _install N ../Solaris/quaggaadm.1m ${ROOT}/usr/sfw/share/man/man1m/quaggaadm.1m 444
    96 _install N ../Solaris/README.Solaris ${ROOT}/etc/quagga/README.Solaris 644
    96 _install N ../Solaris/README.Solaris ${ROOT}/etc/quagga/README.Solaris 644
    97 _install N ../Solaris/ospfd.HA.conf.sample ${ROOT}/etc/quagga/ospfd.HA.conf.sample 644
    97 _install N ../Solaris/ospfd.HA.conf.sample ${ROOT}/etc/quagga/ospfd.HA.conf.sample 644
    98 _install N ../../../common/rbac/exec_attr ${ROOT}/etc/security/exec_attr 644
       
    99 _install S ../Solaris/quaggaadm ${ROOT}/usr/sbin/quaggaadm 555
    98 _install S ../Solaris/quaggaadm ${ROOT}/usr/sbin/quaggaadm 555
   100 _install L quaggaadm ${ROOT}/usr/sbin/zebraadm
    99 _install L quaggaadm ${ROOT}/usr/sbin/zebraadm
   101 _install N solaris/quagga.xml ${ROOT}/lib/svc/manifest/network/routing/quagga.xml 444
   100 _install N solaris/quagga.xml ${ROOT}/lib/svc/manifest/network/routing/quagga.xml 444
   102 _install N solaris/trill.xml ${ROOT}/lib/svc/manifest/network/routing/trill.xml 444
   101 _install N solaris/trill.xml ${ROOT}/lib/svc/manifest/network/routing/trill.xml 444
   103 _install S solaris/quagga.init ${ROOT}/lib/svc/method/quagga 0555
   102 _install S solaris/quagga.init ${ROOT}/lib/svc/method/quagga 0555
   104 _install N ${SRCDIR}/doc/quagga.info-1 ${ROOT}/usr/sfw/share/info/quagga.info 444
   103 _install N ${SRCDIR}/doc/quagga.info-1 ${ROOT}/usr/sfw/share/info/quagga.info 444
   105 
   104 
   106 # rm the make-install'd quagga.info-1
   105 # rm the make-install'd quagga.info-1
   107 rm ${ROOT}/usr/sfw/share/info/quagga.info-1
   106 rm -f ${ROOT}/usr/sfw/share/info/quagga.info-1