Merge branch '66-services' into build
continuous-integration/drone/push Build is failing Details

This commit is contained in:
teldra 2020-02-10 11:07:15 +01:00
commit 962743d058
93 changed files with 1349 additions and 0 deletions

14
init.sh Normal file
View File

@ -0,0 +1,14 @@
#!/bin/sh
echo XBPS_CHROOT_CMD=ethereal >> etc/conf
echo XBPS_ALLOW_CHROOT_BREAKOUT=yes >> etc/conf
ln -s / masterdir
echo tausche repo url
sed -i "s/repo.voidlinux.eu/alpha.de.repo.voidlinux.org/" /usr/share/xbps.d/00-repository-main.conf
echo update system
xbps-install -Suy
xbps-install -Suy
xbps-install -Suy void-repo-multilib
echo installiere git und bash
xbps-install -Suy git bash base-devel gcc-multilib file
git diff --name-status FETCH_HEAD...HEAD | grep "^[AM].*srcpkgs/[^/]*/template$" | cut -d/ -f 2 | tee /tmp/templates | sed "s/^/ /"
cat /tmp/templates

10
srcpkgs/66-boot/INSTALL Normal file
View File

@ -0,0 +1,10 @@
if [ "$UPDATE" = "no" ]; then
case "${ACTION}" in
post)
66-tree -n boot
66-enable -t boot boot
66-tree -ncE root
66-enable -t root tty@tty1 tty@tty2 tty@tty3
;;
esac
fi

View File

@ -0,0 +1,9 @@
To use 66 try the following:
cat > /etc/66/init-voidlinux << EOF
#!/usr/bin/execlineb -P
66-boot -m -b "Void Linux"
EOF
chmod +x /etc/66/init-voidlinux
sed -i '/GRUB_CMDLINE_LINUX_DEFAULT=/s/"$/ \
init=\/etc\/66\/init-voidlinux"/' /etc/default/grub

View File

@ -0,0 +1,2 @@
#!/usr/bin/execlineb -P
66-boot -m -b "Void Linux"

View File

@ -0,0 +1,12 @@
[main]
@type = classic
@description = "Launch @I"
@user = ( root )
@options = ( env )
[start]
@build = auto
@execute = ( execl-cmdline -s { agetty ${cmd_args} @I } )
[environment]
cmd_args=!-J 38400

View File

@ -0,0 +1,19 @@
[main]
@type = classic
@description = "acpid daemon"
@user = ( root )
@options = ( log env )
[start]
@build = auto
@execute = ( execl-cmdline -s { acpid ${cmd_args} -c ${conf_dir} -s ${socket_dir}/${socket_name} } )
[stop]
@build = auto
@execute = ( s6-rmrf ${socket_dir}/${socket_name} )
[environment]
cmd_args=!-f -n
conf_dir=!/etc/acpi/events
socket_dir=!/run
socket_name=!acpid.socket

View File

@ -0,0 +1,13 @@
[main]
@type = longrun
@description = "Save periodically the sound card state"
@options = ( log )
@user = (root)
[start]
@build = auto
@execute = (alsactl -n 19 -c daemon)
[stop]
@build = auto
@execute = (alsactl kill save_and_quit)

View File

@ -0,0 +1,12 @@
[main]
@type = oneshot
@description = "Restore and store sound card state"
@user = (root)
[start]
@build = auto
@execute = (alsactl restore)
[stop]
@build = auto
@execute = (alsactl store)

View File

@ -0,0 +1,10 @@
[main]
@type = longrun
@description = "avahi-daemon"
@user = ( root )
@options = ( log )
@extdepends = ( dbus )
[start]
@build = auto
@execute = ( exec -c avahi-daemon -s )

View File

@ -0,0 +1,13 @@
[main]
@type = longrun
@description = "connman daemon"
@user = ( root )
@options = ( log env )
@extdepends = ( dbus )
[start]
@build = auto
@execute = ( execl-cmdline -s { connmand ${cmd_args} } )
[environment]
cmd_args=!-n --nobacktrace --nodnsproxy

View File

@ -0,0 +1,13 @@
[main]
@type = classic
@description = "cronie - cron daemon"
@user = ( root )
@options = ( log env )
[start]
@build = auto
@execute = (
execl-cmdline -s { cronie-crond ${cmd_args} } )
[environment]
cmd_args=!-n

View File

@ -0,0 +1,12 @@
[main]
@type = classic
@description = "cups daemon"
@user = ( root )
@options = ( log env )
[start]
@build = auto
@execute = ( execl-cmdline -s { cupsd ${cmd_args} } )
[environment]
cmd_args=!-f

View File

