Skip to content

Commit

Permalink
sysutils/reggae: Update to 0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mekanix authored and nunotexbsd committed Jul 13, 2022
1 parent 57289e8 commit dac9072
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 7 deletions.
4 changes: 2 additions & 2 deletions sysutils/reggae/Makefile
@@ -1,5 +1,5 @@
PORTNAME= reggae
PORTVERSION= 0.2.1
DISTVERSION= 0.2.3
CATEGORIES= sysutils

MAINTAINER= meka@tilda.center
Expand All @@ -13,7 +13,7 @@ RUN_DEPENDS= ${LOCALBASE}/bin/cbsd:sysutils/cbsd \

USE_GITHUB= yes
GH_ACCOUNT= cbsd
USE_RC_SUBR= reggae_pf
USE_RC_SUBR= reggae reggae_pf

NO_ARCH= yes

Expand Down
6 changes: 3 additions & 3 deletions 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
38 changes: 38 additions & 0 deletions 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 $*
12 changes: 10 additions & 2 deletions sysutils/reggae/pkg-plist
Expand Up @@ -35,14 +35,20 @@ man/man1/reggae.1.gz
%%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
Expand Down Expand Up @@ -81,6 +87,7 @@ man/man1/reggae.1.gz
%%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
Expand All @@ -104,8 +111,6 @@ man/man1/reggae.1.gz
%%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
Expand All @@ -114,13 +119,15 @@ man/man1/reggae.1.gz
%%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
Expand All @@ -131,6 +138,7 @@ man/man1/reggae.1.gz
%%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
Expand Down

0 comments on commit dac9072

Please sign in to comment.