1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00

New port: www/uchiwa

Uchiwa is a simple dashboard for the Sensu monitoring framework.

WWW: http://uchiwa.io/

PR:		210071
Submitted by:	Alexander Holte-Davidsen <ports@treg.io>
This commit is contained in:
Kurt Jaeger 2016-06-30 19:22:21 +00:00
parent ce3cde004b
commit 76843e4940
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=417836
8 changed files with 1999 additions and 0 deletions

1
GIDs
View File

@ -238,6 +238,7 @@ openxpki:*:777:
zetacoin:*:780:
foreman_proxy:*:812:
puppet:*:814:
uchiwa:*:815:
btsync:*:817:
jenkins:*:818:
rundeck:*:819:

1
UIDs
View File

@ -247,6 +247,7 @@ openxpki:*:777:777::0:0:OpenXPKI Owner:/nonexistent:/usr/sbin/nologin
zetacoin:*:780:780::0:0:ZetaCoin Daemon:/nonexistent:/usr/sbin/nologin
foreman_proxy:*:812:812::0:0:Foreman Smart Proxy:/usr/local/share/foreman-proxy:/usr/sbin/nologin
puppet:*:814:814::0:0:Puppet Daemon:/nonexistent:/usr/sbin/nologin
uchiwa:*:815:815::0:0:Uchiwa Dashboard:/nonexistent:/usr/sbin/nologin
btsync:*:817:817::0:0:BitTorrent Sync Daemon:/nonexistent:/usr/sbin/nologin
jenkins:*:818:818::0:0:Jenkins CI:/usr/local/jenkins:/bin/sh
rundeck:*:819:819::0:0:Rundeck:/usr/local/rundeck:/bin/sh

View File

@ -2235,6 +2235,7 @@
SUBDIR += typo3
SUBDIR += typo3-lts
SUBDIR += typolight
SUBDIR += uchiwa
SUBDIR += udmsearch
SUBDIR += uglifyjs
SUBDIR += usermanager

105
www/uchiwa/Makefile Normal file
View File