@ -0,0 +1,31 @@
[main]
@type = longrun
@description = "dbus system daemon"
@user = ( root )
@maxdeath = 3
@notify = 4
@options = ( log env )
@timeout-up=3000
[start]
@build = auto
@execute = (
s6-ipcserver-socketbinder -- ${socket_dir}/${socket_name}
foreground { dbus-uuidgen --ensure }
execl-cmdline -s { dbus-daemon ${cmd_args} }
)
[stop]
@build = auto
@execute = ( s6-rmrf ${socket_dir}/${socket_name} )
[logger]
@build = auto
@backup = 3
@maxsize = 1000000
@timestamp = iso
[environment]
cmd_args=!--system --print-pid=4 --nofork --nopidfile --address=unix:path=/run/dbus/system_bus_socket
socket_dir=!/run/dbus
socket_name=!system_bus_socket

View File

@ -0,0 +1,34 @@
[main]
@type = longrun
@description = "dbus session daemon for @I user"
@user = ( user )
@maxdeath = 3
@notify = 4
@options = ( log env )
@timeout-up=3000
[start]
@build = auto
@execute = (
execl-subuidgid -o @I
s6-ipcserver-socketbinder -- ${socket_dir}/${socket_name}
execl-cmdline -s { dbus-daemon ${cmd_args} }
)
[stop]
@build = auto
@execute = (
execl-subuidgid -o @I
s6-rmrf ${socket_dir}/${socket_name}
)
[logger]
@build = auto
@backup = 3
@maxsize = 1000000
@timestamp = iso
[environment]
cmd_args=!--session --print-pid=4 --nofork --nopidfile --address=unix:path=/run/user/${UID}/dbus
socket_dir=!/run/user/${UID}
socket_name=!dbus

View File

@ -0,0 +1 @@
d /run/dbus 0755

View File

@ -0,0 +1,40 @@
[main]
@type = classic
@description = "dhclient on @I"
@user = ( root )
@options = ( log env )
[start]
@build = auto
@execute = (
foreground
{
if -nt { s6-test -d ${dir_run} }
s6-mkdir -p -m 0755 ${dir_run}
}
foreground
{
if
{
if -nt { s6-test -d ${conf_dir} }
s6-mkdir -p -m 0755 ${conf_dir}
}
s6-touch ${conf_dir}/${conf_file}
}
execl-cmdline -s { dhclient ${cmd_args} -cf ${conf_dir}/${conf_file} -pf ${dir_run}/${pid_name} @I }
)
[stop]
@build = auto
@execute = (
if { execl-cmdline -s { dhclient ${cmd_args_stop} } }
s6-rmrf ${pid_file}
)
[environment]
cmd_args=!-d -v
cmd_args_stop=!-r
conf_dir=!/etc/dhcp
conf_file=!dhclient-@I.conf
dir_run=!/run/dhclient-@I
pid_name=!dhclient.pid

View File

@ -0,0 +1,19 @@
[main]
@type = classic
@description = "dhcpcd daemon"
@user = ( root )
@options = ( log env )
[start]
@build = auto
@execute = ( execl-cmdline -s { dhcpcd ${cmd_args} -f ${conf_dir}/${conf_file} } )
[stop]
@build = auto
@execute = ( execl-cmdline -s { dhcpcd ${cmd_args_stop} } )
[environment]
cmd_args=!-B
cmd_args_stop=!-x
conf_dir=!/etc
conf_file=!dhcpcd.conf

View File

@ -0,0 +1,22 @@
[main]
@type = classic
@name = docker
@description = "docker service"
@options = ( log )
@user = (root)
@maxdeath = 3
[start]
@build = auto
@execute =
(
s6-ipcserver-socketbinder -a 0660 -- /run/docker.sock
if { chown root:docker /run/docker.sock }
dockerd -H unix:///run/docker.sock
)
[logger]
@build = auto
@timestamp = iso

View File

@ -0,0 +1,22 @@
[main]
@type = classic
@name = dockerd
@description = "dockerd service"
@options = ( log )
@user = (root)
@maxdeath = 3
[start]
@build = auto
@execute =
(
s6-ipcserver-socketbinder -a 0660 -- /run/docker.sock
if { chown root:docker /run/docker.sock }
dockerd -H unix:///run/docker.sock
)
[logger]
@build = auto
@timestamp = iso

View File

@ -0,0 +1,17 @@
[main]
@type = longrun
@description = "elogind daemon"
@user = ( root )
@options = ( log )
@extdepends = ( dbus )
[start]
@build = auto
@execute = ( exec -c /usr/libexec/elogind/elogind.wrapper )
[stop]
@build = auto
@execute = ( s6-rmrf /run/systemd )
[environment]
dir_run=!/run/systemd

