aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2017-01-13 17:59:54 +0000
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2017-01-13 17:59:54 +0000
commit83e31c10a5e45e96d6d8bdf6d67e9794a2a63f41 (patch)
tree19713983476a5a0f0d2801ca8e100ae38d1213a9 /sysutils
parent5ed2ce4ef5321161a4394eddd9c4a4199c08e30a (diff)
downloadports-83e31c10a5e45e96d6d8bdf6d67e9794a2a63f41.tar.gz
ports-83e31c10a5e45e96d6d8bdf6d67e9794a2a63f41.zip
Notes
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/paladin/Makefile28
-rw-r--r--sysutils/paladin/distinfo3
-rw-r--r--sysutils/paladin/pkg-descr3
-rw-r--r--sysutils/paladin/pkg-message3
-rw-r--r--sysutils/paladin/pkg-plist3
6 files changed, 41 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 95c95b1f4007..bd1bdc45089d 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -754,6 +754,7 @@
SUBDIR += packetbeat
SUBDIR += pacman
SUBDIR += paicc
+ SUBDIR += paladin
SUBDIR += pam_mount
SUBDIR += panicmail
SUBDIR += parafly
diff --git a/sysutils/paladin/Makefile b/sysutils/paladin/Makefile
new file mode 100644
index 000000000000..21cf503e2df7
--- /dev/null
+++ b/sysutils/paladin/Makefile
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+PORTNAME= paladin
+PORTVERSION= 1.0.0
+CATEGORIES= sysutils
+
+MAINTAINER= rwestlun@gmail.com
+COMMENT= Simple process supervisor
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= go
+GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
+
+USE_GITHUB= yes
+GH_ACCOUNT= rwestlund
+
+# Override default build command to pass ldflags.
+do-build:
+ @(cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install \
+ -ldflags="-X main.localbase=/usr/local" -v ${GO_TARGET})
+
+post-install:
+ @${CP} ${WRKSRC}/etc/paladin.conf.sample ${STAGEDIR}/${LOCALBASE}/etc/
+ @${CP} ${WRKSRC}/etc/rc.d/paladin ${STAGEDIR}/${LOCALBASE}/etc/rc.d/
+
+.include <bsd.port.mk>
diff --git a/sysutils/paladin/distinfo b/sysutils/paladin/distinfo
new file mode 100644
index 000000000000..7474071d3e5c
--- /dev/null
+++ b/sysutils/paladin/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1482315533
+SHA256 (rwestlund-paladin-1.0.0_GH0.tar.gz) = be39b3717818922a192886716e33e4a4fe6184264278ab6dece8f4d27127e873
+SIZE (rwestlund-paladin-1.0.0_GH0.tar.gz) = 615324
diff --git a/sysutils/paladin/pkg-descr b/sysutils/paladin/pkg-descr
new file mode 100644
index 000000000000..bb8ffd93a381
--- /dev/null
+++ b/sysutils/paladin/pkg-descr
@@ -0,0 +1,3 @@
+Simple process supervisor.
+
+WWW: https://github.com/rwestlund/paladin
diff --git a/sysutils/paladin/pkg-message b/sysutils/paladin/pkg-message
new file mode 100644
index 000000000000..6746cc640917
--- /dev/null
+++ b/sysutils/paladin/pkg-message
@@ -0,0 +1,3 @@
+To run paladin:
+- Edit /usr/local/etc/paladin.conf
+- Add paladin_enable="YES" to /etc/rc.conf
diff --git a/sysutils/paladin/pkg-plist b/sysutils/paladin/pkg-plist
new file mode 100644
index 000000000000..82270b3af7bb
--- /dev/null
+++ b/sysutils/paladin/pkg-plist
@@ -0,0 +1,3 @@
+bin/paladin
+@sample etc/paladin.conf.sample
+etc/rc.d/paladin