@ -0,0 +1,105 @@
# $FreeBSD$
PORTNAME= uchiwa
PORTVERSION= 0.16.0
CATEGORIES= www
MASTER_SITES= http://uchiwa.io/
MAINTAINER= alexander@treg.io
COMMENT= Simple dashboard for Sensu
LICENSE= MIT
BUILD_DEPENDS= go>=1.6.0:lang/go
UCHIWA_LOGDIR= /var/log/uchiwa
UCHIWA_CONFDIR= ${PREFIX}/etc/uchiwa
UCHIWA_SHAREDIR= ${PREFIX}/share/uchiwa/public
UCHIWA_RCDIR= ${PREFIX}/etc/rc.d
USE_RC_SUBR= uchiwa
USE_GITHUB= yes
GH_ACCOUNT= sensu:DEFAULT
GH_TUPLE= dgrijalva:jwt-go:61124b62ad244d655f87d944aefaa2ae5a0d2f16:jwtgo
GH_TUPLE+= gorilla:context:215affda49addc4c8ef7e2534915df2c8c35c6cd:context
GH_TUPLE+= mitchellh:mapstructure:f7d28d5aeab42b9b95d2e6d6b956f73a290077fc:mapstructure
GH_TUPLE+= palourde:mergo:d931ffd2c07cb4caf7194e0f6af9ac6771c26d54:mergo
GH_TUPLE+= stretchr:objx:cbeaeb16a013161a98496fad62933b1d21786672:objx
GH_TUPLE+= stretchr:testify:e4ec8152c15fc46bd5056ce65997a07c7d415325:testify
GH_TUPLE+= sensu:uchiwa-web:0.16.0:uchiwaweb
GH_TUPLE+= angular:bower-angular-cookies:b89821e37d3011ad0bca9a4847a8fcc59f90fabb:bowerangularcookies
GH_TUPLE+= urish:angular-moment:0.9.2:urishangularmoment
GH_TUPLE+= angular:bower-angular:v1.4.11:angularbowerangular
GH_TUPLE+= angular:bower-angular-route:v1.4.11:angularbowerangularroute
GH_TUPLE+= angular:bower-angular-sanitize:v1.4.11:angularbowerangularsanitize
GH_TUPLE+= twbs:bootstrap:v3.1.1:bootstrap
GH_TUPLE+= twbs:bootstrap-sass:v3.1.1:bootstrapsass
GH_TUPLE+= foxandxss:angular-toastr:1.6.0:forandxssangulartoastr
GH_TUPLE+= wallin:angular-gravatar:0.3.2:wallinangulargravatar
GH_TUPLE+= fortawesome:font-awesome:v4.4.0:fortawesomefontawesome
GH_TUPLE+= components:highlightjs:08edd75426b52b165cc2b8a569870df4794c36dc:componentshighlightjs
GH_TUPLE+= angular-ui:bootstrap-bower:0.13.4:angularuibootstrapbower
GH_TUPLE+= moment:moment:2.8.4:momentmoment
GH_TUPLE+= jquery:jquery-dist:3.0.0:jqueryjquery
GH_TUPLE+= jashkenas:underscore:1f4bf626f23a99f7a676f5076dc1b1475554c8f7:jashkenasunderscore
USERS= uchiwa
GROUPS= uchiwa
STRIP= #
post-patch:
@${MKDIR} ${WRKSRC}/src/github.com/sensu/uchiwa
@${MKDIR} ${WRKSRC}/src/github.com/dgrijalva
@${MKDIR} ${WRKSRC}/src/github.com/gorilla
@${MKDIR} ${WRKSRC}/src/github.com/mitchellh
@${MKDIR} ${WRKSRC}/src/github.com/palourde
@${MKDIR} ${WRKSRC}/src/github.com/stretchr
@${MKDIR} ${WRKSRC}/src/github.com/stretchr/testify
@${MKDIR} ${WRKSRC}/src/github.com/tools
.for src in .travis.yml Gruntfile.js bower.json package.json uchiwa \
Dockerfile LICENSE config.json.example public uchiwa.go .bowerrc \
Godeps README.md fixtures
@${MV} ${WRKSRC}/${src} \
${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}
.endfor
@${MV} ${WRKSRC_jwtgo} ${WRKSRC}/src/github.com/dgrijalva/jwt-go
@${MV} ${WRKSRC_context} ${WRKSRC}/src/github.com/gorilla/context
@${MV} ${WRKSRC_mapstructure} ${WRKSRC}/src/github.com/mitchellh/mapstructure
@${MV} ${WRKSRC_mergo} ${WRKSRC}/src/github.com/palourde/mergo
@${MV} ${WRKSRC_objx} ${WRKSRC}/src/github.com/stretchr/objx
@${MV} ${WRKSRC_testify}/assert ${WRKSRC}/src/github.com/stretchr/testify/assert
@${MV} ${WRKSRC_testify}/mock ${WRKSRC}/src/github.com/stretchr/testify/mock
@${MKDIR} ${WRKSRC}/src/github.com/sensu/uchiwa/public/bower_components
@${MV} ${WRKSRC_bowerangularcookies} ${WRKSRC}/src/github.com/sensu/uchiwa/public/bower_components/angular-cookies
@${MV} ${WRKSRC_urishangularmoment} ${WRKSRC}/src/github.com/sensu/uchiwa/public/bower_components/angular-moment
@${MV} ${WRKSRC_angularbowerangular} ${WRKSRC}/src/github.com/sensu/uchiwa/public/bower_components/angular
@${MV} ${WRKSRC_angularbowerangularroute} ${WRKSRC}/src/github.com/sensu/uchiwa/public/bower_components/angular-route
@${MV} ${WRKSRC_angularbowerangularsanitize} ${WRKSRC}/src/github.com/sensu/uchiwa/public/bower_components/angular-sanitize
@${MV} ${WRKSRC_bootstrap} ${WRKSRC}/src/github.com/sensu/uchiwa/public/bower_components/bootstrap
@${MV} ${WRKSRC_bootstrapsass} ${WRKSRC}/src/github.com/sensu/uchiwa/public/bower_components/bootstrap-sass-official
@${MV} ${WRKSRC_forandxssangulartoastr} ${WRKSRC}/src/github.com/sensu/uchiwa/public/bower_components/angular-toastr
@${MV} ${WRKSRC_wallinangulargravatar} ${WRKSRC}/src/github.com/sensu/uchiwa/public/bower_components/angular-gravatar
@${MV} ${WRKDIR}/Font-Awesome-4.4.0 ${WRKSRC}/src/github.com/sensu/uchiwa/public/bower_components/fontawesome
@${MV} ${WRKSRC_componentshighlightjs} ${WRKSRC}/src/github.com/sensu/uchiwa/public/bower_components/highlightjs
@${MV} ${WRKSRC_angularuibootstrapbower} ${WRKSRC}/src/github.com/sensu/uchiwa/public/bower_components/angular-bootstrap
@${MV} ${WRKSRC_jqueryjquery} ${WRKSRC}/src/github.com/sensu/uchiwa/public/bower_components/jquery
@${MV} ${WRKSRC_jashkenasunderscore} ${WRKSRC}/src/github.com/sensu/uchiwa/public/bower_components/underscore
@${MV} ${WRKSRC_momentmoment} ${WRKSRC}/src/github.com/sensu/uchiwa/public/bower_components/moment
@${MV} ${WRKSRC_uchiwaweb} ${WRKSRC}/src/github.com/sensu/uchiwa/public/bower_components/uchiwa-web
do-build:
@cd ${WRKSRC}/src/github.com/sensu && ${SETENV} GOPATH=${WRKSRC} go install ./...
do-install:
${MKDIR} ${STAGEDIR}${UCHIWA_LOGDIR} \
${STAGEDIR}${UCHIWA_CONFDIR} \
${STAGEDIR}${UCHIWA_SHAREDIR} \
${STAGEDIR}${UCHIWA_RCDIR}
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/uchiwa ${STAGEDIR}${PREFIX}/bin/uchiwa
${INSTALL_DATA} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/config.json.example ${STAGEDIR}${PREFIX}/etc/uchiwa/config.json.sample
(cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/public && ${COPYTREE_SHARE} . ${STAGEDIR}${UCHIWA_SHAREDIR})
.include <bsd.port.mk>

