FreeBSD Bugzilla – Attachment 201943 Details for
Bug 235679
[NEW PORT] sysutils/bastille: jail automation framework
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
shar
bastille.shar.txt (text/plain), 4.17 KB, created by
Christer Edwards
on 2019-02-12 01:49:38 UTC
(
hide
)
Description:
shar
Filename:
MIME Type:
Creator:
Christer Edwards
Created:
2019-02-12 01:49:38 UTC
Size:
4.17 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># bastille ># bastille/pkg-descr ># bastille/files ># bastille/files/bastille.in ># bastille/distinfo ># bastille/Makefile ># bastille/pkg-plist ># >echo c - bastille >mkdir -p bastille > /dev/null 2>&1 >echo x - bastille/pkg-descr >sed 's/^X//' >bastille/pkg-descr << 'bfff46011c0d0a9ba9c0f884235033d2' >XBastille is a jail automation framework that allows you to >Xquickly create and manage FreeBSD jails. >X >XThe project focuses on secure defaults, automation and >Xrepeatable templates. >X >XWWW: https://bastillebsd.org >bfff46011c0d0a9ba9c0f884235033d2 >echo c - bastille/files >mkdir -p bastille/files > /dev/null 2>&1 >echo x - bastille/files/bastille.in >sed 's/^X//' >bastille/files/bastille.in << '84911f390c40fa1a4a13c7c9a60e24ed' >X#!/bin/sh >X >X# Bastille jail startup script >X# >X# PROVIDE: bastille >X# REQUIRE: LOGIN >X# KEYWORD: shutdown >X >X# Add the following to /etc/rc.conf[.local] to enable this service >X# >X# bastille_enable (bool): Set to NO by default. >X# Set it to YES to enable bastille. >X# bastille_list (string): Set to "ALL" by default. >X# Space separated list of jails to start. >X# >X >X. /etc/rc.subr >X >Xname=bastille >Xrcvar=${name}_enable >X >X: ${bastille_enable:=NO} >X: ${bastille_list:="ALL"} >X >Xcommand=%%PREFIX%%/bin/${name} >Xstart_cmd="bastille_start" >Xstop_cmd="bastille_stop" >Xrestart_cmd="bastille_stop && bastille_start" >X >Xbastille_start() >X{ >X if [ ! -n "${bastille_list}" ]; then >X echo "${bastille_list} is undefined" >X return 1 >X fi >X >X local _jail >X >X for _jail in ${bastille_list}; do >X echo "Starting Bastille Jail: ${_jail}" >X ${command} start ${_jail} >X done >X} >X >Xbastille_stop() >X{ >X if [ ! -n "${bastille_list}" ]; then >X echo "${bastille_list} is undefined" >X return 1 >X fi >X >X local _jail >X >X for _jail in ${bastille_list}; do >X echo "Stopping Bastille Jail: ${_jail}" >X ${command} stop ${_jail} >X done >X} >X >Xload_rc_config ${name} >Xrun_rc_command "$1" >84911f390c40fa1a4a13c7c9a60e24ed >echo x - bastille/distinfo >sed 's/^X//' >bastille/distinfo << '448522184b16e3aa764656e56a402091' >XTIMESTAMP = 1549341320 >XSHA256 (bastillebsd-bastille-0.3.20190204-57bd13c_GH0.tar.gz) = 8e9cc6041e2e34455b148ca07e25bbd50f5a3369b0bde1b8d828c7afb88a36ce >XSIZE (bastillebsd-bastille-0.3.20190204-57bd13c_GH0.tar.gz) = 494885 >448522184b16e3aa764656e56a402091 >echo x - bastille/Makefile >sed 's/^X//' >bastille/Makefile << '33d0b76f869ac672e52ec34026c9829c' >X# Created by: Christer Edwards <christer.edwards@gmail.com> >X# $FreeBSD: $ >X >XPORTNAME= bastille >XPORTVERSION= 0.3.20190204 >XCATEGORIES= sysutils >X >XMAINTAINER= christer.edwards@gmail.com >XCOMMENT= Jail automation framework. >X >XLICENSE= BSD3CLAUSE >XLICENSE_FILE= ${WRKSRC}/LICENSE >X >XUSE_GITHUB= yes >XGH_ACCOUNT= bastillebsd >XGH_TAGNAME= 57bd13c >X >XNO_BUILD= yes >XNO_ARCH= yes >X >XUSE_RC_SUBR= bastille >X >Xdo-install: >X ${INSTALL_SCRIPT} ${WRKSRC}/${PREFIX}/bin/bastille ${STAGEDIR}${PREFIX}/bin >X >Xpost-install: >X ${MKDIR} ${STAGEDIR}${ETCDIR} >X ${MKDIR} ${STAGEDIR}${DATADIR} >X (cd ${WRKSRC}/${DATADIR} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}) >X ${INSTALL_DATA} ${WRKSRC}/${ETCDIR}/bastille.conf ${STAGEDIR}${ETCDIR}/bastille.conf.sample >X >X.include <bsd.port.mk> >33d0b76f869ac672e52ec34026c9829c >echo x - bastille/pkg-plist >sed 's/^X//' >bastille/pkg-plist << '313686b326488195450bf9d689ca079e' >X@sample %%ETCDIR%%/bastille.conf.sample %%ETCDIR%%/bastille.conf >Xbin/bastille >X%%DATADIR%%/bootstrap.sh >X%%DATADIR%%/cmd.sh >X%%DATADIR%%/colors.pre.sh >X%%DATADIR%%/console.sh >X%%DATADIR%%/cp.sh >X%%DATADIR%%/create.sh >X%%DATADIR%%/destroy.sh >X%%DATADIR%%/freebsd_dist_fetch.sh >X%%DATADIR%%/htop.sh >X%%DATADIR%%/list.sh >X%%DATADIR%%/pkg.sh >X%%DATADIR%%/restart.sh >X%%DATADIR%%/service.sh >X%%DATADIR%%/start.sh >X%%DATADIR%%/stop.sh >X%%DATADIR%%/sysrc.sh >X%%DATADIR%%/template.sh >X%%DATADIR%%/top.sh >X%%DATADIR%%/update.sh >X%%DATADIR%%/upgrade.sh >X%%DATADIR%%/verify.sh >313686b326488195450bf9d689ca079e >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 235679
: 201943