View File

@ -0,0 +1 @@
d /run/systemd 0755

View File

@ -0,0 +1,11 @@
[main]
@type = longrun
@description = "Virtualization daemon"
@user = ( root )
@depends = ( dbus virtlockd virtlogd )
@extdepends = ( dbus )
@options = ( log )
[start]
@build = auto
@execute=( libvirtd )

View File

@ -0,0 +1,10 @@
[main]
@type = longrun
@description = "Virtual machine lock manager"
@user = ( root )
@depends = ( virtlockd-socket )
@options = ( log )
[start]
@build = auto
@execute = ( virtlockd )

View File

@ -0,0 +1,16 @@
[main]
@type = oneshot
@description = "Virtual machine lock manager socket"
@user = (root)
[start]
@build = auto
@execute = (
foreground
{
if -nt { s6-test -d /run/libvirt }
s6-mkdir -p -m 0755 /run/libvirt
}
s6-ipcserver-socketbinder -a 0600 -- /run/libvirt/virtlockd-sock
true
)

View File

@ -0,0 +1,9 @@
[main]
@type = longrun
@description = "Virtual machine log manager"
@user = ( root )
@options = ( log )
[start]
@build = auto
@execute = ( virtlogd )

View File

@ -0,0 +1,14 @@
[main]
@type = longrun
@description = "lightdm daemon"
@user = ( root )
@options = ( log )
@extdepends = ( dbus )
[start]
@build = auto
@execute = ( exec -c lightdm )
[stop]
@build = auto
@execute = ( s6-rmrf /run/lightdm/root )

View File

