Lines 1-6
Link Here
|
1 |
PORTNAME= crowdsec |
1 |
PORTNAME= crowdsec |
2 |
PORTVERSION= 1.2.2 # NOTE: change BUILD_VERSION and BUILD_TAG as well |
2 |
PORTVERSION= 1.2.3 # NOTE: change BUILD_VERSION and BUILD_TAG as well |
3 |
PORTREVISION= 3 |
3 |
#PORTREVISION= |
4 |
DISTVERSIONPREFIX= v |
4 |
DISTVERSIONPREFIX= v |
5 |
CATEGORIES= security |
5 |
CATEGORIES= security |
6 |
|
6 |
|
Lines 19-25
USES= gmake
Link Here
|
19 |
USE_GITHUB= yes |
19 |
USE_GITHUB= yes |
20 |
GH_ACCOUNT= crowdsecurity |
20 |
GH_ACCOUNT= crowdsecurity |
21 |
GH_PROJECT= crowdsec |
21 |
GH_PROJECT= crowdsec |
22 |
GH_TAGNAME= v1.2.2-freebsd |
22 |
GH_TAGNAME= v1.2.3-freebsd |
23 |
#GH_TAGNAME is automatically set from DISTVERSION |
23 |
#GH_TAGNAME is automatically set from DISTVERSION |
24 |
|
24 |
|
25 |
USE_RC_SUBR= crowdsec |
25 |
USE_RC_SUBR= crowdsec |
Lines 29-36
SUB_FILES= pkg-message \
Link Here
|
29 |
|
29 |
|
30 |
# BUILD_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1)) |
30 |
# BUILD_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1)) |
31 |
# BUILD_TAG=$(git rev-parse HEAD) |
31 |
# BUILD_TAG=$(git rev-parse HEAD) |
32 |
MAKE_ENV= BUILD_VERSION="v1.2.2" \ |
32 |
MAKE_ENV= BUILD_VERSION="v1.2.3" \ |
33 |
BUILD_TAG="7865ec368e54e28b23b54a187b9f96999f361f12" |
33 |
BUILD_TAG="fc4be1e0ffc5888f2824358464cb2426cd4472e1" |
34 |
|
34 |
|
35 |
PLUGIN_DIR= ${PREFIX}/lib/crowdsec/plugins |
35 |
PLUGIN_DIR= ${PREFIX}/lib/crowdsec/plugins |
36 |
STAGE_PLUGINS= ${STAGEDIR}${PLUGIN_DIR} |
36 |
STAGE_PLUGINS= ${STAGEDIR}${PLUGIN_DIR} |
Lines 62-67
do-install:
Link Here
|
62 |
${LN} -s cscli ${STAGE_BIN}/crowdsec-cli |
62 |
${LN} -s cscli ${STAGE_BIN}/crowdsec-cli |
63 |
|
63 |
|
64 |
@${MKDIR} ${STAGE_PLUGINS} |
64 |
@${MKDIR} ${STAGE_PLUGINS} |
|
|
65 |
${INSTALL_PROGRAM} ${WRKSRC}/plugins/notifications/email/notification-email ${STAGE_PLUGINS}/ |
65 |
${INSTALL_PROGRAM} ${WRKSRC}/plugins/notifications/http/notification-http ${STAGE_PLUGINS}/ |
66 |
${INSTALL_PROGRAM} ${WRKSRC}/plugins/notifications/http/notification-http ${STAGE_PLUGINS}/ |
66 |
${INSTALL_PROGRAM} ${WRKSRC}/plugins/notifications/slack/notification-slack ${STAGE_PLUGINS}/ |
67 |
${INSTALL_PROGRAM} ${WRKSRC}/plugins/notifications/slack/notification-slack ${STAGE_PLUGINS}/ |
67 |
${INSTALL_PROGRAM} ${WRKSRC}/plugins/notifications/splunk/notification-splunk ${STAGE_PLUGINS}/ |
68 |
${INSTALL_PROGRAM} ${WRKSRC}/plugins/notifications/splunk/notification-splunk ${STAGE_PLUGINS}/ |
Lines 92-97
do-install:
Link Here
|
92 |
|
93 |
|
93 |
@${MKDIR} ${STAGEDIR}${ETCDIR}/notifications |
94 |
@${MKDIR} ${STAGEDIR}${ETCDIR}/notifications |
94 |
|
95 |
|
|
|
96 |
@${MKDIR} ${STAGEDIR}${ETCDIR}/notifications/email |
97 |
@${MV} ${WRKSRC}/plugins/notifications/email/email.yaml \ |
98 |
${STAGEDIR}${ETCDIR}/notifications/email/email.yaml.sample |
99 |
|
95 |
@${MKDIR} ${STAGEDIR}${ETCDIR}/notifications/http |
100 |
@${MKDIR} ${STAGEDIR}${ETCDIR}/notifications/http |
96 |
@${MV} ${WRKSRC}/plugins/notifications/http/http.yaml \ |
101 |
@${MV} ${WRKSRC}/plugins/notifications/http/http.yaml \ |
97 |
${STAGEDIR}${ETCDIR}/notifications/http/http.yaml.sample |
102 |
${STAGEDIR}${ETCDIR}/notifications/http/http.yaml.sample |