diff options
-rw-r--r-- | ports-mgmt/Makefile | 1 | ||||
-rw-r--r-- | ports-mgmt/caronade/Makefile | 37 | ||||
-rw-r--r-- | ports-mgmt/caronade/distinfo | 7 | ||||
-rw-r--r-- | ports-mgmt/caronade/files/caronade.in | 20 | ||||
-rw-r--r-- | ports-mgmt/caronade/pkg-descr | 4 | ||||
-rw-r--r-- | ports-mgmt/caronade/pkg-plist | 9 |
6 files changed, 78 insertions, 0 deletions
diff --git a/ports-mgmt/Makefile b/ports-mgmt/Makefile index c86f47b99ce7..2e063bb248d6 100644 --- a/ports-mgmt/Makefile +++ b/ports-mgmt/Makefile @@ -5,6 +5,7 @@ SUBDIR += bsdadminscripts SUBDIR += bsdadminscripts2 + SUBDIR += caronade SUBDIR += chucky SUBDIR += create-rb-port SUBDIR += dialog4ports diff --git a/ports-mgmt/caronade/Makefile b/ports-mgmt/caronade/Makefile new file mode 100644 index 000000000000..9ab1206a91f1 --- /dev/null +++ b/ports-mgmt/caronade/Makefile @@ -0,0 +1,37 @@ +# $FreeBSD$ + +PORTNAME= caronade +DISTVERSIONPREFIX=v +DISTVERSION= 0.1.0 +CATEGORIES= ports-mgmt +MASTER_SITES= https://code.bluelife.at/decke/caronade/archive/ \ + LOCAL/decke/caronade/ +DISTFILES= ${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}${EXTRACT_SUFX} +DIST_SUBDIR= ${PORTNAME} + +MAINTAINER= decke@FreeBSD.org +COMMENT= Small and light tool to help with FreeBSD Ports CI + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go +USE_RC_SUBR= caronade + +USE_GITHUB= nodefault +GH_TUPLE= NYTimes:gziphandler:v1.1.1:gziphandler/vendor/github.com/NYTimes/gziphandler \ + go-yaml:yaml:v2.2.2:yaml/vendor/gopkg.in/yaml.v2 + +GO_PKGNAME= code.bluelife.at/decke/caronade +MAKE_ENV+= GOFLAGS=-mod=vendor + +post-install: + ${MKDIR} ${STAGEDIR}${ETCDIR} + ${INSTALL_DATA} ${WRKSRC}/caronade.yaml ${STAGEDIR}${ETCDIR}/caronade.yaml.sample + + ${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME} + (cd ${WRKSRC} && ${COPYTREE_SHARE} "static templates work" ${STAGEDIR}${PREFIX}/${PORTNAME}) + + ${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}/builds + +.include <bsd.port.mk> diff --git a/ports-mgmt/caronade/distinfo b/ports-mgmt/caronade/distinfo new file mode 100644 index 000000000000..39c881a4b26d --- /dev/null +++ b/ports-mgmt/caronade/distinfo @@ -0,0 +1,7 @@ +TIMESTAMP = 1552658543 +SHA256 (caronade/v0.1.0.tar.gz) = f38ef48bb783588610a3a65191cff9f230087a074668f1b7846ee089aab3335f +SIZE (caronade/v0.1.0.tar.gz) = 59372 +SHA256 (caronade/NYTimes-gziphandler-v1.1.1_GH0.tar.gz) = c236c216a16e4286338e66e0947938944992f918fe827c31f8745c0be98818d2 +SIZE (caronade/NYTimes-gziphandler-v1.1.1_GH0.tar.gz) = 52107 +SHA256 (caronade/go-yaml-yaml-v2.2.2_GH0.tar.gz) = 42c3e4ef9eca2860d22b3c6c5582c6c13fb4b417e5ebc1acc56ee5e2c4ddcaff +SIZE (caronade/go-yaml-yaml-v2.2.2_GH0.tar.gz) = 70656 diff --git a/ports-mgmt/caronade/files/caronade.in b/ports-mgmt/caronade/files/caronade.in new file mode 100644 index 000000000000..d548a05b93c9 --- /dev/null +++ b/ports-mgmt/caronade/files/caronade.in @@ -0,0 +1,20 @@ +#!/bin/sh +# +# PROVIDE: caronade +# REQUIRE: networking + +. /etc/rc.subr + +name="caronade" +rcvar="caronade_enable" + +pidfile="/var/run/${name}.pid" +command="/usr/sbin/daemon" +command_args="-P ${pidfile} -r -o /var/log/caronade.log %%PREFIX%%/bin/caronade -config %%PREFIX%%/etc/caronade/caronade.yaml" + +load_rc_config $name + +: ${caronade_enable:="NO"} +: ${caronade_chdir:="%%PREFIX%%/caronade"} + +run_rc_command "$1" diff --git a/ports-mgmt/caronade/pkg-descr b/ports-mgmt/caronade/pkg-descr new file mode 100644 index 000000000000..8e042e28f38b --- /dev/null +++ b/ports-mgmt/caronade/pkg-descr @@ -0,0 +1,4 @@ +Caronade will automatically create build jobs using poudriere and portlint +whenever you push changes to your Git based ports repository. + +WWW: https://code.bluelife.at/decke/caronade diff --git a/ports-mgmt/caronade/pkg-plist b/ports-mgmt/caronade/pkg-plist new file mode 100644 index 000000000000..5d85958cf857 --- /dev/null +++ b/ports-mgmt/caronade/pkg-plist @@ -0,0 +1,9 @@ +bin/caronade +caronade/static/caronade.min.css +caronade/static/favicon-32.png +caronade/static/favicon-96.png +caronade/templates/index.html +caronade/work/portlint.mk +caronade/work/poudriere.mk +%%ETCDIR%%/caronade.yaml.sample +@dir caronade/builds |