16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
21 |
22 # |
22 # |
23 |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 BUILD_BITS= 64 |
24 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
25 |
27 |
26 COMPONENT_NAME= cvs |
28 COMPONENT_NAME= cvs |
27 COMPONENT_VERSION= 1.12.13 |
29 COMPONENT_VERSION= 1.12.13 |
28 COMPONENT_PROJECT_URL= http://www.nongnu.org/cvs/ |
30 COMPONENT_PROJECT_URL= http://www.nongnu.org/cvs/ |
29 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
31 COMPONENT_ARCHIVE_HASH= \ |
32 COMPONENT_ARCHIVE_HASH= \ |
32 sha256:78853613b9a6873a30e1cc2417f738c330e75f887afdaf7b3d0800cb19ca515e |
33 sha256:78853613b9a6873a30e1cc2417f738c330e75f887afdaf7b3d0800cb19ca515e |
33 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/non-gnu/cvs/source/feature/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
34 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/non-gnu/cvs/source/feature/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
34 COMPONENT_BUGDB= utility/cvs |
|
35 |
35 |
36 TPNO= 6323 |
36 TPNO= 6323 |
37 |
37 |
38 include $(WS_MAKE_RULES)/prep.mk |
38 SYSTEM_TEST_TARGET= $(SYSTEM_TEST_64) |
39 include $(WS_MAKE_RULES)/configure.mk |
39 include $(WS_MAKE_RULES)/common.mk |
40 include $(WS_MAKE_RULES)/ips.mk |
|
41 |
40 |
42 CFLAGS += -D__ATTRIBUTE_DISABLED |
41 CFLAGS += -D__ATTRIBUTE_DISABLED |
43 CONFIGURE_OPTIONS += --with-external-zlib |
42 CONFIGURE_OPTIONS += --with-external-zlib |
44 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
45 |
|
46 # Enable ASLR for this component |
|
47 ASLR_MODE = $(ASLR_ENABLE) |
|
48 |
43 |
49 # need gnu grep |
44 # need gnu grep |
50 COMPONENT_TEST_ENV += PATH=$(GNUBIN):$(PATH) |
45 COMPONENT_TEST_ENV += PATH=$(GNUBIN):$(PATH) |
51 # "check" is not working yet. It's asking for a password. |
46 # "check" is not working yet. It's asking for a password. |
52 COMPONENT_TEST_TARGETS = localcheck |
47 COMPONENT_TEST_TARGETS = localcheck |
53 |
48 |
54 # mimic localcheck from src/Makefile |
49 # mimic localcheck from src/Makefile |
55 COMPONENT_SYSTEM_TEST_DIR = $(SOURCE_DIR)/src |
50 COMPONENT_SYSTEM_TEST_DIR = $(SOURCE_DIR)/src |
56 COMPONENT_SYSTEM_TEST_ENV += PATH=$(GNUBIN):$(PATH) |
51 COMPONENT_SYSTEM_TEST_ENV += PATH=$(GNUBIN):$(PATH) |
57 COMPONENT_SYSTEM_TEST_CMD = ./sanity.sh |
52 COMPONENT_SYSTEM_TEST_CMD = ./sanity.sh |
58 COMPONENT_SYSTEM_TEST_ARGS = /usr/bin/cvs |
53 COMPONENT_SYSTEM_TEST_ARGS = $(USRBINDIR)/cvs |
59 COMPONENT_SYSTEM_TEST_TARGETS = |
54 COMPONENT_SYSTEM_TEST_TARGETS = |
60 |
55 |
61 # extract just the final results |
56 # extract just the final results |
62 # delete make lines |
57 # delete make lines |
63 # delete cp lines |
58 # delete cp lines |
64 COMPONENT_TEST_TRANSFORMS += \ |
59 COMPONENT_TEST_TRANSFORMS += \ |
65 '-e "/^This/,/^make/!d" ' \ |
60 '-e "/^This/,/^make/!d" ' \ |
66 '-e "/^[mM]ake/d" ' \ |
61 '-e "/^[mM]ake/d" ' \ |
67 '-e "/^cp.*/d" ' |
62 '-e "/^cp.*/d" ' |
68 |
63 |
69 configure: $(CONFIGURE_64) |
|
70 |
|
71 build: $(BUILD_64) |
|
72 |
|
73 install: $(INSTALL_64) |
|
74 |
|
75 test: $(TEST_64) |
|
76 |
|
77 system-test: $(SYSTEM_TEST_64) |
|
78 |
|
79 |
|
80 REQUIRED_PACKAGES += library/zlib |
64 REQUIRED_PACKAGES += library/zlib |
81 REQUIRED_PACKAGES += system/library |
|