Skip to content

Instantly share code, notes, and snippets.

@dlangille
Created March 8, 2016 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlangille/509b4084aef65537453a to your computer and use it in GitHub Desktop.
Save dlangille/509b4084aef65537453a to your computer and use it in GitHub Desktop.
# Created by: Dan Langille <dvl@FreeBSD.org>
# $FreeBSD$
PORTNAME= marvel
PORTVERSION= 2.2.0
CATEGORIES= textproc perl5
MASTER_SITES= http://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/${PORTVERSION}/:source1 \
http://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/marvel-agent/${PORTVERSION}/:source2
PKGNAMEPREFIX= elasticsearch-plugin
DISTFILES= license-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}${EXTRACT_SUFX}:source1 \
marvel-agent-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}${EXTRACT_SUFX}:source2
MAINTAINER= dvl@FreeBSD.org
COMMENT= ElasticSearch Marvel Monitoring Plugin
LICENSE= COMMERCIAL
LICENSE_NAME= Free for development; license required for production use
LICENSE_TEXT= License available from Elasticsearch for production use.
LICENSE_TEXT+= See http://www.elasticsearch.com/marvel/ for more details.
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell no-auto-accept
RUN_DEPENDS:= elasticsearch2>2.0.0:${PORTSDIR}/textproc/elasticsearch2
#NO_WRKSUBDIR= yes
NO_BUILD= yes
LEGAL_TEXT= ${LICENSE_NAME_COMMERCIAL}
PLIST_SUB= VERSION=${PORTVERSION}
USES+= zip
#do-extract:
# @${MKDIR} ${WRKSRC}
# ( cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${EXTRACT_AFTER_ARGS} )
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins/marvel
@cd ${WRKSRC} && ${COPYTREE_SHARE} marvel ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins/
@cd ${WRKSRC} && ${INSTALL_DATA} marvel-${PORTVERSION}.jar ${STAGEDIR}${PREFIX}/lib/elasticsearch/plugins/marvel
.include <bsd.port.mk>
root@93R-10082015:/wrkdirs/usr/ports/textproc/elasticsearch-plugin-marvel2/work # ls -l
total 340
-rw-r--r-- 1 root wheel 19668 Mar 8 15:40 .PLIST.mktmp
-rw-r--r-- 1 root wheel 0 Mar 8 15:40 .build_done.marvel._usr_local
-rw-r--r-- 1 root wheel 0 Mar 8 15:39 .configure_done.marvel._usr_local
-rw-r--r-- 1 root wheel 0 Mar 8 15:39 .extract_done.marvel._usr_local
-rw-r--r-- 1 root wheel 0 Mar 8 15:39 .patch_done.marvel._usr_local
-rwxr-xr-x 1 root wheel 43590 Oct 21 08:42 LICENSE.txt
-rwxr-xr-x 1 root wheel 155 Oct 21 08:42 NOTICE.txt
-rwxr-xr-x 1 root wheel 71376 Nov 20 11:49 license-2.1.0.jar
-rwxr-xr-x 1 root wheel 22217 Nov 20 11:49 license-core-2.1.0.jar
-rwxr-xr-x 1 root wheel 9401 Nov 20 11:49 license-plugin-api-2.1.0.jar
-rwxr-xr-x 1 root wheel 159536 Nov 20 11:51 marvel-agent-2.1.0.jar
-rwxr-xr-x 1 root wheel 2600 Nov 20 11:51 plugin-descriptor.properties
drwxr-xr-x 3 root wheel 40 Mar 8 15:40 stage
root@93R-10082015:/wrkdirs/usr/ports/textproc/elasticsearch-plugin-marvel2/work #
root@93R-10082015:/wrkdirs/usr/ports/textproc/elasticsearch-plugin-marvel2/work # ls -l
total 340
-rw-r--r-- 1 root wheel 19668 Mar 8 15:46 .PLIST.mktmp
-rw-r--r-- 1 root wheel 0 Mar 8 15:46 .build_done.marvel._usr_local
-rw-r--r-- 1 root wheel 0 Mar 8 15:46 .configure_done.marvel._usr_local
-rw-r--r-- 1 root wheel 0 Mar 8 15:46 .extract_done.marvel._usr_local
-rw-r--r-- 1 root wheel 0 Mar 8 15:46 .patch_done.marvel._usr_local
-rwxr-xr-x 1 root wheel 43590 Oct 21 08:42 LICENSE.txt
-rwxr-xr-x 1 root wheel 155 Oct 21 08:42 NOTICE.txt
-rwxr-xr-x 1 root wheel 71376 Nov 20 11:49 license-2.1.0.jar
-rwxr-xr-x 1 root wheel 22217 Nov 20 11:49 license-core-2.1.0.jar
-rwxr-xr-x 1 root wheel 9401 Nov 20 11:49 license-plugin-api-2.1.0.jar
-rwxr-xr-x 1 root wheel 159536 Nov 20 11:51 marvel-agent-2.1.0.jar
-rwxr-xr-x 1 root wheel 2600 Nov 20 11:51 plugin-descriptor.properties
drwxr-xr-x 3 root wheel 40 Mar 8 15:46 stage
root@93R-10082015:/wrkdirs/usr/ports/textproc/elasticsearch-plugin-marvel2/work #
When you manually install the plugins with elasticsearch plugin command, you get these files:
[dvl@sdev01 /usr/local/lib/elasticsearch/plugins]$ find .
.
./license
./license/plugin-descriptor.properties
./license/NOTICE.txt
./license/license-core-2.1.0.jar
./license/license-plugin-api-2.1.0.jar
./license/license-2.1.0.jar
./license/LICENSE.txt
./marvel-agent
./marvel-agent/LICENSE.txt
./marvel-agent/NOTICE.txt
./marvel-agent/plugin-descriptor.properties
./marvel-agent/marvel-agent-2.1.0.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment