20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 BUILD_BITS= 32 |
25 BUILD_BITS= 64 |
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= b |
30 COMPONENT_SUBVERSION= b |
60 |
60 |
61 CFLAGS += -I$(USRINCDIR)/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP= -DHAVE__GETGRPSBYMEMBER -D_SOLARIS_DTRACE |
61 CFLAGS += -I$(USRINCDIR)/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP= -DHAVE__GETGRPSBYMEMBER -D_SOLARIS_DTRACE |
62 ifeq ($(OS_VERSION), 5.11) |
62 ifeq ($(OS_VERSION), 5.11) |
63 CFLAGS += -D_POSIX_PTHREAD_SEMANTICS |
63 CFLAGS += -D_POSIX_PTHREAD_SEMANTICS |
64 endif |
64 endif |
|
65 LDFLAGS += -m$(BITS) |
|
66 LDFLAGS += -z guidance=nolazyload -z nolazyload -lbsm -z guidance=lazyload -z lazyload |
65 |
67 |
66 # Force immediate binding because of chroot(). |
68 # Force immediate binding because of chroot(). |
67 CONFIGURE_OPTIONS += LDFLAGS="-z guidance=nolazyload -z nolazyload -lbsm" |
|
68 CONFIGURE_OPTIONS += install_user=`id -nu` |
69 CONFIGURE_OPTIONS += install_user=`id -nu` |
69 CONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '` |
70 CONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '` |
70 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
71 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
71 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)/run |
72 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)/run |
72 CONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd |
73 CONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd/$(MACH64) |
73 CONFIGURE_OPTIONS += --enable-ipv6 |
74 CONFIGURE_OPTIONS += --enable-ipv6 |
74 CONFIGURE_OPTIONS += --enable-ctrls |
75 CONFIGURE_OPTIONS += --enable-ctrls |
75 CONFIGURE_OPTIONS += --enable-facl |
76 CONFIGURE_OPTIONS += --enable-facl |
76 CONFIGURE_OPTIONS += --enable-nls |
77 CONFIGURE_OPTIONS += --enable-nls |
77 CONFIGURE_OPTIONS += --enable-dso |
78 CONFIGURE_OPTIONS += --enable-dso |
94 $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \ |
95 $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \ |
95 $(CLONEY) $(SOURCE_DIR) $(@D)) |
96 $(CLONEY) $(SOURCE_DIR) $(@D)) |
96 |
97 |
97 # Build Solaris dtrace object files and copy to proftpd build tree. |
98 # Build Solaris dtrace object files and copy to proftpd build tree. |
98 COMPONENT_PRE_BUILD_ACTION = \ |
99 COMPONENT_PRE_BUILD_ACTION = \ |
99 (cd dtrace && make CP="$(CP)" CC="$(CC)" BD="$(BUILD_DIR)/$(MACH32)") |
100 (cd dtrace && make CP="$(CP)" CC="$(CC)" BD="$(BUILD_DIR)/$(MACH$(BITS))" BITS="$(BITS)") |
100 |
101 |
101 # proftpd configure and build is not ready for run out of the source tree |
102 # proftpd configure and build is not ready for run out of the source tree |
102 CONFIGURE_SCRIPT = $(@D)/configure |
103 CONFIGURE_SCRIPT = $(@D)/configure |
103 |
104 |
104 # Do not apply the standard license transforms for this component. The |
105 # Do not apply the standard license transforms for this component. The |