diff options
| author | Rene Ladan <rene@FreeBSD.org> | 2026-06-30 20:39:30 +0000 |
|---|---|---|
| committer | Rene Ladan <rene@FreeBSD.org> | 2026-06-30 20:39:54 +0000 |
| commit | 3b7e5394366c473e284c7ed17101d858d15f428a (patch) | |
| tree | 3c188b2ff527189ee34992cf470612d8f0760705 | |
| parent | ffd284aaf45f8686449e8d5c0b3aa4ba1e59e7ae (diff) | |
textproc/elasticsearch7: Remove expired port
2026-06-30 textproc/elasticsearch7: 7.x reached EoL on 15 Jan 2026 - use textproc/elasticsearch8
| -rw-r--r-- | MOVED | 1 | ||||
| -rw-r--r-- | textproc/Makefile | 1 | ||||
| -rw-r--r-- | textproc/elasticsearch7/Makefile | 115 | ||||
| -rw-r--r-- | textproc/elasticsearch7/distinfo | 3 | ||||
| -rw-r--r-- | textproc/elasticsearch7/files/elasticsearch.in | 128 | ||||
| -rw-r--r-- | textproc/elasticsearch7/files/patch-bin_elasticsearch-env | 26 | ||||
| -rw-r--r-- | textproc/elasticsearch7/files/patch-config_elasticsearch.yml | 22 | ||||
| -rw-r--r-- | textproc/elasticsearch7/files/patch-config_jvm.options | 15 | ||||
| -rw-r--r-- | textproc/elasticsearch7/files/pkg-message.in | 40 | ||||
| -rw-r--r-- | textproc/elasticsearch7/pkg-descr | 2 |
10 files changed, 1 insertions, 352 deletions
@@ -5435,3 +5435,4 @@ net-mgmt/zabbix72-frontend||2026-06-30|Has expired: End of life net-mgmt/zabbix72-server||2026-06-30|Has expired: End of life www/forgejo11|www/forgejo-lts|2026-06-30|Has expired: End of life, please switch to www/forgejo-lts dns/bind918||2026-06-30|Has expired: End of life, please migrate to a newer version of BIND9 +textproc/elasticsearch7|textproc/elasticsearch8|2026-06-30|Has expired: 7.x reached EoL on 15 Jan 2026 - use textproc/elasticsearch8 diff --git a/textproc/Makefile b/textproc/Makefile index 75c44a3b9f99..3fe12eb6dd93 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -183,7 +183,6 @@ SUBDIR += el-aspell SUBDIR += el-hyphen SUBDIR += elasticsearch-plugin-head - SUBDIR += elasticsearch7 SUBDIR += elasticsearch8 SUBDIR += en-aspell SUBDIR += en-hunspell diff --git a/textproc/elasticsearch7/Makefile b/textproc/elasticsearch7/Makefile deleted file mode 100644 index 5d77132270f9..000000000000 --- a/textproc/elasticsearch7/Makefile +++ /dev/null @@ -1,115 +0,0 @@ -PORTNAME= elasticsearch -DISTVERSION= 7.17.29 -PORTREVISION= 3 -CATEGORIES= textproc java devel -MASTER_SITES= https://artifacts.elastic.co/downloads/${PORTNAME}/ \ - LOCAL/vvd/elastic -PKGNAMESUFFIX= ${DISTVERSION:R:R} -DISTNAME= ${PORTNAME}-${DISTVERSION}-darwin-x86_64 - -MAINTAINER= elastic@FreeBSD.org -COMMENT= Distributed, RESTful search and analytics engine (${DISTVERSION:R:R} version) -WWW= https://www.elastic.co/ - -LICENSE= APACHE20 - -DEPRECATED= 7.x reached EoL on 15 Jan 2026 - use textproc/elasticsearch8 or textproc/elasticsearch9* -EXPIRATION_DATE= 2026-06-30 - -BUILD_DEPENDS= jna>0:devel/jna -RUN_DEPENDS= bash>0:shells/bash \ - jna>0:devel/jna - -USES= cpe java shebangfix -JAVA_VERSION= 21 17 11 8 -USE_RC_SUBR= ${PORTNAME} - -SHEBANG_FILES= bin/elasticsearch bin/elasticsearch-certgen \ - bin/elasticsearch-certutil bin/elasticsearch-cli \ - bin/elasticsearch-croneval bin/elasticsearch-env \ - bin/elasticsearch-env-from-file bin/elasticsearch-keystore \ - bin/elasticsearch-migrate bin/elasticsearch-node \ - bin/elasticsearch-plugin bin/elasticsearch-saml-metadata \ - bin/elasticsearch-setup-passwords bin/elasticsearch-shard \ - bin/elasticsearch-sql-cli bin/elasticsearch-syskeygen \ - bin/elasticsearch-users bin/x-pack-env bin/x-pack-security-env \ - bin/x-pack-watcher-env - -CONFLICTS= ${PORTNAME}* - -# ML plugin not supported on FreeBSD -EXTRACT_AFTER_ARGS= --exclude jdk.app \ - --exclude lib/jna-5.10.0.jar \ - --exclude modules/x-pack/x-pack-ml \ - --no-same-owner --no-same-permissions - -NO_ARCH= yes -NO_BUILD= yes -PORTSCOUT= limit:^${DISTVERSION:R:R}\. -SUB_FILES= pkg-message -SUB_LIST= JAVA_HOME=${JAVA_HOME} \ - SEARCHUSER=${SEARCHUSER} \ - SEARCHGROUP=${SEARCHGROUP} - -WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} - -SEARCHUSER?= ${PORTNAME} -SEARCHGROUP?= ${SEARCHUSER} -.if ${SEARCHUSER} == ${PORTNAME} -USERS= ${SEARCHUSER} -.endif -.if ${SEARCHGROUP} == ${PORTNAME} -GROUPS= ${SEARCHGROUP} -.endif - -PORTDOCS= LICENSE.txt NOTICE.txt README.asciidoc - -OPTIONS_DEFINE= DOCS - -CONFIG_FILES= elasticsearch.yml jvm.options log4j2.properties \ - role_mapping.yml roles.yml -BINS= elasticsearch elasticsearch-certgen elasticsearch-certutil \ - elasticsearch-cli elasticsearch-croneval elasticsearch-env \ - elasticsearch-env-from-file elasticsearch-keystore \ - elasticsearch-migrate elasticsearch-node elasticsearch-plugin \ - elasticsearch-saml-metadata elasticsearch-setup-passwords \ - elasticsearch-shard elasticsearch-sql-cli \ - elasticsearch-sql-cli-${DISTVERSION}.jar \ - elasticsearch-syskeygen elasticsearch-users x-pack-env \ - x-pack-security-env x-pack-watcher-env - -post-patch: - ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/bin/elasticsearch-env - -do-install: - ${MKDIR} ${STAGEDIR}${ETCDIR} \ - ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin \ - ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins \ - ${STAGEDIR}${PREFIX}/libexec/elasticsearch -.for f in ${CONFIG_FILES} - ${INSTALL} ${WRKSRC}/config/${f} ${STAGEDIR}${ETCDIR}/${f}.sample -.endfor - ${INSTALL_SCRIPT} ${BINS:S|^|${WRKSRC}/bin/|} ${STAGEDIR}${PREFIX}/lib/elasticsearch/bin - (cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/elasticsearch/lib/ "-name *\.jar") - (cd ${WRKSRC}/modules && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/elasticsearch/modules/) - ${INSTALL} -lrs ${STAGEDIR}${ETCDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/config - ${LN} -s ${LOCALBASE}/share/java/classes/jna.jar \ - ${STAGEDIR}${PREFIX}/lib/elasticsearch/lib/jna-0.0.0.jar - -do-install-DOCS-on: - ${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} - -post-install: - ${ECHO} "@sample ${ETCDIR}/elasticsearch.yml.sample" >> ${TMPPLIST} - ${ECHO} "@sample ${ETCDIR}/jvm.options.sample" >> ${TMPPLIST} - ${ECHO} "@sample ${ETCDIR}/log4j2.properties.sample" >> ${TMPPLIST} - ${ECHO} "@sample ${ETCDIR}/role_mapping.yml.sample" >> ${TMPPLIST} - ${ECHO} "@sample ${ETCDIR}/roles.yml.sample" >> ${TMPPLIST} - ${FIND} -s ${STAGEDIR}${PREFIX}/lib/elasticsearch -not -type d | ${SORT} | \ - ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST} - ${ECHO} "@dir lib/elasticsearch/plugins" >> ${TMPPLIST} - ${ECHO} "@dir libexec/elasticsearch" >> ${TMPPLIST} - ${ECHO} "@dir(${SEARCHUSER},${SEARCHGROUP},0755) ${ETCDIR}" >> ${TMPPLIST} - -.include <bsd.port.mk> diff --git a/textproc/elasticsearch7/distinfo b/textproc/elasticsearch7/distinfo deleted file mode 100644 index 0ef43e2f51b3..000000000000 --- a/textproc/elasticsearch7/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -TIMESTAMP = 1773333333 -SHA256 (elasticsearch-7.17.29-darwin-x86_64.tar.gz) = bda312f74f0f691d5e4090fed7283c5a2f8609316bdcb9ebdc2671ecc7663ae2 -SIZE (elasticsearch-7.17.29-darwin-x86_64.tar.gz) = 317608172 diff --git a/textproc/elasticsearch7/files/elasticsearch.in b/textproc/elasticsearch7/files/elasticsearch.in deleted file mode 100644 index d4414f39d6d0..000000000000 --- a/textproc/elasticsearch7/files/elasticsearch.in +++ /dev/null @@ -1,128 +0,0 @@ -#!/bin/sh - -# PROVIDE: elasticsearch -# REQUIRE: DAEMON -# BEFORE: LOGIN -# KEYWORD: shutdown -# -# Add the following line to /etc/rc.conf to enable elasticsearch: -# -# elasticsearch_enable="YES" -# -# elasticsearch_user (username): Set to %%SEARCHUSER%% by default. -# Set it to required username. -# elasticsearch_group (group): Set to %%SEARCHGROUP%% by default. -# Set it to required group. -# elasticsearch_config (path): Set to %%ETCDIR%%/elasticsearch.yml by default. -# Set it to the config file location. -# elasticsearch_java_home (path): Set to %%JAVA_HOME%% by default. -# Set it to the root of the JDK to use. -# -. /etc/rc.subr - -name=elasticsearch -rcvar=elasticsearch_enable - -load_rc_config ${name} - -: ${elasticsearch_enable:=NO} -: ${elasticsearch_user=%%SEARCHUSER%%} -: ${elasticsearch_group=%%SEARCHGROUP%%} -: ${elasticsearch_config=%%ETCDIR%%} -: ${elasticsearch_login_class=root} -: ${elasticsearch_java_home="%%JAVA_HOME%%"} - -required_files="${elasticsearch_config}/elasticsearch.yml" -_pidprefix=/var/run/elasticsearch/elasticsearch -pidfile=${_pidprefix}.pid -procname=${elasticsearch_java_home}/bin/java - -extra_commands="console status" -console_cmd=elasticsearch_console -start_precmd=elasticsearch_precmd -command=%%PREFIX%%/lib/elasticsearch/bin/elasticsearch -command_args="-d --pidfile=${pidfile}" - -export ES_PATH_CONF=${elasticsearch_config} -export ES_JAVA_HOME=${elasticsearch_java_home} - -elasticsearch_precmd() -{ - /usr/bin/install -d -o ${elasticsearch_user} -g ${elasticsearch_group} -m 755 ${pidfile%/*} - /usr/bin/install -d -o ${elasticsearch_user} -g ${elasticsearch_group} -m 755 /var/db/elasticsearch - /usr/bin/install -d -o ${elasticsearch_user} -g ${elasticsearch_group} -m 755 /var/log/elasticsearch -} - -elasticsearch_console() -{ - command_args="" - run_rc_command "start" -} - -if [ -n "$2" ]; then - profile="$2" - if [ "x${elasticsearch_profiles}" != "x" ]; then - eval elasticsearch_config="\${elasticsearch_${profile}_config:-}" - if [ "x${elasticsearch_config}" = "x" ]; then - echo "You must define a configuration (elasticsearch_${profile}_config)" - exit 1 - fi - export ES_PATH_CONF=${elasticsearch_config} - required_files="${elasticsearch_config}/elasticsearch.yml" - required_files="${elasticsearch_config}/jvm.options" - eval elasticsearch_enable="\${elasticsearch_${profile}_enable:-${elasticsearch_enable}}" - pidfile="${_pidprefix}.${profile}.pid" - command_args="-d --pidfile=${pidfile}" - echo "===> elasticsearch profile: ${profile}" - else - echo "$0: extra argument ignored" - fi -else - if [ "x${elasticsearch_profiles}" != "x" -a "x$1" != "x" ]; then - for profile in ${elasticsearch_profiles}; do - eval _enable="\${elasticsearch_${profile}_enable}" - case "x${_enable:-${elasticsearch_enable}}" in - x|x[Nn][Oo]|x[Nn][Oo][Nn][Ee]) - continue - ;; - x[Yy][Ee][Ss]) - ;; - *) - if test -z "$_enable"; then - _var=elasticsearch_enable - else - _var=elasticsearch_"${profile}"_enable - fi - echo "Bad value" \ - "'${_enable:-${elasticsearch_enable}}'" \ - "for ${_var}. " \ - "Profile ${profile} skipped." - continue - ;; - esac - %%PREFIX%%/etc/rc.d/elasticsearch $1 ${profile} - retcode="$?" - if [ "0${retcode}" -ne 0 ]; then - failed="${profile} (${retcode}) ${failed:-}" - else - success="${profile} ${success:-}" - fi - done - exit 0 - fi -fi - -if [ "x${elasticsearch_mem_min}" != "x" ]; then - echo "The elasticsearch_mem_min variable is no longer supported please set this in ${elasticsearch_config}/jvm.options" - exit 1; -fi -if [ "x${elasticsearch_mem_max}" != "x" ]; then - echo "The elasticsearch_mem_max variable is no longer supported please set this in ${elasticsearch_config}/jvm.options" - exit 1; -fi -if [ "x${elasticsearch_props}" != "x" ]; then - echo "The elasticsearch_props variable is no longer supported please set this in ${elasticsearch_config}/jvm.options" - exit 1; -fi - -run_rc_command "$1" diff --git a/textproc/elasticsearch7/files/patch-bin_elasticsearch-env b/textproc/elasticsearch7/files/patch-bin_elasticsearch-env deleted file mode 100644 index 4dee506b5784..000000000000 --- a/textproc/elasticsearch7/files/patch-bin_elasticsearch-env +++ /dev/null @@ -1,26 +0,0 @@ ---- bin/elasticsearch-env.orig 2021-07-05 19:40:21 UTC -+++ bin/elasticsearch-env -@@ -46,12 +46,17 @@ elif [ ! -z "$JAVA_HOME" ]; then - JAVA_TYPE="JAVA_HOME" - else - # use the bundled JDK (default) -- if [ "$(uname -s)" = "Darwin" ]; then -- # macOS has a different structure -- JAVA="$ES_HOME/jdk.app/Contents/Home/bin/java" -- else -- JAVA="$ES_HOME/jdk/bin/java" -- fi -+ case "$(uname -s)" in -+ "Darwin") -+ JAVA="$ES_HOME/jdk.app/Contents/Home/bin/java" -+ ;; -+ "FreeBSD") -+ JAVA=%%LOCALBASE%%/bin/java -+ ;; -+ *) -+ JAVA="$ES_HOME/jdk/bin/java" -+ ;; -+ esac - JAVA_TYPE="bundled JDK" - fi - diff --git a/textproc/elasticsearch7/files/patch-config_elasticsearch.yml b/textproc/elasticsearch7/files/patch-config_elasticsearch.yml deleted file mode 100644 index ede1e3ded1bb..000000000000 --- a/textproc/elasticsearch7/files/patch-config_elasticsearch.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- config/elasticsearch.yml.orig 2021-06-10 20:59:11 UTC -+++ config/elasticsearch.yml -@@ -31,10 +31,12 @@ - # Path to directory where to store the data (separate multiple locations by comma): - # - #path.data: /path/to/data -+path.data: /var/db/elasticsearch - # - # Path to log files: - # - #path.logs: /path/to/logs -+path.logs: /var/log/elasticsearch - # - # ----------------------------------- Memory ----------------------------------- - # -@@ -80,3 +82,6 @@ - # Require explicit names when deleting indices: - # - #action.destructive_requires_name: true -+ -+# ml is not supported on FreeBSD -+xpack.ml.enabled: false diff --git a/textproc/elasticsearch7/files/patch-config_jvm.options b/textproc/elasticsearch7/files/patch-config_jvm.options deleted file mode 100644 index 7c8c3ce353c0..000000000000 --- a/textproc/elasticsearch7/files/patch-config_jvm.options +++ /dev/null @@ -1,15 +0,0 @@ ---- config/jvm.options.orig 2021-06-10 20:59:11 UTC -+++ config/jvm.options -@@ -83,10 +83,10 @@ - 8:-XX:+PrintGCDateStamps - 8:-XX:+PrintTenuringDistribution - 8:-XX:+PrintGCApplicationStoppedTime --8:-Xloggc:logs/gc.log -+8:-Xloggc:${ES_TMPDIR}/gc.log - 8:-XX:+UseGCLogFileRotation - 8:-XX:NumberOfGCLogFiles=32 - 8:-XX:GCLogFileSize=64m - - # JDK 9+ GC logging --9-:-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m -+9-:-Xlog:gc*,gc+age=trace,safepoint:file=${ES_TMPDIR}/gc.log:utctime,pid,tags:filecount=32,filesize=64m diff --git a/textproc/elasticsearch7/files/pkg-message.in b/textproc/elasticsearch7/files/pkg-message.in deleted file mode 100644 index 894d1d400be1..000000000000 --- a/textproc/elasticsearch7/files/pkg-message.in +++ /dev/null @@ -1,40 +0,0 @@ -[ -{ type: install - message: <<EOM -Please see %%ETCDIR%% for sample versions of -elasticsearch.yml and logging.yml. - -Elasticsearch requires memory locking of large amounts of RAM. -You may need to set: - -sysctl security.bsd.unprivileged_mlock=1 - -When running within a jail, it's highly advisable to set: - -enforce_statfs = 1 - -for the jail running elasticsearch instance. - -!!! PLUGINS NOTICE !!! - -Elasticsearch plugins should only be installed via the elasticsearch-plugin -included with this software. As we strive to provide a minimum semblance -of security, the files installed by the package are owned by root:wheel. -This is different than upstream which expects all of the files to be -owned by the user and for you to execute the elasticsearch-plugin script -as said user. - -You will encounter permissions errors with configuration files and -directories created by plugins which you will have to manually correct. -This is the price we have to pay to protect ourselves in the face of -a poorly designed security model. - -e.g., after installing X-Pack you will have to correct: - -%%ETCDIR%%/elasticsearch.keystore file to be owned by elasticsearch:elasticsearch -%%ETCDIR%%/x-pack directory/files to be owned by elasticsearch:elasticsearch - -!!! PLUGINS NOTICE !!! -EOM -} -] diff --git a/textproc/elasticsearch7/pkg-descr b/textproc/elasticsearch7/pkg-descr deleted file mode 100644 index fb397b6304e6..000000000000 --- a/textproc/elasticsearch7/pkg-descr +++ /dev/null @@ -1,2 +0,0 @@ -Elasticsearch aims to be a Distributed, RESTful, Search Engine built on top of -Apache Lucene. |
