Print this page
Bump Apache dependency to Apache 2


   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #

  22 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 
  26 LIBRARY =               mod_ipp.a
  27 VERS =
  28 OBJECTS = mod_ipp.o
  29 
  30 include ../../Makefile.lib
  31 include ../../Makefile.rootfs
  32 
  33 APACHEMODDIR =  $(ROOT)/usr/apache/libexec
  34 APACHECONFDIR = $(ROOT)/etc/apache
  35 LISTENERDIR =   $(ROOT)/var/lp/ipp-listener
  36 
  37 ROOTDIRS =      $(ROOT)/usr/apache $(APACHEMODDIR) $(APACHECONFDIR) \
  38                 $(ROOT)/var/lp $(LISTENERDIR)
  39 
  40 $(ROOT)/var/lp:=        DIRMODE = 775
  41 $(ROOT)/var/lp:=        FILEMODE = 775
  42 
  43 LIBS =                  $(DYNLIB)
  44 
  45 SRCS = $(OBJECTS:%.o = %.c)
  46 
  47 
  48 CFLAGS +=       $(CCVERBOSE)

  49 CPPFLAGS +=     -I../libipp-listener/common
  50 CPPFLAGS +=     -I../libipp-core/common
  51 CPPFLAGS +=     -I/usr/apache/include


  52 CPPFLAGS +=     -DEAPI
  53 ZDEFS =         $(ZNODEFS)
  54 
  55 MAPFILES =      mapfile
  56 
  57 LDLIBS +=       -lipp-listener -lipp-core -lpapi -lc
  58 
  59 #       SMF manifest
  60 MANIFEST=       ipp-listener.xml
  61 ROOTMANIFESTDIR=        $(ROOT)/lib/svc/manifest/application/print
  62 ROOTMANIFEST=           $(MANIFEST:%=$(ROOTMANIFESTDIR)/%)
  63 $(ROOTMANIFEST)         := FILEMODE= 444
  64 
  65 #       Apache module
  66 $(APACHEMODDIR)/$(LIBLINKS):    $(ROOTDIRS)
  67 
  68 #       Apache config
  69 APACHECONFFILE= $(APACHECONFDIR)/httpd-standalone-ipp.conf
  70 $(APACHECONFFILE)         := FILEMODE= 644
  71 LISTENERFILE=   $(LISTENERDIR)/index.html




   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2012 Nexenta Systems, Inc.  All rights reserved.
  23 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 
  27 LIBRARY =       mod_ipp.a
  28 VERS =
  29 OBJECTS =       mod_ipp.o
  30 
  31 include ../../Makefile.lib
  32 include ../../Makefile.rootfs
  33 
  34 APACHEMODDIR =  $(ROOT)/usr/apache2/2.2/libexec
  35 APACHECONFDIR = $(ROOT)/etc/apache2/2.2
  36 LISTENERDIR =   $(ROOT)/var/lp/ipp-listener
  37 
  38 ROOTDIRS =      $(ROOT)/usr/apache2/2.2 $(APACHEMODDIR) $(APACHECONFDIR) \
  39                 $(ROOT)/var/lp $(LISTENERDIR)
  40 
  41 $(ROOT)/var/lp:=        DIRMODE = 775
  42 $(ROOT)/var/lp:=        FILEMODE = 775
  43 
  44 LIBS =                  $(DYNLIB)
  45 
  46 SRCS = $(OBJECTS:%.o = %.c)
  47 
  48 APR_INC.cmd =   apr-1-config --includes
  49 APU_INC.cmd =   apu-1-config --includes
  50 CFLAGS +=       $(CCVERBOSE) -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT
  51 CPPFLAGS +=     -I../libipp-listener/common
  52 CPPFLAGS +=     -I../libipp-core/common
  53 CPPFLAGS +=     -I/usr/apache2/2.2/include
  54 CPPFLAGS +=     $(APR_INC.cmd:sh)
  55 CPPFLAGS +=     $(APU_INC.cmd:sh)
  56 CPPFLAGS +=     -DEAPI
  57 ZDEFS =         $(ZNODEFS)
  58 
  59 MAPFILES =      mapfile
  60 
  61 LDLIBS +=       -lipp-listener -lipp-core -lpapi -lc
  62 
  63 #       SMF manifest
  64 MANIFEST=       ipp-listener.xml
  65 ROOTMANIFESTDIR=        $(ROOT)/lib/svc/manifest/application/print
  66 ROOTMANIFEST=           $(MANIFEST:%=$(ROOTMANIFESTDIR)/%)
  67 $(ROOTMANIFEST)         := FILEMODE= 444
  68 
  69 #       Apache module
  70 $(APACHEMODDIR)/$(LIBLINKS):    $(ROOTDIRS)
  71 
  72 #       Apache config
  73 APACHECONFFILE= $(APACHECONFDIR)/httpd-standalone-ipp.conf
  74 $(APACHECONFFILE)         := FILEMODE= 644
  75 LISTENERFILE=   $(LISTENERDIR)/index.html