usr/src/cmd/webmin/Makefile.sfw
changeset 10 612517e396e0
parent 0 b34509ac961f
child 74 fd34810c2c84
equal deleted inserted replaced
9:502b128296a2 10:612517e396e0
    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 2008 Sun Microsystems, Inc.  All rights reserved.
    22 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
    23 # Use is subject to license terms.
    23 # Use is subject to license terms.
    24 #
    24 #
    25 #ident	"@(#)Makefile.sfw	1.12	08/02/09 SMI"
    25 #ident	"@(#)Makefile.sfw	1.13	10/03/11 SMI"
    26 #
    26 #
    27 # Webmin is a CGI Web-based administrration tool for Unix.  All files
    27 # 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.
    28 # 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
    29 # 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.
    30 # is to unzip the distribution and copy it to the proto area.
    36 REL	:sh= cat Version
    36 REL	:sh= cat Version
    37 VER	= webmin-$(REL)
    37 VER	= webmin-$(REL)
    38 PATCH	= webmin-patch-$(REL).tar.gz
    38 PATCH	= webmin-patch-$(REL).tar.gz
    39 ETC	= etc
    39 ETC	= etc
    40 SSLEAYVER = Net_SSLeay.pm-1.30
    40 SSLEAYVER = Net_SSLeay.pm-1.30
    41 AUTHENVER = Authen-PAM-0.14
    41 AUTHENVER = Authen-PAM-0.16
    42 RBACVER   = Authen-SolarisRBAC-0.1
    42 RBACVER   = Authen-SolarisRBAC-0.1
    43 IOTTYVER  = IO-Tty-1.02
    43 IOTTYVER  = IO-Tty-1.02
    44 PERL_MODS = $(SSLEAYVER) $(AUTHENVER) $(RBACVER) $(IOTTYVER)
    44 PERL_MODS = $(SSLEAYVER) $(AUTHENVER) $(RBACVER) $(IOTTYVER)
    45 PERLMOD_CS = $(SSLEAYVER)/config.status $(AUTHENVER)/config.status $(RBACVER)/config.status $(IOTTYVER)/config.status
    45 PERLMOD_CS = $(SSLEAYVER)/config.status $(AUTHENVER)/config.status $(RBACVER)/config.status $(IOTTYVER)/config.status
    46 # SSLDIR	=$(ROOT)/usr/sfw
       
    47 SSLDIR	= /usr/sfw
    46 SSLDIR	= /usr/sfw
    48 PERLMOD	= usr/sfw/lib/webmin/perlmod
    47 PERLMOD	= usr/sfw/lib/webmin/perlmod
    49 PERL	= /usr/perl5/bin/perl
    48 PERL	= /usr/perl5/bin/perl
    50 
    49 
    51 all: $(VER)/config.status $(PERLMOD_CS)
    50 all: $(VER)/config.status $(PERLMOD_CS)
    58 #
    57 #
    59 # After extracting the archive, set reasonable permissions.  These
    58 # After extracting the archive, set reasonable permissions.  These
    60 # should proper in the archive, but best to be sure.
    59 # should proper in the archive, but best to be sure.
    61 $(VER)/config.status: $(VER).tar.gz
    60 $(VER)/config.status: $(VER).tar.gz
    62 	gzip -dc $(VER).tar.gz | $(GTAR) xpf - --no-same-owner
    61 	gzip -dc $(VER).tar.gz | $(GTAR) xpf - --no-same-owner
    63 	find sunjds \( -name SCCS -prune \) -o -print | cpio -pdumv $(VER)
       
    64 	# uncompress the UIRB theme.  This comes as a Webmin addon, so it
       
    65 	# needs to be applied here
       
    66 	cd $(VER); gzip -dc ../uirb-theme.wbm.gz | $(GTAR) xpf - --no-same-owner
       
    67 	cp misc/*.sh misc/start ${VER}
    62 	cp misc/*.sh misc/start ${VER}
    68 	chmod ug+x ${VER}/start ${VER}/*.sh
    63 	chmod ug+x ${VER}/start ${VER}/*.sh
    69 	if [ -f $(PATCH) ]; then \
    64 	if [ -f $(PATCH) ]; then \
    70 		gzip -dc $(PATCH) | $(GTAR) xf - --no-same-owner \
    65 		gzip -dc $(PATCH) | $(GTAR) xf - --no-same-owner \
    71 		    --directory=$(VER) ;\
    66 		    --directory=$(VER) ;\
   144 # The resultants (proto_usr, proto_root) are intended to be
   139 # The resultants (proto_usr, proto_root) are intended to be
   145 # put in SUNWwebminr/SUNWwebminu prototype_com files.
   140 # put in SUNWwebminr/SUNWwebminu prototype_com files.
   146 # This is intended to be run after a make install.
   141 # This is intended to be run after a make install.
   147 prototype:
   142 prototype:
   148 	(cd $(ROOT); pkgproto usr/sfw/lib/webmin | \
   143 	(cd $(ROOT); pkgproto usr/sfw/lib/webmin | \
   149 	    sed 's@none @none usr/sfw/lib/webmin/@' | \
       
   150 	    nawk '{printf("%s %s %s %s root bin\n", $$1, $$2, $$3, $$4);}' | \
   144 	    nawk '{printf("%s %s %s %s root bin\n", $$1, $$2, $$3, $$4);}' | \
   151 	    sort +2 -3 | grep -v config.status ) > ../proto_usr
   145 	    sort +2 -3 | grep -v config.status ) > proto_usr
   152 	(cd $(ROOT); pkgproto etc/webmin | \
   146 	(cd $(ROOT); pkgproto etc/webmin | \
   153 	    sed 's@none @none etc/webmin/@' | \
       
   154 	    nawk '{printf("%s %s %s %s root bin\n", $$1, $$2, $$3, $$4);}' | \
   147 	    nawk '{printf("%s %s %s %s root bin\n", $$1, $$2, $$3, $$4);}' | \
   155 	    sed 's@f none @v preserve @' | \
   148 	    sed 's@f none @v preserve @' | \
   156 	    sort +2 -3 ) > ../proto_root
   149 	    sort +2 -3 ) > proto_root
   157 
   150 
   158 # The 'fixperl' target is used to insert the proper perl path into the
   151 # The 'fixperl' target is used to insert the proper perl path into the
   159 # target.  This is here as a secondary/development tool, as it's
   152 # target.  This is here as a secondary/development tool, as it's
   160 # intended use is when unarchiving the Webmin tarball.
   153 # intended use is when unarchiving the Webmin tarball.
   161 fixperl:
   154 fixperl: