David Stes
2024-03-31 8cdd197ba643eb2608c5aab87567625bb9336cee
commit | author | age
cac0ac 1 #
JK 2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
6 #
7 # A full copy of the text of the CDDL should have accompanied this
8 # source.  A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
10 #
11
12 #
a2d3e3 13 # Copyright 2016-2021 Jim Klimov
e37526 14 # Copyright 2022 Till Wegmueller
cac0ac 15 #
JK 16 include ../../../make-rules/shared-macros.mk
17
18 # NOTE: Before bumping to the new core version, take a look at
19 #   https://jenkins.io/changelog/ (weekly)
20 #   https://jenkins.io/changelog-stable/ (LTS)
21 # for "weather report" (user votes on good/bad state of the release).
22 # At some point it may make sense to deliver packaged LTS releases,
23 # and the initial recipe supports that notion already just in case,
24 # but no LTS issued so far includes updated libzfs.jar (v0.8+ needed).
25 # Note that for LTS it would make sense to define indexed "additional
26 # source" variables below, see e.g. docbook for inspiration.
27
1cd679 28 COMPONENT_NAME=                jenkins
AW 29 JENKINS_RELEASE=            weekly
cac0ac 30 COMPONENT_MAJOR_VERSION=    2
c725f2 31 COMPONENT_MINOR_VERSION=    451
AW 32 COMPONENT_ARCHIVE_HASH=        sha256:0154893dbf2a3e29851cb5246a2723e8aba030717f4ab65263c039a83865245d
cac0ac 33 # See $(COMPONENT_ARCHIVE_URL).sha256 e.g. for current weekly release, run
JK 34 #   wget -O - http://mirrors.jenkins-ci.org/war/latest/jenkins.war.sha256
35 # or for LTS
36 #   wget -O - http://mirrors.jenkins.io/war-stable/latest/jenkins.war.sha256
37
1cd679 38 COMPONENT_VERSION=            $(COMPONENT_MAJOR_VERSION).$(COMPONENT_MINOR_VERSION)
AW 39 COMPONENT_ARCHIVE=            $(COMPONENT_NAME)-$(JENKINS_RELEASE)-$(COMPONENT_VERSION).war
40 COMPONENT_FMRI=                developer/jenkins-core-$(JENKINS_RELEASE)
cac0ac 41 COMPONENT_CLASSIFICATION=    Development/Java
1cd679 42 COMPONENT_SRC=                $(COMPONENT_NAME)-$(COMPONENT_VERSION)
AW 43 COMPONENT_PROJECT_URL=        https://jenkins.io/changelog/
2dc049 44 COMPONENT_ARCHIVE_URL=        https://get.jenkins.io/war/$(COMPONENT_VERSION)/jenkins.war
1cd679 45 COMPONENT_LICENSE=            MIT
AW 46 COMPONENT_LICENSE_FILE=     jenkins.license
47 COMPONENT_SUMMARY=            Jenkins is a Java-based CI automation server
cac0ac 48
JK 49 # Note: for the core, we only download a WAR - no unpacking, no building...
50 include $(WS_MAKE_RULES)/prep-download.mk
51 include $(WS_MAKE_RULES)/justmake.mk
52 include $(WS_MAKE_RULES)/ips.mk
53
54 PATH=$(PATH.gnu)
55
56 CLEAN_PATHS += $(SOURCE_DIR)
57
58 download::
59
60 $(SOURCE_DIR)/.prep:    download
61     $(COMPONENT_PREP_ACTION)
62     $(TOUCH) $@
63
64 prep::  $(SOURCE_DIR)/.prep
65
66 clean::
67     $(PRE_CLEAN_ACTION)
68     $(RM) -r $(CLEAN_PATHS)
69
70 clobber::   clean
71     $(RM) -r $(CLOBBER_PATHS)
72
73 COMPONENT_PREP_ACTION = ( $(MKDIR) $(@D)/ && ln -sfr $(USERLAND_ARCHIVES)/$(COMPONENT_ARCHIVE) $(COMPONENT_DIR)/files/Makefile $(@D)/ )
74
75 # This, and the symlinks in the custom Makefile, save quite a bit
76 # of storage overhead (do not need to copy the WAR 3 extra times)
77 COMPONENT_COPY_ACTION = ( $(CLONEY) $(SOURCE_DIR)/ $(@D)/ )
78
79 COMPONENT_INSTALL_ENV += JENKINS_VERSION=$(COMPONENT_VERSION)
e57f84 80 COMPONENT_INSTALL_ENV += JENKINS_RELEASE=$(JENKINS_RELEASE)
cac0ac 81
JK 82 build: $(BUILD_32)
83
84 install: $(INSTALL_32)
85
86 test: $(NO_TESTS)
87
976311 88 # Auto-generated dependencies
e37526 89 REQUIRED_PACKAGES += runtime/java/openjdk17