builder-web/packaging/FreeBSD/MANIFEST

75 lines
1.8 KiB
Text
Raw Normal View History

2022-03-03 14:26:04 +00:00
name: builder-web
2021-06-09 15:17:40 +00:00
version: %%VERSION_NUM%%
2022-03-03 14:26:04 +00:00
origin: local/builder-web
2021-06-09 15:17:40 +00:00
comment: Builder web service
2023-06-03 13:34:42 +00:00
www: https://git.robur.coop/robur/builder-web
2021-06-09 15:17:40 +00:00
maintainer: Robur <team@robur.coop>
prefix: /usr/local
licenselogic: single
licenses: [ISCL]
flatsize: %%FLATSIZE%%
categories: [local]
deps {
gmp {
origin = "math/gmp";
},
libev {
origin = "devel/libev";
},
sqlite3 {
origin = "databases/sqlite3";
},
opam-graph {
origin = "local/opam-graph";
},
modulectomy {
origin = "local/modulectomy";
2021-06-09 15:17:40 +00:00
}
}
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 builder >/dev/null 2>&1; then
echo "Creating group 'builder' with gid '497'."
${PW} groupadd builder -g 497
else
echo "Using existing group 'builder'."
fi
echo "===> Creating users"
if ! ${PW} usershow builder >/dev/null 2>&1; then
echo "Creating user 'builder' with uid '497'."
${PW} useradd builder -u 497 -g 497 -c "builder daemon" -d /nonexistent -s /usr/sbin/nologin
else
echo "Using existing user 'builder'."
fi
EOD;
post-install = <<EOD
mkdir -p -m 700 /var/db/builder-web
chown builder:builder /var/db/builder-web
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 builder >/dev/null 2>&1; then
echo "==> You should manually remove the \"builder\" user. "
fi
if ${PW} groupshow builder >/dev/null 2>&1; then
echo "==> You should manually remove the \"builder\" group "
fi
EOD;
2021-06-09 15:17:40 +00:00
2021-11-12 14:03:28 +00:00
}
2021-06-09 15:17:40 +00:00
desc = <<EOD
A web server serving and accepting reproducible builds
EOD;