|
1 # |
|
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 # |
|
23 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 include ../../make-rules/shared-macros.mk |
|
27 |
|
28 COMPONENT_NAME= proftpd |
|
29 COMPONENT_VERSION= 1.3.3 |
|
30 COMPONENT_SUBVERSION= e |
|
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)$(COMPONENT_SUBVERSION) |
|
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
33 COMPONENT_ARCHIVE_HASH= sha1:823e94c24447936ade6ae3948fe638077e0ba933 |
|
34 COMPONENT_ARCHIVE_URL= ftp://ftp.proftpd.org/distrib/source/$(COMPONENT_ARCHIVE) |
|
35 |
|
36 # mod_gss subcomponent |
|
37 COMPONENT_NAME_1= mod_gss |
|
38 COMPONENT_VERSION_1= $(COMPONENT_VERSION) |
|
39 COMPONENT_SRC_1= $(COMPONENT_NAME_1)-$(COMPONENT_VERSION_1) |
|
40 COMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz |
|
41 COMPONENT_ARCHIVE_HASH_1= sha1:b17015a49e41ee643f1891940f9f3f8a7d77e522 |
|
42 COMPONENT_ARCHIVE_URL_1= http://downloads.sourceforge.net/gssmod/$(COMPONENT_ARCHIVE_1) |
|
43 |
|
44 include ../../make-rules/prep.mk |
|
45 include ../../make-rules/configure.mk |
|
46 include ../../make-rules/ips.mk |
|
47 |
|
48 # IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not |
|
49 # enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow. |
|
50 # Because the IPS_COMPONENT_VERSION cannot contain letters we used '.0.5' |
|
51 # instead of 'e'. |
|
52 IPS_COMPONENT_VERSION= $(COMPONENT_VERSION).0.5 |
|
53 |
|
54 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/kerberosv5 -DHAVE_KRB5_H=1 -DKRB5_DLLIMP=" |
|
55 CONFIGURE_OPTIONS += LDFLAGS="-lbsm" |
|
56 CONFIGURE_OPTIONS += install_user=$(LOGNAME) |
|
57 CONFIGURE_OPTIONS += install_group=`groups | cut -f 1 -d ' '` |
|
58 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
|
59 CONFIGURE_OPTIONS += --localstatedir=/var/run |
|
60 CONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/proftpd |
|
61 CONFIGURE_OPTIONS += --enable-ipv6 |
|
62 CONFIGURE_OPTIONS += --enable-ctrls |
|
63 CONFIGURE_OPTIONS += --enable-facl |
|
64 CONFIGURE_OPTIONS += --enable-nls |
|
65 CONFIGURE_OPTIONS += --enable-dso |
|
66 CONFIGURE_OPTIONS += --enable-openssl |
|
67 CONFIGURE_OPTIONS += --disable-static |
|
68 CONFIGURE_OPTIONS += --with-modules=mod_solaris_audit:mod_solaris_priv |
|
69 CONFIGURE_OPTIONS += --with-shared=mod_facl:mod_wrap:mod_tls:mod_auth_gss:mod_gss |
|
70 |
|
71 # Copy Solaris modules and GSSAPI modules to proftpd source tree |
|
72 COMPONENT_PRE_CONFIGURE_ACTION = \ |
|
73 ($(CP) mod_solaris_audit.c $(SOURCE_DIR)/contrib ; \ |
|
74 $(CP) mod_solaris_priv.c $(SOURCE_DIR)/contrib ; \ |
|
75 cd $(BUILD_DIR) ; \ |
|
76 $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) ; \ |
|
77 cd $(COMPONENT_SRC_1) ; \ |
|
78 ./configure CC="$(CC)" CFLAGS="-I/usr/include/kerberosv5" ; \ |
|
79 $(CP) mod_gss.c mod_auth_gss.c $(SOURCE_DIR)/contrib ; \ |
|
80 $(CP) mod_gss.h $(SOURCE_DIR)/include ; \ |
|
81 $(CP) mod_gss.html $(SOURCE_DIR)/doc/contrib ; \ |
|
82 $(CLONEY) $(SOURCE_DIR) $(@D)) |
|
83 |
|
84 # proftpd configure and build is not ready for run out of the source tree |
|
85 CONFIGURE_SCRIPT = $(@D)/configure |
|
86 |
|
87 build: $(BUILD_32) |
|
88 |
|
89 install: $(INSTALL_32) |
|
90 |
|
91 test: $(NO_TESTS) |
|
92 # libcheck and specific Perl Test::Unit version is required for full test |
|
93 |
|
94 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
95 |
|
96 include ../../make-rules/depend.mk |