47
www/uchiwa/distinfo Normal file
View File

@ -0,0 +1,47 @@
TIMESTAMP = 1467287930
SHA256 (sensu-uchiwa-0.16.0_GH0.tar.gz) = 940230e77b097361e89023192cb1c913c07bbfa9a43a120d7cd78ba80050887b
SIZE (sensu-uchiwa-0.16.0_GH0.tar.gz) = 123240
SHA256 (dgrijalva-jwt-go-61124b62ad244d655f87d944aefaa2ae5a0d2f16_GH0.tar.gz) = 2841d55bce629bb816fe796315efa24ac50ab5bbfa210a9d45c7e1b9b21ea5b1
SIZE (dgrijalva-jwt-go-61124b62ad244d655f87d944aefaa2ae5a0d2f16_GH0.tar.gz) = 14148
SHA256 (gorilla-context-215affda49addc4c8ef7e2534915df2c8c35c6cd_GH0.tar.gz) = 5521685083d2bfab5e28a694ec7134b520f1d83c09d7bd9eecadebf5e19a1791
SIZE (gorilla-context-215affda49addc4c8ef7e2534915df2c8c35c6cd_GH0.tar.gz) = 4266
SHA256 (mitchellh-mapstructure-f7d28d5aeab42b9b95d2e6d6b956f73a290077fc_GH0.tar.gz) = 9a3b0e674bc2bd24529d3c4300e9d475c9a3c8345390aac2a7a4b1dfe07aa42c
SIZE (mitchellh-mapstructure-f7d28d5aeab42b9b95d2e6d6b956f73a290077fc_GH0.tar.gz) = 13431
SHA256 (palourde-mergo-d931ffd2c07cb4caf7194e0f6af9ac6771c26d54_GH0.tar.gz) = 0bebca1db065e8eb700b79d33192d87a70cce2888ad3cae16aef9faf05ac744b
SIZE (palourde-mergo-d931ffd2c07cb4caf7194e0f6af9ac6771c26d54_GH0.tar.gz) = 9221
SHA256 (stretchr-objx-cbeaeb16a013161a98496fad62933b1d21786672_GH0.tar.gz) = 70c3cbcd5ed6a7b712192e863c70fffa59d0783ae4adbef2f912875a22b9a3d4
SIZE (stretchr-objx-cbeaeb16a013161a98496fad62933b1d21786672_GH0.tar.gz) = 23418
SHA256 (stretchr-testify-e4ec8152c15fc46bd5056ce65997a07c7d415325_GH0.tar.gz) = 6c1cfddb6d37ab2663fdde523337f3a05af43028c658680d6c9a9ba04f3037c9
SIZE (stretchr-testify-e4ec8152c15fc46bd5056ce65997a07c7d415325_GH0.tar.gz) = 32603
SHA256 (sensu-uchiwa-web-0.16.0_GH0.tar.gz) = ddeca9be12d0c3673e78c43ca5b81d5a232262342835ba81ffd733599c8acd79
SIZE (sensu-uchiwa-web-0.16.0_GH0.tar.gz) = 201855
SHA256 (angular-bower-angular-cookies-b89821e37d3011ad0bca9a4847a8fcc59f90fabb_GH0.tar.gz) = 148753029769ea8a8438bc087596fef88e0b613ca11fee49785edd1f991b564c
SIZE (angular-bower-angular-cookies-b89821e37d3011ad0bca9a4847a8fcc59f90fabb_GH0.tar.gz) = 6435
SHA256 (urish-angular-moment-0.9.2_GH0.tar.gz) = ae365783f60fe247c33371f76654a80d277aacb5a8ff2b91a0be283bceec29d2
SIZE (urish-angular-moment-0.9.2_GH0.tar.gz) = 19004
SHA256 (angular-bower-angular-v1.4.11_GH0.tar.gz) = fd31c21ca1658aaa43170f260a51dc6b229f7a3c8a0f6cca09449edc23012f21
SIZE (angular-bower-angular-v1.4.11_GH0.tar.gz) = 525268
SHA256 (angular-bower-angular-route-v1.4.11_GH0.tar.gz) = a76b7cedb33850145fdf10f14a868bb210c24342ee017b1bcb1ca8534d07c8c0
SIZE (angular-bower-angular-route-v1.4.11_GH0.tar.gz) = 17570
SHA256 (angular-bower-angular-sanitize-v1.4.11_GH0.tar.gz) = ebdc5953f73ac62ef712b74903232908b74f91127b6093ef6e0552581227b65f
SIZE (angular-bower-angular-sanitize-v1.4.11_GH0.tar.gz) = 15102
SHA256 (twbs-bootstrap-v3.1.1_GH0.tar.gz) = 044a30423626fd36e5e4b829c0460e9d9dc1184c789b0e7696f8a177dc4a2106
SIZE (twbs-bootstrap-v3.1.1_GH0.tar.gz) = 2301630
SHA256 (twbs-bootstrap-sass-v3.1.1_GH0.tar.gz) = 2ad86cb0a1e409c236101a42c5bf2238d4ab450f7bacf60aced5a1c86c132023
SIZE (twbs-bootstrap-sass-v3.1.1_GH0.tar.gz) = 175668
SHA256 (foxandxss-angular-toastr-1.6.0_GH0.tar.gz) = a1f27884ce936580df3716adec6f7b5a6a7ffca3459f358310f051a1d133a04a
SIZE (foxandxss-angular-toastr-1.6.0_GH0.tar.gz) = 26166
SHA256 (wallin-angular-gravatar-0.3.2_GH0.tar.gz) = 938d248fd115cf2bc6b24416cc908aa34bb7bf4b1649f67348d2c571458505a7
SIZE (wallin-angular-gravatar-0.3.2_GH0.tar.gz) = 14827
SHA256 (fortawesome-font-awesome-v4.4.0_GH0.tar.gz) = 3962ab205a1547be1e10a840f44fa6b6a28359e6f3f21932f0f8dabf419eeccb
SIZE (fortawesome-font-awesome-v4.4.0_GH0.tar.gz) = 2310490
SHA256 (components-highlightjs-08edd75426b52b165cc2b8a569870df4794c36dc_GH0.tar.gz) = 3b576e352ce0331485cb39b42983f40a69c810b9a29ba72f0850243236961df7
SIZE (components-highlightjs-08edd75426b52b165cc2b8a569870df4794c36dc_GH0.tar.gz) = 401481
SHA256 (angular-ui-bootstrap-bower-0.13.4_GH0.tar.gz) = 38f15424f8eac597198bb0a1dfdddddb6afbfe3ef9633b24240f3bc070ec036b
SIZE (angular-ui-bootstrap-bower-0.13.4_GH0.tar.gz) = 128252
SHA256 (moment-moment-2.8.4_GH0.tar.gz) = 2e075c69c0ca7fc5d211293ff63f029cfd3e9f3f248043d023e82ca333dd7dc9
SIZE (moment-moment-2.8.4_GH0.tar.gz) = 438060
SHA256 (jquery-jquery-dist-3.0.0_GH0.tar.gz) = 9c7105eb5efb2e8be363fc2e29dfd49c3423f777282f92a7a30a9562b2def294
SIZE (jquery-jquery-dist-3.0.0_GH0.tar.gz) = 406163
SHA256 (jashkenas-underscore-1f4bf626f23a99f7a676f5076dc1b1475554c8f7_GH0.tar.gz) = 9aba788d42c42d263f4644029c25181ae7754c2bf918f9bd427e0aed46c65831
SIZE (jashkenas-underscore-1f4bf626f23a99f7a676f5076dc1b1475554c8f7_GH0.tar.gz) = 384805