@ -0,0 +1,16 @@
[main]
@type = classic
@description = "lighttpd daemon"
@user = ( root )
@down-signal = INT
@options = ( log env )
[start]
@build = auto
@execute = (
execl-cmdline -s { lighttpd ${cmd_args} -f ${conf_dir}/${conf_file} )
[environment]
cmd_args=!-D
conf_dir=!/etc/lighttpd
conf_file=!lighttpd.conf

View File

@ -0,0 +1,23 @@
[main]
@type= classic
@name= lvm2-lvmetad
@description= "lvm2 metadata daemon"
@user= ( root )
@options= ( log env )
[start]
@build=auto
@execute=
(
execl-cmdline -s
{
lvmetad ${cmd_args} -p ${pid_path}/${pid_name} -s ${socket_path}/${socket_name}
}
)
[environment]
cmd_args=!-f
pid_path=!/run/lvm
pid_name=!lvmetad.pid
socket_path=!/run/lvm
socket_name=!lvmetad.socket

View File

@ -0,0 +1,23 @@
[main]
@type= classic
@name= lvm2-lvmpolld
@description= "lvm2 poll daemon"
@user= ( root )
@options= ( log env )
[start]
@build=auto
@execute=
(
execl-cmdline -s
{
lvmpolld ${cmd_args} -p ${pid_path}/${pid_name} -s ${socket_path}/${socket_name}
}
)
[environment]
cmd_args=!-f
pid_path=!/run/lvm
pid_name=!lvm-polld.pid
socket_path=!/run/lvm
socket_name=!lvm-polld.socket

View File

@ -0,0 +1,21 @@
[main]
@type= oneshot
@name= lvm2-monitor
@description= "monitoring of lvm2 mirrors, snapshots ..."
@user= ( root )
@options= ( log )
@depends= ( lvm2-lvmetad dm-event )
[start]
@build=auto
@execute=
(
exec lvm vgchange --monitor y --ignoreskippedcluster
)
[stop]
@build=auto
@execute=
(
exec lvm vgchange --monitor n --ignoreskippedcluster
)

View File

@ -0,0 +1,26 @@
[main]
@type = classic
@description = "metalog daemon"
@user = ( root )
@options = ( log env )
[start]
@build = auto
@execute = (
execl-cmdline -s { /usr/bin/metalog configfile=${conf_dir}/${conf_file} pidfile=${dir_run}/${pid_name} } )
[logger]
@build = auto
@timestamp = iso
[stop]
@build = auto
@execute = (
bash -c "kill -TERM $(<${dir_run}/${pid_name})"
s6-rmrf ${dir_run}/${pid_name} )
[environment]
conf_dir=!/etc/metalog
conf_file=!metalog.conf
dir_run=!/run
pid_name=!metalog.pid

View File

@ -0,0 +1,16 @@
[main]
@type = longrun
@description = "mariadb server daemon"
@user = ( root )
@options = ( log env )
[start]
@build = auto
@runas = mysql
@execute =
(
execl-cmdline -s { mysqld --datadir=${data_dir} }
)
[environment]
data_dir=!/var/lib/mysql

View File

@ -0,0 +1,17 @@
[main]
@type = oneshot
@name = mysqld-initdb
@description = "initialize mariadb database"
@user = ( root )
@options = ( log env )
[start]
@build = auto
@execute =
(
sh -c "mysql_install_db --user=${cmd_args} --datadir=${data_dir}"
)
[environment]
cmd_args=!mysql
data_dir=!/var/lib/mysql

View File

@ -0,0 +1,13 @@
[main]
@type = longrun
@description = "networkmanager daemon"
@user = ( root )
@options = ( log env )
@extdepends = ( dbus )
[start]
@build = auto
@execute = ( execl-cmdline -s { NetworkManager ${cmd_args} } )
[environment]
cmd_args=!-n

View File

@ -0,0 +1,13 @@
[main]
@type = longrun
@description = "blkmapd daemon"
@user = ( root )
@options = ( log env )
@depends = ( nfs-pipefs )
[start]
@build = auto
@execute = ( execl-cmdline -s { blkmapd ${cmd_args} } )
[environment]
cmd_args=!-f

View File

@ -0,0 +1,20 @@
[main]
@type = oneshot
@description = "load nfs modules"
@user = ( root )
@options = ( env )
@depends = (rpcbind)
[start]
@build = auto
@execute = (
forx i { ${mnt_type_sunrpc} ${mnt_type_nfs} ${mnt_type_nfsd} }
importas -u type i
if -nt { grep -qs ${type} /proc/filesystems }
modprobe -q ${type}
)
[environment]
mnt_type_sunrpc=!sunrpc
mnt_type_nfs=!nfs
mnt_type_nfsd=!nfsd

View File

@ -0,0 +1,47 @@
[main]
@type = oneshot
@description = "mount nfs directory"
@user = ( root )
@options = ( env )
@depends = ( rpcbind nfs-modules )
[start]
@build = auto
@execute = (
foreground
{
forx -p dir { ${mnt_dir_fs} ${mnt_dir_nfsd} }
importas -u dir dir
if -nt { mountpoint -q ${dir} }
foreground
{
if -nt { s6-test -d ${dir} }
s6-mkdir -p -m0755 ${dir}
}
}
forx -p mnt { ${cmd_args_fs} ${cmd_args_nfsd} }
importas -u mnt mnt
execl-cmdline -s { s6-mount ${mnt} } )
[stop]
@build=auto
@execute=(
foreground
{
redirfd -r 0 /proc/mounts
pipeline { grep " nfs[^d] " }
pipeline { cut -d " " -f 2 }
forstdin -d"\n" -- mnt
importas -ui mnt mnt
umount -f ${mnt}
}
forx -p mnt { ${cmd_args_fs} ${cmd_args_nfsd} }
importas -u mnt mnt
execl-cmdline -s { umount -l ${mnt} } )
[environment]
cmd_args_fs=!-t rpc_pipefs sunrpc /var/lib/nfs/rpc_pipefs
mnt_dir_fs=!/var/lib/nfs/rpc_pipefs
cmd_args_nfsd=!-t nfsd nfsd /proc/fs/nfsd
mnt_dir_nfsd=!/proc/fs/nfsd

View File

@ -0,0 +1,5 @@
[main]
@type = bundle
@description = "nfs main service"
@user = ( root )
@contents = ( rpcbind nfs-utils rpc.mountd )

View File

@ -0,0 +1,17 @@
[main]
@type = oneshot
@description = "nfs export service"
@user = ( root )
@depends = ( rpcbind nfs-modules nfs-mounts )
[start]
@build = auto
@execute = (
if { exportfs -ra }
rpc.nfsd -- 3)
[stop]
@build = auto
@execute = (
if { rpc.nfsd -- 0 }
exportfs -a )

View File

@ -0,0 +1,16 @@
[main]
@type = longrun
@description = "rpc.gssd daemon"
@user = ( root )
@options = ( log env )
@depends = ( nfs-utils )
[start]
@build = auto
@execute = (
if { s6-test -e ${scripts_conf} }
execl-cmdline -s { rpc.gssd ${cmd_args} } )
[environment]
scripts_conf=!/etc/krb5.keytab
cmd_args=!-f

View File

@ -0,0 +1,13 @@
[main]
@type = longrun
@description = "rpc.idmapd daemon"
@user = ( root )
@options = ( log env )
@depends = ( nfs-utils rpc.statd)
[start]
@build = auto
@execute = ( execl-cmdline -s { rpc.idmapd ${cmd_args} } )
[environment]
cmd_args=!-f

View File

@ -0,0 +1,13 @@
[main]
@type = longrun
@description = "rpc.mountd daemon"
@user = ( root )
@options = ( log env )
@depends = ( nfs-utils rpc.statd )
[start]
@build = auto
@execute = ( execl-cmdline -s { rpc.mountd ${cmd_args} } )
[environment]
cmd_args=!-F

View File

@ -0,0 +1,13 @@
[main]
@type = longrun
@description = "rpc.statd daemon"
@user = ( root )
@options = ( log env )
@depends = ( nfs-utils )
[start]
@build = auto
@execute = ( execl-cmdline -s { rpc.statd ${cmd_args} } )
[environment]
cmd_args=!-F -d

View File

@ -0,0 +1,12 @@
[main]
@type = longrun
@description = "rpcbind daemon"
@user = ( root )
@options = ( log env )
[start]
@build = auto
@execute = ( execl-cmdline -s { rpcbind ${cmd_args} } )
[environment]
cmd_args=!-f

View File

@ -0,0 +1,9 @@
[main]
@type = longrun
@description = "sm-notify daemon"
@user = ( root )
@options = ( log )
[start]
@build = auto
@execute = ( sm-notify )

View File

@ -0,0 +1,15 @@
[main]
@type = classic
@description = "ntpd daemon"
@user = ( root )
@options = ( log env )
[start]
@build = auto
@execute = ( execl-cmdline -s { ntpd ${cmd_args} -c ${conf_dir}/${conf_file} } )
[environment]
cmd_args=!-n -u ntpd:ntpd
conf_dir=!/etc/ntp
conf_file=!ntp.conf

View File

@ -0,0 +1,11 @@
[main]
@type = classic
@description = "nullmailer"
@user = ( root )
@options = ( log )
[start]
@build = auto
@runas = _nullmail
@execute = (
execl-cmdline -s { nullmailer-send } )

View File

@ -0,0 +1,31 @@
[main]
@type = classic
@description = "ntpd daemon"
@user = ( root )
@options = ( log env )
[start]
@build = auto
@execute = (
foreground
{
if -nt { s6-test -d /var/emtpy }
s6-mkdir -p -m 0755 /var/empty
}
foreground
{
if -nt { s6-test -d ${socket_dir} }
s6-mkdir -p -m 0755 ${socket_dir}
}
execl-cmdline -s { ntpd ${cmd_args} -f ${conf_dir}/${conf_file} } )
[stop]
@build = auto
@execute = ( s6-rmrf ${socket_dir}/${socket_name} )
[environment]
cmd_args=!-d -s
conf_dir=!/etc/openntpd
conf_file=!ntpd.conf
socket_dir=!/run/openntpd
socket_name=!openntpd.sock

View File

@ -0,0 +1,14 @@
[main]
@type = classic
@description = "popcorn"
@user = ( root )
@options = ( env )
[start]
@build = auto
@runas = _popcorn
@execute = ( snooze popcorn --server ${SERVER} --port ${PORT} )
[environment]
SERVER=popcorn.voidlinux.org
PORT=8001

View File

@ -0,0 +1,31 @@
[main]
@type = classic
@description = "postgresql daemon"
@user = ( root )
@down-signal = HUP
@options = ( log env )
[start]
@build = auto
@execute = (
execl-subuidgid postgres
foreground {
if {
if -nt { s6-test -d ${dir_run} }
s6-mkdir -p -m0755 ${dir_run}
}
s6-chown -u ${UID} -g ${GID} ${dir_run}"
}
s6-setuidgid postgres
execl-cmdline -s { postgres -D ${dir_data} } )
[stop]
@build = auto
@runas = postgres
@execute = (
execl-cmdline -s { pg_ctl stop -D ${dir_data} ${cmd_args_stop} } )
[environment]
dir_run=!/run/postgresql
dir_data=!/var/lib/postgresql/data
cmd_args_stop=!-m fast

View File

@ -0,0 +1,21 @@
[main]
@type = longrun
@description = "Start a pulseaudio session"
@user = ( user )
@options = ( log )
[start]
@build = auto
@execute=(
foreground
{
if -nt { s6-test -d ${XDG_RUNTIME_DIR}/pulse }
s6-mkdir -p -m 0755 ${XDG_RUNTIME_DIR}/pulse
}
s6-ipcserver-socketbinder -- ${XDG_RUNTIME_DIR}/pulse/native
pulseaudio --daemonize=no
)
[stop]
@build = auto
@execute = ( pulseaudio --kill )

View File

@ -0,0 +1,15 @@
[main]
@type = longrun
@description = "sddm daemon"
@user = ( root )
@options = ( log )
@extdepends = ( dbus )
@timeout-up = 3000
[start]
@build = auto
@execute = ( exec sddm )
[stop]
@build = auto
@execute = ( s6-rmrf /run/sddm )

View File

@ -0,0 +1,15 @@
[main]
@type = classic
@description = "ssh daemon"
@user = ( root )
@options = ( log env )
[start]
@build = auto
@execute = (
foreground { exec ssh-keygen -A }
execl-cmdline -s { /usr/bin/sshd -f ${conf_file} ${cmd_args} } )
[environment]
conf_file=!/etc/ssh/sshd_config
cmd_args=!-D

View File

@ -0,0 +1,9 @@
[main]
@type = longrun
@description = "tor daemon"
@user = ( root )
@options = ( log )
[start]
@build = auto
@execute = ( exec -c tor --quiet --runasdaemon 0 )

View File

@ -0,0 +1,26 @@
[main]
@type = oneshot
@description = "CLI Netfilter Manager"
@user = ( root )
[start]
@build = auto
@execute = (
if {
if -nt { s6-test -f /etc/ufw/ufw.conf }
if { 66-echo -- /etc/ufw/ufw.conf doesn't exist }
exit 111
}
if {
if -nt { s6-test -f /usr/lib/ufw/ufw-init }
if { 66-echo -- /usr/lib/ufw/ufw-init doesn't exist }
exit 111
}
/usr/lib/ufw/ufw-init start
)
[stop]
@build = auto
@execute = (
/usr/lib/ufw/ufw-init stop
)

View File

@ -0,0 +1,12 @@
[main]
@type = oneshot
@description = "Wireguard - @I"
@user = (root)
[start]
@build = auto
@execute = (wg-quick up @I)
[stop]
@build = auto
@execute = (wg-quick down @I)

View File

@ -0,0 +1,12 @@
[main]
@type = classic
@description = "wpa_supplicant daemon"
@user = ( root )
@options = ( log env )
[start]
@build = auto
@execute = ( execl-cmdline -s { wpa_supplicant ${cmd_args} } )
[environment]
cmd_args=!-udW

View File

@ -0,0 +1,12 @@
[main]
@type = classic
@description = "wpa_supplicant@@I daemon"
@user = ( root )
@options = ( log env )
[start]
@build = auto
@execute = ( execl-cmdline -s { wpa_supplicant ${cmd_args} } )
[environment]
cmd_args=!-c/etc/wpa_supplicant/wpa_supplicant-@I.conf -i@I

View File

@ -0,0 +1,9 @@
[main]
@type = oneshot
@name = xdg-user-dirs
@description = "Well-know user directory creation"
@user = ( user )
[start]
@build = auto
@execute = ( xdg-user-dirs-update )

334
srcpkgs/66-boot/template Normal file
View File

@ -0,0 +1,334 @@
# Template file for '66-boot'
pkgname=66-boot
_realpkgname=boot-66serv
version=0.1.2.1
revision=1
archs="noarch"
wrksrc=${_realpkgname}-v${version}
build_style=gnu-configure
makedepends="file"
depends="66 s6-rc 66-tools"
short_desc="Stage1 boot for 66"
maintainer="teldra <teldra@rotce.de>"
license="ISC"
homepage="https://framagit.org/Obarun/boot-66serv"
distfiles="https://framagit.org/Obarun/${_realpkgname}/-/archive/v${version}/${_realpkgname}-v${version}.tar.gz"
checksum="508fb91de713664ba5244f5d50a9cde106ce03be63dad24e03bfa813f40af2ea"
conf_files="/etc/66/*.conf
/etc/66/rc.local"
post_install() {
vinstall ${FILESDIR}/66-boot/tty@ 644 usr/share/66/service/
vinstall ${FILESDIR}/66-boot/init-voidlinux 655 etc/66/
vlicense LICENSE
}
66-service-sshd_package() {
short_desc="66 service - sshd"
depends+=" openssh ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/sshd/sshd 644 usr/share/66/service/
}
}
66-service-dbus_package() {
short_desc="66 service - dbus"
depends+=" dbus ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/dbus/dbus 644 usr/share/66/service/
vinstall ${FILESDIR}/dbus/dbus-session@ 644 usr/share/66/service/
vinstall ${FILESDIR}/dbus/dbus.conf 644 usr/lib/tmpfiles.d/
}
}
66-service-lightdm_package() {
short_desc="66 service - lightdm"
depends+=" lightdm ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/lightdm/lightdm 644 usr/share/66/service/
}
}
66-service-ntpd_package() {
short_desc="66 service - ntpd"
depends+=" ntp ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/ntpd/ntpd 644 usr/share/66/service/
}
}
66-service-elogind_package() {
short_desc="66 service - elogind"
depends+=" elogind ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/elogind/elogind 644 usr/share/66/service/
vinstall ${FILESDIR}/elogind/elogind.conf 644 usr/lib/tmpfiles.d/
}
}
66-service-dhcpcd_package() {
short_desc="66 service - dhcpcd"
depends+=" dhcpcd ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/dhcpcd/dhcpcd 644 usr/share/66/service/
}
}
66-service-networkmanager_package() {
short_desc="66 service - networkmanager"
depends+=" NetworkManager ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/networkmanager/networkmanager 644 usr/share/66/service/
}
}
66-service-alsa_package() {
short_desc="66 service - alsa"
depends+=" alsa-utils ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/alsa/alsa-daemon 644 usr/share/66/service/
vinstall ${FILESDIR}/alsa/alsa-restore 644 usr/share/66/service/
}
}
66-service-libvirt_package() {
short_desc="66 service - libvirt"
depends+=" libvirt ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/libvirt/libvirtd 644 usr/share/66/service/
vinstall ${FILESDIR}/libvirt/virtlockd 644 usr/share/66/service/
vinstall ${FILESDIR}/libvirt/virtlockd-socket 644 usr/share/66/service/
vinstall ${FILESDIR}/libvirt/virtlogd 644 usr/share/66/service/
}
}
66-service-wireguard_package() {
short_desc="66 service - wireguard"
depends+=" wireguard ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/wireguard/wireguard@ 644 usr/share/66/service/
}
}
66-service-cronie_package() {
short_desc="66 service - cronie"
depends+=" cronie ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/cronie/cronie 644 usr/share/66/service/
}
}
66-service-avahi-daemon_package() {
short_desc="66 service - avahi-daemon"
depends=" avahi ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/avahi-daemon/avahi-daemon 644 usr/share/66/service/
}
}
66-service-metalog_package() {
short_desc="66 service - metalog"
depends=" metalog ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/metalog/metalog 644 usr/share/66/service/
}
}
66-service-wpa_supplicant_package() {
short_desc="66 service - wpa_supplicant"
depends=" wpa_supplicant ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/wpa_supplicant/wpa_supplicant 644 usr/share/66/service/
vinstall ${FILESDIR}/wpa_supplicant/wpa_supplicant@ 644 usr/share/66/service/
}
}
66-service-sddm_package() {
short_desc="66 service - sddm"
depends=" sddm ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/sddm/sddm 644 usr/share/66/service/
}
}
66-service-lighttpd_package() {
short_desc="66 service - lighttpd"
depends=" lighttpd ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/lighttpd/lighttpd 644 usr/share/66/service/
}
}
66-service-dhclient_package() {
short_desc="66 service - dhclient"
depends=" dhclient ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/dhclient/dhclient@ 644 usr/share/66/service/
}
}
66-service-acpid_package() {
short_desc="66 service - acpid"
depends=" acpid ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/acpid/acpid 644 usr/share/66/service/
}
}
66-service-cupsd_package() {
short_desc="66 service - cupsd"
depends=" cupsd ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/cupsd/cupsd 644 usr/share/66/service/
}
}
66-service-nullmailer_package() {
short_desc="66 service - nullmailer"
depends=" nullmailer ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/nullmailer/nullmailer 644 usr/share/66/service/
}
}
66-service-docker_package() {
short_desc="66 service - docker"
depends=" docker ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/docker/docker 644 usr/share/66/service/
vinstall ${FILESDIR}/docker/dockerd 644 usr/share/66/service/
}
}
66-service-nfs-server_package() {
short_desc="66 service - nfs-server"
depends=" nfs-utils ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/nfs-server/blkmapd 644 usr/share/66/service/
vinstall ${FILESDIR}/nfs-server/nfs-modules 644 usr/share/66/service/
vinstall ${FILESDIR}/nfs-server/nfs-mounts 644 usr/share/66/service/
vinstall ${FILESDIR}/nfs-server/nfs-server 644 usr/share/66/service/
vinstall ${FILESDIR}/nfs-server/nfs-utils 644 usr/share/66/service/
vinstall ${FILESDIR}/nfs-server/rpc.gssd 644 usr/share/66/service/
vinstall ${FILESDIR}/nfs-server/rpc.idmapd 644 usr/share/66/service/
vinstall ${FILESDIR}/nfs-server/rpc.mountd 644 usr/share/66/service/
vinstall ${FILESDIR}/nfs-server/rpc.statd 644 usr/share/66/service/
vinstall ${FILESDIR}/nfs-server/rpcbind 644 usr/share/66/service/
vinstall ${FILESDIR}/nfs-server/sm-notify 644 usr/share/66/service/
}
}
66-service-connman_package() {
short_desc="66 service - connman"
depends=" connman ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/connman/connmand 644 usr/share/66/service/
}
}
66-service-openntpd_package() {
short_desc="66 service - openntpd"
depends=" openntpd ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/openntpd/openntpd 644 usr/share/66/service/
}
}
66-service-lvm2_package() {
short_desc="66 service - lvm2"
depends=" lvm2 ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/lvm2/lvm2-lvmetad 644 usr/share/66/service/
vinstall ${FILESDIR}/lvm2/lvm2-lvmpolld 644 usr/share/66/service/
vinstall ${FILESDIR}/lvm2/lvm2-monitor 644 usr/share/66/service/
}
}
66-service-ufw_package() {
short_desc="66 service - ufw"
depends=" ufw ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/ufw/ufw 644 usr/share/66/service/
}
}
66-service-pulseaudio_package() {
short_desc="66 service - pulseaudio"
depends=" pulseaudio ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/pulseaudio/pulseaudio 644 usr/share/66/service/
}
}
66-service-mysqld_package() {
short_desc="66 service - mysqld"
depends=" mysqld ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/mysqld/mysqld 644 usr/share/66/service/
vinstall ${FILESDIR}/mysqld/mysqld-initdb 644 usr/share/66/service/
}
}
66-service-xdg-user-dirs_package() {
short_desc="66 service - xdg-user-dirs"
depends=" xdg-user-dirs ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/xdg-user-dirs/xdg-user-dirs 644 usr/share/66/service/
}
}
66-service-postgresql_package() {
short_desc="66 service - postgresql"
depends=" postgresql ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/postgresql/postgresql 644 usr/share/66/service/
}
}
66-service-popcorn_package() {
short_desc="66 service - popcorn"
depends=" PopCorn ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/popcorn/popcorn 644 usr/share/66/service/
}
}
66-service-tor_package() {
short_desc="66 service - tor"
depends=" tor ${sourcepkg}>=${version}_${revision}"
homepage="https://framagit.org/pkg/observice"
pkg_install() {
vinstall ${FILESDIR}/tor/tor 644 usr/share/66/service/
}
}

