svn commit: r493313 - in head/sysutils: . bastille bastille/files
Kurt Jaeger
pi at FreeBSD.org
Mon Feb 18 19:22:30 UTC 2019
Author: pi
Date: Mon Feb 18 19:22:28 2019
New Revision: 493313
URL: https://svnweb.freebsd.org/changeset/ports/493313
Log:
New port: sysutils/bastille
Bastille is a jail automation framework that allows you to
quickly create and manage FreeBSD jails.
The project focuses on secure defaults, automation and
repeatable templates.
WWW: https://bastillebsd.org
PR: 235679
Submitted by: Christer Edwards <christer.edwards at gmail.com>
Added:
head/sysutils/bastille/
head/sysutils/bastille/Makefile (contents, props changed)
head/sysutils/bastille/distinfo (contents, props changed)
head/sysutils/bastille/files/
head/sysutils/bastille/files/bastille.in (contents, props changed)
head/sysutils/bastille/pkg-descr (contents, props changed)
head/sysutils/bastille/pkg-plist (contents, props changed)
Modified:
head/sysutils/Makefile
Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile Mon Feb 18 19:06:51 2019 (r493312)
+++ head/sysutils/Makefile Mon Feb 18 19:22:28 2019 (r493313)
@@ -97,6 +97,7 @@
SUBDIR += bareos16-client-static
SUBDIR += bareos16-server
SUBDIR += bareos16-traymonitor
+ SUBDIR += bastille
SUBDIR += batmon
SUBDIR += battmond
SUBDIR += battray
Added: head/sysutils/bastille/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/bastille/Makefile Mon Feb 18 19:22:28 2019 (r493313)
@@ -0,0 +1,32 @@
+# Created by: Christer Edwards <christer.edwards at gmail.com>
+# $FreeBSD$
+
+PORTNAME= bastille
+PORTVERSION= 0.3.20190204
+CATEGORIES= sysutils
+
+MAINTAINER= christer.edwards at gmail.com
+COMMENT= Jail automation framework
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USE_GITHUB= yes
+GH_ACCOUNT= bastillebsd
+GH_TAGNAME= 57bd13c
+
+NO_BUILD= yes
+NO_ARCH= yes
+
+USE_RC_SUBR= bastille
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PREFIX}/bin/bastille ${STAGEDIR}${PREFIX}/bin
+
+post-install:
+ ${MKDIR} ${STAGEDIR}${ETCDIR}
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ (cd ${WRKSRC}/${DATADIR} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
+ ${INSTALL_DATA} ${WRKSRC}/${ETCDIR}/bastille.conf ${STAGEDIR}${ETCDIR}/bastille.conf.sample
+
+.include <bsd.port.mk>
Added: head/sysutils/bastille/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/bastille/distinfo Mon Feb 18 19:22:28 2019 (r493313)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1549341320
+SHA256 (bastillebsd-bastille-0.3.20190204-57bd13c_GH0.tar.gz) = 8e9cc6041e2e34455b148ca07e25bbd50f5a3369b0bde1b8d828c7afb88a36ce
+SIZE (bastillebsd-bastille-0.3.20190204-57bd13c_GH0.tar.gz) = 494885
Added: head/sysutils/bastille/files/bastille.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/bastille/files/bastille.in Mon Feb 18 19:22:28 2019 (r493313)
@@ -0,0 +1,62 @@
+#!/bin/sh
+
+# Bastille jail startup script
+# $FreeBSD$
+#
+# PROVIDE: bastille
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+
+# Add the following to /etc/rc.conf[.local] to enable this service
+#
+# bastille_enable (bool): Set to NO by default.
+# Set it to YES to enable bastille.
+# bastille_list (string): Set to "ALL" by default.
+# Space separated list of jails to start.
+#
+
+. /etc/rc.subr
+
+name=bastille
+rcvar=${name}_enable
+
+: ${bastille_enable:=NO}
+: ${bastille_list:="ALL"}
+
+command=%%PREFIX%%/bin/${name}
+start_cmd="bastille_start"
+stop_cmd="bastille_stop"
+restart_cmd="bastille_stop && bastille_start"
+
+bastille_start()
+{
+ if [ ! -n "${bastille_list}" ]; then
+ echo "${bastille_list} is undefined"
+ return 1
+ fi
+
+ local _jail
+
+ for _jail in ${bastille_list}; do
+ echo "Starting Bastille Jail: ${_jail}"
+ ${command} start ${_jail}
+ done
+}
+
+bastille_stop()
+{
+ if [ ! -n "${bastille_list}" ]; then
+ echo "${bastille_list} is undefined"
+ return 1
+ fi
+
+ local _jail
+
+ for _jail in ${bastille_list}; do
+ echo "Stopping Bastille Jail: ${_jail}"
+ ${command} stop ${_jail}
+ done
+}
+
+load_rc_config ${name}
+run_rc_command "$1"
Added: head/sysutils/bastille/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/bastille/pkg-descr Mon Feb 18 19:22:28 2019 (r493313)
@@ -0,0 +1,7 @@
+Bastille is a jail automation framework that allows you to
+quickly create and manage FreeBSD jails.
+
+The project focuses on secure defaults, automation and
+repeatable templates.
+
+WWW: https://bastillebsd.org
Added: head/sysutils/bastille/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/bastille/pkg-plist Mon Feb 18 19:22:28 2019 (r493313)
@@ -0,0 +1,23 @@
+ at sample %%ETCDIR%%/bastille.conf.sample %%ETCDIR%%/bastille.conf
+bin/bastille
+%%DATADIR%%/bootstrap.sh
+%%DATADIR%%/cmd.sh
+%%DATADIR%%/colors.pre.sh
+%%DATADIR%%/console.sh
+%%DATADIR%%/cp.sh
+%%DATADIR%%/create.sh
+%%DATADIR%%/destroy.sh
+%%DATADIR%%/freebsd_dist_fetch.sh
+%%DATADIR%%/htop.sh
+%%DATADIR%%/list.sh
+%%DATADIR%%/pkg.sh
+%%DATADIR%%/restart.sh
+%%DATADIR%%/service.sh
+%%DATADIR%%/start.sh
+%%DATADIR%%/stop.sh
+%%DATADIR%%/sysrc.sh
+%%DATADIR%%/template.sh
+%%DATADIR%%/top.sh
+%%DATADIR%%/update.sh
+%%DATADIR%%/upgrade.sh
+%%DATADIR%%/verify.sh
More information about the svn-ports-all
mailing list