components/proftpd/Makefile
changeset 5682 94c0ca64c022
parent 5616 44893e18e88a
child 5706 87efc4971896
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 BUILD_BITS= 32
    26 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    27 
    27 
    28 COMPONENT_NAME=		proftpd
    28 COMPONENT_NAME=		proftpd
    29 COMPONENT_VERSION=	1.3.5
    29 COMPONENT_VERSION=	1.3.5
    30 COMPONENT_SUBVERSION=	 
    30 COMPONENT_SUBVERSION=	 
    47 COMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
    47 COMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1)
    48 
    48 
    49 TPNO_PROFTPD=		17783
    49 TPNO_PROFTPD=		17783
    50 TPNO_MOD_GSS=		13480
    50 TPNO_MOD_GSS=		13480
    51 
    51 
    52 include $(WS_MAKE_RULES)/prep.mk
    52 # libcheck and specific Perl Test::Unit version is required for full test
    53 include $(WS_MAKE_RULES)/configure.mk
    53 TEST_TARGET= $(SKIP_TEST)
    54 include $(WS_MAKE_RULES)/ips.mk
    54 include $(WS_MAKE_RULES)/common.mk
    55 
    55 
    56 # IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
    56 # IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
    57 # enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
    57 # enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
    58 # Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
    58 # Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5'
    59 # instead of 'e'.
    59 # instead of 'e'.
    60 IPS_COMPONENT_VERSION=  $(COMPONENT_VERSION)
    60 IPS_COMPONENT_VERSION=  $(COMPONENT_VERSION)
    61 
    61 
    62 # Remove -D_POSIX_PTHREAD_SEMANTICS and this comment after move to S12_45.
    62 CFLAGS += -I$(USRINCDIR)/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP= -DHAVE__GETGRPSBYMEMBER -D_SOLARIS_DTRACE
    63 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP= -DHAVE__GETGRPSBYMEMBER -D_POSIX_PTHREAD_SEMANTICS -D_SOLARIS_DTRACE"
       
    64 # Force immediate binding because of chroot().
    63 # Force immediate binding because of chroot().
    65 CONFIGURE_OPTIONS +=	LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
    64 CONFIGURE_OPTIONS +=	LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm"
    66 CONFIGURE_OPTIONS +=	install_user=`id -nu`
    65 CONFIGURE_OPTIONS +=	install_user=`id -nu`
    67 CONFIGURE_OPTIONS +=	install_group=`groups | cut -f 1 -d ' '`
    66 CONFIGURE_OPTIONS +=	install_group=`groups | cut -f 1 -d ' '`
    68 CONFIGURE_OPTIONS +=	--sysconfdir=$(ETCDIR)
    67 CONFIGURE_OPTIONS +=	--sysconfdir=$(ETCDIR)
    69 CONFIGURE_OPTIONS +=	--localstatedir=/var/run
    68 CONFIGURE_OPTIONS +=	--localstatedir=$(VARDIR)/run
    70 CONFIGURE_OPTIONS +=	--libexecdir=$(USRLIBDIR)/proftpd
    69 CONFIGURE_OPTIONS +=	--libexecdir=$(USRLIBDIR)/proftpd
    71 CONFIGURE_OPTIONS +=	--enable-ipv6
    70 CONFIGURE_OPTIONS +=	--enable-ipv6
    72 CONFIGURE_OPTIONS +=	--enable-ctrls
    71 CONFIGURE_OPTIONS +=	--enable-ctrls
    73 CONFIGURE_OPTIONS +=	--enable-facl
    72 CONFIGURE_OPTIONS +=	--enable-facl
    74 CONFIGURE_OPTIONS +=	--enable-nls
    73 CONFIGURE_OPTIONS +=	--enable-nls
   102 # Do not apply the standard license transforms for this component. The
   101 # Do not apply the standard license transforms for this component. The
   103 # license actions in the proftpd.p5m file are already tagged with the
   102 # license actions in the proftpd.p5m file are already tagged with the
   104 # attributes.
   103 # attributes.
   105 LICENSE_TRANSFORMS =
   104 LICENSE_TRANSFORMS =
   106 
   105 
   107 configure:	$(CONFIGURE_32)
       
   108 
       
   109 build:		$(BUILD_32)
       
   110 
       
   111 install:	$(INSTALL_32)
       
   112 
       
   113 test:		$(NO_TESTS)
       
   114 
       
   115 system-test:    $(NO_TESTS)
       
   116 # libcheck and specific Perl Test::Unit version is required for full test
       
   117 
       
   118 
       
   119 REQUIRED_PACKAGES += library/security/openssl
   106 REQUIRED_PACKAGES += library/security/openssl
   120 REQUIRED_PACKAGES += service/security/kerberos-5
   107 REQUIRED_PACKAGES += service/security/kerberos-5
   121 REQUIRED_PACKAGES += shell/ksh93
   108 REQUIRED_PACKAGES += shell/ksh93
   122 REQUIRED_PACKAGES += system/core-os
   109 REQUIRED_PACKAGES += system/core-os
   123 REQUIRED_PACKAGES += system/library
       
   124 REQUIRED_PACKAGES += system/library/security/gss
   110 REQUIRED_PACKAGES += system/library/security/gss
   125 REQUIRED_PACKAGES += system/network
   111 REQUIRED_PACKAGES += system/network