usr/src/cmd/webmin/Makefile.sfw
changeset 74 fd34810c2c84
parent 10 612517e396e0
equal deleted inserted replaced
73:73cc228b67a6 74:fd34810c2c84
    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 2010 Sun Microsystems, Inc.  All rights reserved.
    22 # Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
    23 # Use is subject to license terms.
       
    24 #
    23 #
    25 #ident	"@(#)Makefile.sfw	1.13	10/03/11 SMI"
    24 #ident	"@(#)Makefile.sfw	1.14	11/03/16 SMI"
    26 #
    25 #
    27 # Webmin is a CGI Web-based administrration tool for Unix.  All files
    26 # Webmin is a CGI Web-based administrration tool for Unix.  All files
    28 # in this distribution are Perl files, and are both source and executable.
    27 # in this distribution are Perl files, and are both source and executable.
    29 # As the distribution is already ready to execute, all that is necessary
    28 # As the distribution is already ready to execute, all that is necessary
    30 # is to unzip the distribution and copy it to the proto area.
    29 # is to unzip the distribution and copy it to the proto area.
    35 README	= README.SUNWwebmin
    34 README	= README.SUNWwebmin
    36 REL	:sh= cat Version
    35 REL	:sh= cat Version
    37 VER	= webmin-$(REL)
    36 VER	= webmin-$(REL)
    38 PATCH	= webmin-patch-$(REL).tar.gz
    37 PATCH	= webmin-patch-$(REL).tar.gz
    39 ETC	= etc
    38 ETC	= etc
    40 SSLEAYVER = Net_SSLeay.pm-1.30
       
    41 AUTHENVER = Authen-PAM-0.16
    39 AUTHENVER = Authen-PAM-0.16
    42 RBACVER   = Authen-SolarisRBAC-0.1
    40 RBACVER   = Authen-SolarisRBAC-0.1
    43 IOTTYVER  = IO-Tty-1.02
    41 IOTTYVER  = IO-Tty-1.02
    44 PERL_MODS = $(SSLEAYVER) $(AUTHENVER) $(RBACVER) $(IOTTYVER)
    42 PERL_MODS = $(AUTHENVER) $(RBACVER) $(IOTTYVER)
    45 PERLMOD_CS = $(SSLEAYVER)/config.status $(AUTHENVER)/config.status $(RBACVER)/config.status $(IOTTYVER)/config.status
    43 PERLMOD_CS = $(AUTHENVER)/config.status $(RBACVER)/config.status $(IOTTYVER)/config.status
    46 SSLDIR	= /usr/sfw
    44 SSLDIR	= /usr/sfw
    47 PERLMOD	= usr/sfw/lib/webmin/perlmod
    45 PERLMOD	= usr/sfw/lib/webmin/perlmod
    48 PERL	= /usr/perl5/bin/perl
    46 PERL	= /usr/perl5/bin/perl
    49 
    47 
    50 all: $(VER)/config.status $(PERLMOD_CS)
    48 all: $(VER)/config.status $(PERLMOD_CS)
    71 	# This _MUST_ be done after any patching that might put bad
    69 	# This _MUST_ be done after any patching that might put bad
    72 	# paths into the patched files
    70 	# paths into the patched files
    73 	find $(VER) -name "*.cgi" -o -name "*.pl" | \
    71 	find $(VER) -name "*.cgi" -o -name "*.pl" | \
    74 		$(PERL) $(VER)/perlpath.pl $(PERL) -
    72 		$(PERL) $(VER)/perlpath.pl $(PERL) -
    75 	touch $(VER)/config.status
    73 	touch $(VER)/config.status
    76 
       
    77 $(SSLEAYVER)/config.status: $(SSLEAYVER).tar.gz
       
    78 	gzip -dc $(SSLEAYVER).tar.gz | $(GTAR) -xf - --no-same-owner
       
    79 	find $(SSLEAYVER) -type d -exec chmod 755 {} \;
       
    80 	cd $(SSLEAYVER); \
       
    81 	    env \
       
    82 		PATH=$(SFW_PATH)  \
       
    83 	        $(PERL) Makefile.PL $(SSLDIR) -- PREFIX=$(ROOT)/$(PERLMOD) \
       
    84 		    INSTALLARCHLIB=$(ROOT)/$(PERLMOD); \
       
    85 	    env \
       
    86 		PATH=$(SFW_PATH)  \
       
    87 	        $(MAKE); \
       
    88 	    touch config.status
       
    89 
    74 
    90 $(AUTHENVER)/config.status: $(AUTHENVER).tar.gz
    75 $(AUTHENVER)/config.status: $(AUTHENVER).tar.gz
    91 	gzip -dc $(AUTHENVER).tar.gz | $(GTAR) -xf - --no-same-owner
    76 	gzip -dc $(AUTHENVER).tar.gz | $(GTAR) -xf - --no-same-owner
    92 	cd $(AUTHENVER); \
    77 	cd $(AUTHENVER); \
    93 	    env \
    78 	    env \