equal
deleted
inserted
replaced
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 |
26 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
27 |
27 |
28 COMPONENT_NAME= proftpd |
28 COMPONENT_NAME= proftpd |
54 # enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow. |
54 # enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow. |
55 # Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5' |
55 # Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5' |
56 # instead of 'e'. |
56 # instead of 'e'. |
57 IPS_COMPONENT_VERSION= $(COMPONENT_VERSION) |
57 IPS_COMPONENT_VERSION= $(COMPONENT_VERSION) |
58 |
58 |
59 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP= -DHAVE__GETGRPSBYMEMBER" |
59 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP= -DHAVE__GETGRPSBYMEMBER -D_SOLARIS_DTRACE" |
60 # Force immediate binding because of chroot(). |
60 # Force immediate binding because of chroot(). |
61 CONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm" |
61 CONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm" |
62 CONFIGURE_OPTIONS += install_user=`id -nu` |
62 CONFIGURE_OPTIONS += install_user=`id -nu` |
63 CONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '` |
63 CONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '` |
64 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
64 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
73 CONFIGURE_OPTIONS += --disable-static |
73 CONFIGURE_OPTIONS += --disable-static |
74 CONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv |
74 CONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv |
75 CONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss |
75 CONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss |
76 CONFIGURE_OPTIONS += --enable-buffer-size=16384 |
76 CONFIGURE_OPTIONS += --enable-buffer-size=16384 |
77 |
77 |
78 # Copy Solaris modules and GSSAPI modules to proftpd source tree |
78 # Copy Solaris modules and GSSAPI modules to proftpd source tree. |
79 COMPONENT_PRE_CONFIGURE_ACTION = \ |
79 COMPONENT_PRE_CONFIGURE_ACTION = \ |
80 ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \ |
80 ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \ |
81 $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \ |
81 $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \ |
82 cd $(BUILD_DIR) ; \ |
82 cd $(BUILD_DIR) ; \ |
83 $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \ |
83 $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \ |
85 ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \ |
85 ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \ |
86 $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \ |
86 $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \ |
87 $(CP) mod_gss.h $(SOURCE_DIR)/include ; \ |
87 $(CP) mod_gss.h $(SOURCE_DIR)/include ; \ |
88 $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \ |
88 $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \ |
89 $(CLONEY) $(SOURCE_DIR) $(@D)) |
89 $(CLONEY) $(SOURCE_DIR) $(@D)) |
|
90 |
|
91 # Build Solaris dtrace object files and copy to proftpd build tree. |
|
92 COMPONENT_PRE_BUILD_ACTION = \ |
|
93 (cd dtrace && make CP="$(CP)" CC="$(CC)" BD="$(BUILD_DIR)/$(MACH32)") |
90 |
94 |
91 # proftpd configure and build is not ready for run out of the source tree |
95 # proftpd configure and build is not ready for run out of the source tree |
92 CONFIGURE_SCRIPT = $(@D)/configure |
96 CONFIGURE_SCRIPT = $(@D)/configure |
93 |
97 |
94 # Do not apply the standard license transforms for this component. The |
98 # Do not apply the standard license transforms for this component. The |