View File

@ -0,0 +1,37 @@
#!/bin/sh
#
# $FreeBSD$
# PROVIDE: uchiwa
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable the puppet agent:
#
# uchiwa_enable="YES"
. /etc/rc.subr
name="uchiwa"
rcvar=uchiwa_enable
load_rc_config "$name"
: ${uchiwa_enable="NO"}
: ${uchiwa_user="uchiwa"}
: ${uchiwa_group="uchiwa"}
: ${uchiwa_config="/usr/local/etc/uchiwa/config.json"}
: ${uchiwa_publicdir="/usr/local/share/uchiwa/public/"}
: ${uchiwa_rundir="/var/run/uchiwa"}
: ${uchiwa_logfile="/var/log/uchiwa/uchiwa.log"}
pidfile="${uchiwa_rundir}/${name}.pid"
command="/usr/sbin/daemon"
command_args="-P $pidfile -c /usr/local/bin/uchiwa -c ${uchiwa_config} -p ${uchiwa_publicdir} >> ${uchiwa_logfile}"
unset uchiwa_flags
start_precmd="install -d -o ${uchiwa_user} -g ${uchiwa_group} ${pidfile%/*}"
run_rc_command "$1"

3
www/uchiwa/pkg-descr Normal file
View File

@ -0,0 +1,3 @@
Uchiwa is a simple dashboard for the Sensu monitoring framework.
WWW: http://uchiwa.io/

1804
www/uchiwa/pkg-plist Normal file

File diff suppressed because it is too large Load Diff