albatross/packaging/MANIFEST

89 lines
2.6 KiB
Plaintext
Raw Normal View History

2018-10-06 23:34:47 +00:00
name: albatross
version: 1.0.%%GITVER%%_1
origin: local/albatross
2018-10-29 22:19:59 +00:00
comment: Albatross: orchestrate and manage MirageOS unikernels with Solo5
2018-10-12 17:56:17 +00:00
www: https://github.com/hannesm/albatross
2018-10-06 23:34:47 +00:00
maintainer: Hannes Mehnert <hannes@mehnert.org>
prefix: /usr/local
licenselogic: single
licenses: [NONE]
flatsize: %%FLATSIZE%%
categories: [local]
deps {
gmp {
origin = "math/gmp";
version = "6.1.2";
}
}
scripts : {
pre-install = <<EOD
if [ -n "${PKG_ROOTDIR}" ] && [ "${PKG_ROOTDIR}" != "/" ]; then
PW="/usr/sbin/pw -R ${PKG_ROOTDIR}"
else
PW=/usr/sbin/pw
fi
echo "===> Creating groups."
if ! ${PW} groupshow albatross >/dev/null 2>&1; then
echo "Creating group 'albatross' with gid '496'."
${PW} groupadd albatross -g 496
else
echo "Using existing group 'albatross'."
fi
echo "===> Creating users"
if ! ${PW} usershow albatross >/dev/null 2>&1; then
echo "Creating user 'albatross' with uid '496'."
${PW} useradd albatross -u 496 -g 496 -c "albatross daemon" -d /nonexistent -s /usr/sbin/nologin
else
echo "Using existing user 'albatross'."
fi
EOD;
post-install = <<EOD
mkdir -p /var/run/albatross/util /var/run/albatross/fifo
chown albatross:albatross /var/run/albatross/util /var/run/albatross/fifo
chmod 2760 /var/run/albatross/fifo
2019-03-27 23:11:43 +00:00
chgrp albatross /usr/local/libexec/albatross/albatrossd
chmod 2750 /usr/local/libexec/albatross/albatrossd
2018-10-06 23:34:47 +00:00
EOD;
post-deinstall = <<EOD
if [ -n "${PKG_ROOTDIR}" ] && [ "${PKG_ROOTDIR}" != "/" ]; then
PW="/usr/sbin/pw -R ${PKG_ROOTDIR}"
else
PW=/usr/sbin/pw
fi
if ${PW} usershow albatross >/dev/null 2>&1; then
echo "==> You should manually remove the \"albatross\" user. "
fi
if ${PW} groupshow albatross >/dev/null 2>&1; then
echo "==> You should manually remove the \"albatross\" group "
fi
EOD;
}
desc = <<EOD
A set of binaries to manage, provision, and deploy virtual machine images.
EOD;
messages [
{
message = <<EOD
===================================================================
you need to:
* modify /etc/devfs.rules to include:
add path 'vmm/solo5*' mode 0660 group albatross
2019-01-13 21:02:16 +00:00
* start TLS endpoint via inetd on port 1025, add to /etc/inetd.conf:
2019-03-27 23:11:43 +00:00
blackjack stream tcp nowait albatross /usr/local/libexec/albatross/alabtross_tls_inetd albatross_tls_inetd /usr/local/etc/albatross/cacert.pem /usr/local/etc/albatross/server.pem /usr/local/etc/albatross/server.key
2018-11-23 19:28:33 +00:00
and add cacert.pem server.pem and server.key to /usr/local/etc/albatross
* install solo5-hvt.net solo5-hvt.block solo5-hvt.block-net solo5-hvt.none
in /var/db/albatross
2018-10-06 23:34:47 +00:00
===================================================================
EOD;
}
]