Home | History | Annotate | Download | only in ircii
      1 # CDDL HEADER START
      2 #
      3 # The contents of this file are subject to the terms of the
      4 # Common Development and Distribution License {the "License"}.
      5 # You may not use this file except in compliance with the License.
      6 #
      7 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
      8 # or http://www.opensolaris.org/os/licensing.
      9 # See the License for the specific language governing permissions
     10 # and limitations under the License.
     11 #
     12 # When distributing Covered Code, include this CDDL HEADER in each
     13 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     14 # If applicable, add the following below this CDDL HEADER, with the
     15 # fields enclosed by brackets "[]" replaced with your own identifying
     16 # information: Portions Copyright [yyyy] [name of copyright owner]
     17 #
     18 # CDDL HEADER END
     19 #
     20 
     21 #
     22 # Copyright 2008 Sun Microsystems, Inc.   All rights reserved.
     23 # Use is subject to license terms.
     24 #
     25 #pragma ident	"@(#)install-sfw	1.9	08/07/09 SMI"
     26 #
     27 # makefile.master {usr/src} sets the following:
     28 #
     29 # CFGPREFIX=      /usr
     30 # CFGBIN=         ${CFGPREFIX}/bin
     31 # CFGMAN=         ${CFGPREFIX}/share/man
     32 # CFGMAN1=        ${CFGMAN}/man1
     33 # CONFIGURE_OPTIONS =     --prefix=${CFGPREFIX}
     34 # CONFIGURE_OPTIONS +=    --mandir=${CFGMAN}
     35 #
     36 # ROOTxxx refers to the build root {proto/MACHTYPE/...}
     37 #
     38 # ROOTBIN=        ${ROOT}${CFGBIN}
     39 # ROOTMAN1=       ${ROOT}${CFGMAN1}
     40 #
     41 # These directories are added in Targetdirs in usr/src
     42 #
     43 # ROOT_IRC_DIR=${ROOT}/${CFGPREFIX}/share/irc
     44 # ROOT_SCRIPT=${ROOT_IRC_DIR}/script
     45 # ROOT_HELP=${ROOT_IRC_DIR}/help
     46 #
     47 
     48 #
     49 # set base information
     50 #
     51 CFGPREFIX=/usr
     52 CFGBIN=${CFGPREFIX}/bin
     53 CFGMAN=${CFGPREFIX}/share/man
     54 CFGMAN1=${CFGMAN}/man1
     55 
     56 ROOTBIN=${ROOT}${CFGBIN}
     57 ROOTMAN1=${ROOT}${CFGMAN1}
     58 
     59 ROOT_IRC_DIR=${ROOT}/${CFGPREFIX}/share/irc
     60 ROOT_SCRIPT=${ROOT_IRC_DIR}/script
     61 ROOT_HELP=${ROOT_IRC_DIR}/help
     62 
     63 VERS=20060725
     64 PKGVERS=ircii-${VERS}
     65 TOPDIR=$PWD/${PKGVERS}
     66 
     67 . ${SRC}/tools/install.subr
     68 
     69 #
     70 # populate man page
     71 #
     72 
     73 cd ${TOPDIR}/doc
     74 
     75 MANSCRIPT=../../sunman-stability
     76 _install M ircII.1 ${ROOTMAN1}/ircII.1 444
     77 _install L ../../../share/man/man1/ircII.1 ${ROOTMAN1}/irc.1 444
     78 
     79 
     80 #
     81 # populate scripts 
     82 #
     83 cd ${TOPDIR}/script
     84 
     85 tar -cf - . | ( cd ${ROOT_SCRIPT}; tar -xf - )
     86 find ${ROOT_SCRIPT} -type f -print | xargs chmod 555
     87 chmod 755 ${ROOT_SCRIPT}
     88 
     89 #
     90 # populate help files 
     91 #
     92 cd ${TOPDIR}/help
     93 
     94 tar -cf - . | ( cd ${ROOT_HELP}; tar -xf - )
     95 find ${ROOT_HELP} -type d -print | xargs chmod 755
     96 find ${ROOT_HELP} -type f -print | xargs chmod 444
     97 
     98 
     99 #
    100 # populate bins
    101 #
    102 cd ${TOPDIR}
    103 
    104 _install E irc ${ROOTBIN}/irc 555
    105 _install E ircio ${ROOTBIN}/ircio 555
    106 _install E ircflush ${ROOTBIN}/ircflush 555
    107 _install E wserv ${ROOTBIN}/wserv 555
    108 
    109 exit 0
    110