diff --git a/sysutils/reggae/Makefile b/sysutils/reggae/Makefile index 6d3f5429cfc8..ff4b03a5ba3e 100644 --- a/sysutils/reggae/Makefile +++ b/sysutils/reggae/Makefile @@ -1,20 +1,20 @@ PORTNAME= reggae -PORTVERSION= 0.2.1 +DISTVERSION= 0.2.3 CATEGORIES= sysutils MAINTAINER= meka@tilda.center COMMENT= Powerful DevOps solution heavily relaying on CBSD LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${LOCALBASE}/bin/cbsd:sysutils/cbsd \ sudo:security/sudo USE_GITHUB= yes GH_ACCOUNT= cbsd -USE_RC_SUBR= reggae_pf +USE_RC_SUBR= reggae reggae_pf NO_ARCH= yes .include diff --git a/sysutils/reggae/distinfo b/sysutils/reggae/distinfo index cb7d4132f607..de995aadeda4 100644 --- a/sysutils/reggae/distinfo +++ b/sysutils/reggae/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1644097601 -SHA256 (cbsd-reggae-0.2.1_GH0.tar.gz) = 1619d7b56fd582e841812379091860d0eae81b01381f493166be10a20340fc1b -SIZE (cbsd-reggae-0.2.1_GH0.tar.gz) = 53257 +TIMESTAMP = 1657705855 +SHA256 (cbsd-reggae-0.2.3_GH0.tar.gz) = 10228858c7247c5ab14a9bec86dead6749bdbf0afb6984b8fd563d80c158ca65 +SIZE (cbsd-reggae-0.2.3_GH0.tar.gz) = 50216 diff --git a/sysutils/reggae/files/reggae.in b/sysutils/reggae/files/reggae.in new file mode 100644 index 000000000000..9e071f123e41 --- /dev/null +++ b/sysutils/reggae/files/reggae.in @@ -0,0 +1,38 @@ +#!/bin/sh + +# PROVIDE: reggae +# KEYWORD: shutdown + +. /etc/rc.subr + +name=reggae +desc="reggae backend" +rcvar=${name}_enable +load_rc_config $name + +: ${reggae_enable:="NO"} +: ${reggae_socket_dir:="/var/run/reggae"} + +pidfile="/var/run/${name}.pid" +procname=/bin/sh +start_precmd="${name}_prestart" +start_cmd="${name}_start" + + +reggae_prestart() { + install -d "${reggae_socket_dir}" +} + + +reggae_start() { + echo -n "Starting ${name} ... " + /usr/sbin/daemon -S %%PREFIX%%/bin/reggae service "${reggae_socket_dir}" "${pidfile}" + status=$? + if [ "${status}" = "0" ]; then + echo "done" + else + echo "failed!" + fi +} + +run_rc_command $* diff --git a/sysutils/reggae/pkg-plist b/sysutils/reggae/pkg-plist index 3a3abdd30d8f..29a900ba03b3 100644 --- a/sysutils/reggae/pkg-plist +++ b/sysutils/reggae/pkg-plist @@ -1,140 +1,148 @@ bin/reggae %%ETCDIR%%.conf.sample man/man1/reggae-ansible.1.gz man/man1/reggae-chef.1.gz man/man1/reggae-init.1.gz man/man1/reggae-project.1.gz man/man1/reggae-provision.1.gz man/man1/reggae-puppet.1.gz man/man1/reggae-register.1.gz man/man1/reggae-salt.1.gz man/man1/reggae-service.1.gz man/man1/reggae-shell.1.gz man/man1/reggae.1.gz %%DATADIR%%/cbsd-profile/jail-freebsd-reggae.conf %%DATADIR%%/cbsd-profile/skel/etc/crontab %%DATADIR%%/cbsd-profile/skel/etc/group %%DATADIR%%/cbsd-profile/skel/etc/mail/aliases %%DATADIR%%/cbsd-profile/skel/etc/mail/aliases.db %%DATADIR%%/cbsd-profile/skel/etc/make.conf %%DATADIR%%/cbsd-profile/skel/etc/master.passwd %%DATADIR%%/cbsd-profile/skel/etc/motd %%DATADIR%%/cbsd-profile/skel/etc/passwd %%DATADIR%%/cbsd-profile/skel/etc/pwd.db %%DATADIR%%/cbsd-profile/skel/etc/rc.conf %%DATADIR%%/cbsd-profile/skel/etc/spwd.db %%DATADIR%%/cbsd-profile/skel/root/.bashrc %%DATADIR%%/cbsd-profile/skel/root/.cshrc %%DATADIR%%/cbsd-profile/skel/usr/home/provision/.cshrc %%DATADIR%%/cbsd-profile/skel/usr/home/provision/.history %%DATADIR%%/cbsd-profile/skel/usr/home/provision/.login %%DATADIR%%/cbsd-profile/skel/usr/home/provision/.login_conf %%DATADIR%%/cbsd-profile/skel/usr/home/provision/.mail_aliases %%DATADIR%%/cbsd-profile/skel/usr/home/provision/.mailrc %%DATADIR%%/cbsd-profile/skel/usr/home/provision/.profile %%DATADIR%%/cbsd-profile/skel/usr/home/provision/.rhosts %%DATADIR%%/cbsd-profile/skel/usr/home/provision/.shrc %%DATADIR%%/cbsd-profile/skel/usr/local/etc/sudoers +%%DATADIR%%/cbsd-profile/system/clone-local.d/placeholder +%%DATADIR%%/cbsd-profile/system/clone.d/placeholder +%%DATADIR%%/cbsd-profile/system/create.d/placeholder +%%DATADIR%%/cbsd-profile/system/facts.d/placeholder %%DATADIR%%/cbsd-profile/system/facts.d/reggae_ip +%%DATADIR%%/cbsd-profile/system/master_create.d/placeholder %%DATADIR%%/cbsd-profile/system/master_poststart.d/placeholder %%DATADIR%%/cbsd-profile/system/master_poststop.d/deregister.sh %%DATADIR%%/cbsd-profile/system/master_poststop.d/placeholder %%DATADIR%%/cbsd-profile/system/master_prestart.d/placeholder %%DATADIR%%/cbsd-profile/system/master_prestart.d/register.sh %%DATADIR%%/cbsd-profile/system/master_prestop.d/placeholder %%DATADIR%%/cbsd-profile/system/remove.d/placeholder +%%DATADIR%%/cbsd-profile/system/rename.d/placeholder %%DATADIR%%/cbsd-profile/system/start.d/placeholder %%DATADIR%%/cbsd-profile/system/stop.d/placeholder %%DATADIR%%/id_rsa %%DATADIR%%/id_rsa.pub %%DATADIR%%/mk/ansible.mk %%DATADIR%%/mk/bhyve-service.mk %%DATADIR%%/mk/chef.mk %%DATADIR%%/mk/common.mk %%DATADIR%%/mk/frameworks/freenit.project.mk %%DATADIR%%/mk/frameworks/freenit.service.mk %%DATADIR%%/mk/freenit.project.mk %%DATADIR%%/mk/freenit.service.mk %%DATADIR%%/mk/jail-service.mk %%DATADIR%%/mk/project.mk %%DATADIR%%/mk/puppet.mk %%DATADIR%%/mk/salt.mk %%DATADIR%%/mk/service.mk %%DATADIR%%/mk/shell.mk %%DATADIR%%/mk/use.mk %%DATADIR%%/scripts/bhyve-init.sh %%DATADIR%%/scripts/cbsd-init.sh %%DATADIR%%/scripts/chef-provision.sh %%DATADIR%%/scripts/default.conf %%DATADIR%%/scripts/expect-run.sh %%DATADIR%%/scripts/get-config.sh %%DATADIR%%/scripts/get-ip.sh %%DATADIR%%/scripts/import.sh %%DATADIR%%/scripts/init.sh %%DATADIR%%/scripts/master-init.sh %%DATADIR%%/scripts/network-init.sh %%DATADIR%%/scripts/pf.sh %%DATADIR%%/scripts/pkg-upgrade.sh %%DATADIR%%/scripts/project-init.sh %%DATADIR%%/scripts/puppet-provision.sh %%DATADIR%%/scripts/read-pass.sh %%DATADIR%%/scripts/register.sh %%DATADIR%%/scripts/salt-provision.sh %%DATADIR%%/scripts/scp.sh +%%DATADIR%%/scripts/service.sh %%DATADIR%%/scripts/shell-provision.sh %%DATADIR%%/scripts/ssh-ping.sh %%DATADIR%%/scripts/ssh.sh %%DATADIR%%/scripts/update-profiles.sh %%DATADIR%%/scripts/version.sh %%DATADIR%%/skel/ansible/ansible/group_vars/.keep %%DATADIR%%/skel/ansible/ansible/inventory/.keep %%DATADIR%%/skel/ansible/ansible/roles/.keep %%DATADIR%%/skel/ansible/requirements.yml %%DATADIR%%/skel/ansible/templates/site.yml.tpl %%DATADIR%%/skel/chef/chef/cookbooks/core/recipes/default.rb %%DATADIR%%/skel/puppet/puppet/manifests/site.pp %%DATADIR%%/skel/salt/salt/states/core.sls %%DATADIR%%/skel/salt/salt/states/top.sls %%DATADIR%%/skel/shell/shell/provision.sh %%DATADIR%%/templates/Makefile.project %%DATADIR%%/templates/Makefile.service %%DATADIR%%/templates/ansible/group_vars/all.tpl %%DATADIR%%/templates/ansible/inventory.local.tpl %%DATADIR%%/templates/ansible/inventory.remote.tpl %%DATADIR%%/templates/cbsd-bhyve.conf.tpl %%DATADIR%%/templates/cbsd-vnet.conf.tpl %%DATADIR%%/templates/cbsd.conf.tpl -%%DATADIR%%/templates/cbsd.zone -%%DATADIR%%/templates/cbsd_reverse.zone %%DATADIR%%/templates/cloud-devops.sh %%DATADIR%%/templates/cloud-init/meta-data %%DATADIR%%/templates/cloud-init/user-data %%DATADIR%%/templates/cloud-initial.sh %%DATADIR%%/templates/devfs.rules %%DATADIR%%/templates/dhcpcd.conf %%DATADIR%%/templates/dhcpd-hook.sh %%DATADIR%%/templates/dhcpd.conf +%%DATADIR%%/templates/dhcpd6.conf %%DATADIR%%/templates/export-ports.sh %%DATADIR%%/templates/freebsd-update.conf %%DATADIR%%/templates/gitignore %%DATADIR%%/templates/gitignore.project %%DATADIR%%/templates/initenv.conf %%DATADIR%%/templates/install-packages.sh %%DATADIR%%/templates/ip-by-mac.sh +%%DATADIR%%/templates/linux.conf.tpl %%DATADIR%%/templates/master.conf %%DATADIR%%/templates/master.fstab %%DATADIR%%/templates/mount-project.sh %%DATADIR%%/templates/netif %%DATADIR%%/templates/network %%DATADIR%%/templates/nsd.conf %%DATADIR%%/templates/pf.conf %%DATADIR%%/templates/pkg.conf %%DATADIR%%/templates/reggae-register.sh %%DATADIR%%/templates/resolvconf.conf +%%DATADIR%%/templates/rtadvd.conf %%DATADIR%%/templates/rtsold %%DATADIR%%/templates/setup-vm.sh %%DATADIR%%/templates/sudoers %%DATADIR%%/templates/unbound.conf %%DATADIR%%/templates/unbound_cbsd.conf %%DATADIR%%/templates/unbound_control.conf %%DATADIR%%/templates/xorg.sh