1
srcpkgs/66-service-acpid Symbolic link
View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-alsa Symbolic link
View File

@ -0,0 +1 @@
66-boot

View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-connman Symbolic link
View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-cronie Symbolic link
View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-cupsd Symbolic link
View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-dbus Symbolic link
View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-dhclient Symbolic link
View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-dhcpcd Symbolic link
View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-docker Symbolic link
View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-elogind Symbolic link
View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-libvirt Symbolic link
View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-lightdm Symbolic link
View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-lighttpd Symbolic link
View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-lvm2 Symbolic link
View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-metalog Symbolic link
View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-mysqld Symbolic link
View File

@ -0,0 +1 @@
66-boot

View File

@ -0,0 +1 @@
66-boot

View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-ntpd Symbolic link
View File

@ -0,0 +1 @@
66-boot

View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-openntpd Symbolic link
View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-popcorn Symbolic link
View File

@ -0,0 +1 @@
66-boot

View File

@ -0,0 +1 @@
66-boot

View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-sddm Symbolic link
View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-sshd Symbolic link
View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-tor Symbolic link
View File

@ -0,0 +1 @@
66-boot

1
srcpkgs/66-service-ufw Symbolic link
View File

@ -0,0 +1 @@
66-boot

View File

@ -0,0 +1 @@
66-boot

View File

@ -0,0 +1 @@
66-boot

View File

@ -0,0 +1 @@
66-boot

View File

@ -0,0 +1,31 @@
# Template file for 'boot-user-66mod'
pkgname=boot-user-66mod
version=0.2.1
revision=1
archs="noarch"
wrksrc=${pkgname}-v${version}
build_style=meta
hostmakedepends=""
makedepends=""
depends="66 66-boot"
short_desc="66 - module to start a user service"
maintainer="teldra <teldra@rotce.de>"
license="ISC"
homepage="https://framagit.org/Obarun/boot-user-66mod"
distfiles="https://framagit.org/Obarun/${pkgname}/-/archive/v${version}/${pkgname}-v${version}.tar.gz"
checksum=1410328e45560f35f5b1ae57e9d676b09182b02dea0828924baeacc3a6d023cd
do_configure() {
sed -i '/service_system/s/lib/share/' scripts/66-mods.sh
sed -i '/module_system/s/lib/share/' scripts/66-mods.sh
}
do_install() {
vinstall scripts/66-mods.sh 755 usr/lib/66/scripts/
vmkdir usr/share/66/
vcopy module/ usr/share/66/
}
post_install() {
vlicense LICENSE
}