~weird/pkg-openbsd

A set of scripts to automate building OpenBSD ports.
a month ago

0cdcf3e devel/nspr 4.35

a month ago

#pkg-openbsd

A set of scripts to automate building OpenBSD ports.

https://pkg.weird.cafe

#Setup

# create a new user for unprivilaged tasks
useradd -m -d /home/robot -s /sbin/nologin -u 2000 -g =uid robot

# allow root to use it
echo "permit nopass root as robot" >> /etc/doas.conf

# make a workspace dir somewhere
mkdir -p /pkgbuild/robot
chown robot:robot /pkgbuild/robot

# clone the repo
cd /pkgbuild/robot
doas -u robot git clone https://git.sr.ht/~weird/pkg-openbsd
doas -u robot chmod +x pkg-openbsd/*.sh

# create a signing key
doas -u robot signify -Gns sign-pkg.sec -p sign-pkg.pub
mv sign-pkg.sec /etc/signify/

# start the workflow (maybe add a cron job)
./pkg-openbsd/workflow.sh ...

#Resources