diff --git a/init.sh b/init.sh new file mode 100644 index 00000000000..48ac4e22be3 --- /dev/null +++ b/init.sh @@ -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 \ No newline at end of file diff --git a/srcpkgs/66-boot/INSTALL b/srcpkgs/66-boot/INSTALL new file mode 100644 index 00000000000..cf8471b65b2 --- /dev/null +++ b/srcpkgs/66-boot/INSTALL @@ -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 \ No newline at end of file diff --git a/srcpkgs/66-boot/INSTALL.msg b/srcpkgs/66-boot/INSTALL.msg new file mode 100644 index 00000000000..a804c1f8920 --- /dev/null +++ b/srcpkgs/66-boot/INSTALL.msg @@ -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 diff --git a/srcpkgs/66-boot/files/66-boot/init-voidlinux b/srcpkgs/66-boot/files/66-boot/init-voidlinux new file mode 100644 index 00000000000..1d497c12507 --- /dev/null +++ b/srcpkgs/66-boot/files/66-boot/init-voidlinux @@ -0,0 +1,2 @@ +#!/usr/bin/execlineb -P +66-boot -m -b "Void Linux" diff --git a/srcpkgs/66-boot/files/66-boot/tty@ b/srcpkgs/66-boot/files/66-boot/tty@ new file mode 100644 index 00000000000..dcb2671922f --- /dev/null +++ b/srcpkgs/66-boot/files/66-boot/tty@ @@ -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 diff --git a/srcpkgs/66-boot/files/acpid/acpid b/srcpkgs/66-boot/files/acpid/acpid new file mode 100644 index 00000000000..0615f88e519 --- /dev/null +++ b/srcpkgs/66-boot/files/acpid/acpid @@ -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 diff --git a/srcpkgs/66-boot/files/alsa/alsa-daemon b/srcpkgs/66-boot/files/alsa/alsa-daemon new file mode 100644 index 00000000000..5e21430f0a8 --- /dev/null +++ b/srcpkgs/66-boot/files/alsa/alsa-daemon @@ -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) diff --git a/srcpkgs/66-boot/files/alsa/alsa-restore b/srcpkgs/66-boot/files/alsa/alsa-restore new file mode 100644 index 00000000000..d1cdadbd24b --- /dev/null +++ b/srcpkgs/66-boot/files/alsa/alsa-restore @@ -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) diff --git a/srcpkgs/66-boot/files/avahi-daemon/avahi-daemon b/srcpkgs/66-boot/files/avahi-daemon/avahi-daemon new file mode 100644 index 00000000000..a1b77491fa3 --- /dev/null +++ b/srcpkgs/66-boot/files/avahi-daemon/avahi-daemon @@ -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 ) diff --git a/srcpkgs/66-boot/files/connman/connmand b/srcpkgs/66-boot/files/connman/connmand new file mode 100644 index 00000000000..e26810947f6 --- /dev/null +++ b/srcpkgs/66-boot/files/connman/connmand @@ -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 diff --git a/srcpkgs/66-boot/files/cronie/cronie b/srcpkgs/66-boot/files/cronie/cronie new file mode 100644 index 00000000000..7b2c8a8385e --- /dev/null +++ b/srcpkgs/66-boot/files/cronie/cronie @@ -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 diff --git a/srcpkgs/66-boot/files/cupsd/cupsd b/srcpkgs/66-boot/files/cupsd/cupsd new file mode 100644 index 00000000000..462262a8514 --- /dev/null +++ b/srcpkgs/66-boot/files/cupsd/cupsd @@ -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 diff --git a/srcpkgs/66-boot/files/dbus/dbus b/srcpkgs/66-boot/files/dbus/dbus new file mode 100644 index 00000000000..43ccfffeb81 --- /dev/null +++ b/srcpkgs/66-boot/files/dbus/dbus @@ -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 diff --git a/srcpkgs/66-boot/files/dbus/dbus-session@ b/srcpkgs/66-boot/files/dbus/dbus-session@ new file mode 100644 index 00000000000..87311000b35 --- /dev/null +++ b/srcpkgs/66-boot/files/dbus/dbus-session@ @@ -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 diff --git a/srcpkgs/66-boot/files/dbus/dbus.conf b/srcpkgs/66-boot/files/dbus/dbus.conf new file mode 100644 index 00000000000..ba288ffbfd8 --- /dev/null +++ b/srcpkgs/66-boot/files/dbus/dbus.conf @@ -0,0 +1 @@ +d /run/dbus 0755 diff --git a/srcpkgs/66-boot/files/dhclient/dhclient@ b/srcpkgs/66-boot/files/dhclient/dhclient@ new file mode 100644 index 00000000000..921711c4677 --- /dev/null +++ b/srcpkgs/66-boot/files/dhclient/dhclient@ @@ -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 diff --git a/srcpkgs/66-boot/files/dhcpcd/dhcpcd b/srcpkgs/66-boot/files/dhcpcd/dhcpcd new file mode 100644 index 00000000000..12bea397f53 --- /dev/null +++ b/srcpkgs/66-boot/files/dhcpcd/dhcpcd @@ -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 diff --git a/srcpkgs/66-boot/files/docker/docker b/srcpkgs/66-boot/files/docker/docker new file mode 100644 index 00000000000..70ae7ebd427 --- /dev/null +++ b/srcpkgs/66-boot/files/docker/docker @@ -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 diff --git a/srcpkgs/66-boot/files/docker/dockerd b/srcpkgs/66-boot/files/docker/dockerd new file mode 100644 index 00000000000..4ef999d35c6 --- /dev/null +++ b/srcpkgs/66-boot/files/docker/dockerd @@ -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 \ No newline at end of file diff --git a/srcpkgs/66-boot/files/elogind/elogind b/srcpkgs/66-boot/files/elogind/elogind new file mode 100644 index 00000000000..be30993df00 --- /dev/null +++ b/srcpkgs/66-boot/files/elogind/elogind @@ -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 diff --git a/srcpkgs/66-boot/files/elogind/elogind.conf b/srcpkgs/66-boot/files/elogind/elogind.conf new file mode 100644 index 00000000000..688130118c8 --- /dev/null +++ b/srcpkgs/66-boot/files/elogind/elogind.conf @@ -0,0 +1 @@ +d /run/systemd 0755 diff --git a/srcpkgs/66-boot/files/libvirt/libvirtd b/srcpkgs/66-boot/files/libvirt/libvirtd new file mode 100644 index 00000000000..30eaf1286fb --- /dev/null +++ b/srcpkgs/66-boot/files/libvirt/libvirtd @@ -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 ) diff --git a/srcpkgs/66-boot/files/libvirt/virtlockd b/srcpkgs/66-boot/files/libvirt/virtlockd new file mode 100644 index 00000000000..f28cf0589b4 --- /dev/null +++ b/srcpkgs/66-boot/files/libvirt/virtlockd @@ -0,0 +1,10 @@ +[main] +@type = longrun +@description = "Virtual machine lock manager" +@user = ( root ) +@depends = ( virtlockd-socket ) +@options = ( log ) + +[start] +@build = auto +@execute = ( virtlockd ) diff --git a/srcpkgs/66-boot/files/libvirt/virtlockd-socket b/srcpkgs/66-boot/files/libvirt/virtlockd-socket new file mode 100644 index 00000000000..46470b48234 --- /dev/null +++ b/srcpkgs/66-boot/files/libvirt/virtlockd-socket @@ -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 +) diff --git a/srcpkgs/66-boot/files/libvirt/virtlogd b/srcpkgs/66-boot/files/libvirt/virtlogd new file mode 100644 index 00000000000..e50f36abc60 --- /dev/null +++ b/srcpkgs/66-boot/files/libvirt/virtlogd @@ -0,0 +1,9 @@ +[main] +@type = longrun +@description = "Virtual machine log manager" +@user = ( root ) +@options = ( log ) + +[start] +@build = auto +@execute = ( virtlogd ) diff --git a/srcpkgs/66-boot/files/lightdm/lightdm b/srcpkgs/66-boot/files/lightdm/lightdm new file mode 100644 index 00000000000..d1d1a9f6cf9 --- /dev/null +++ b/srcpkgs/66-boot/files/lightdm/lightdm @@ -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 ) diff --git a/srcpkgs/66-boot/files/lighttpd/lighttpd b/srcpkgs/66-boot/files/lighttpd/lighttpd new file mode 100644 index 00000000000..140a1b093a8 --- /dev/null +++ b/srcpkgs/66-boot/files/lighttpd/lighttpd @@ -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 diff --git a/srcpkgs/66-boot/files/lvm2/lvm2-lvmetad b/srcpkgs/66-boot/files/lvm2/lvm2-lvmetad new file mode 100644 index 00000000000..5239c994f61 --- /dev/null +++ b/srcpkgs/66-boot/files/lvm2/lvm2-lvmetad @@ -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 diff --git a/srcpkgs/66-boot/files/lvm2/lvm2-lvmpolld b/srcpkgs/66-boot/files/lvm2/lvm2-lvmpolld new file mode 100644 index 00000000000..fafe0bbf9bb --- /dev/null +++ b/srcpkgs/66-boot/files/lvm2/lvm2-lvmpolld @@ -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 diff --git a/srcpkgs/66-boot/files/lvm2/lvm2-monitor b/srcpkgs/66-boot/files/lvm2/lvm2-monitor new file mode 100644 index 00000000000..369d58b6fc8 --- /dev/null +++ b/srcpkgs/66-boot/files/lvm2/lvm2-monitor @@ -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 +) diff --git a/srcpkgs/66-boot/files/metalog/metalog b/srcpkgs/66-boot/files/metalog/metalog new file mode 100644 index 00000000000..49d9ca1b582 --- /dev/null +++ b/srcpkgs/66-boot/files/metalog/metalog @@ -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 diff --git a/srcpkgs/66-boot/files/mysqld/mysqld b/srcpkgs/66-boot/files/mysqld/mysqld new file mode 100644 index 00000000000..7138fb4c810 --- /dev/null +++ b/srcpkgs/66-boot/files/mysqld/mysqld @@ -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 diff --git a/srcpkgs/66-boot/files/mysqld/mysqld-initdb b/srcpkgs/66-boot/files/mysqld/mysqld-initdb new file mode 100644 index 00000000000..79358776522 --- /dev/null +++ b/srcpkgs/66-boot/files/mysqld/mysqld-initdb @@ -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 diff --git a/srcpkgs/66-boot/files/networkmanager/networkmanager b/srcpkgs/66-boot/files/networkmanager/networkmanager new file mode 100644 index 00000000000..f2abd06afc7 --- /dev/null +++ b/srcpkgs/66-boot/files/networkmanager/networkmanager @@ -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 diff --git a/srcpkgs/66-boot/files/nfs-server/blkmapd b/srcpkgs/66-boot/files/nfs-server/blkmapd new file mode 100644 index 00000000000..75c63cadec8 --- /dev/null +++ b/srcpkgs/66-boot/files/nfs-server/blkmapd @@ -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 diff --git a/srcpkgs/66-boot/files/nfs-server/nfs-modules b/srcpkgs/66-boot/files/nfs-server/nfs-modules new file mode 100644 index 00000000000..da75dca3ad3 --- /dev/null +++ b/srcpkgs/66-boot/files/nfs-server/nfs-modules @@ -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 diff --git a/srcpkgs/66-boot/files/nfs-server/nfs-mounts b/srcpkgs/66-boot/files/nfs-server/nfs-mounts new file mode 100644 index 00000000000..29a4b6c9ecd --- /dev/null +++ b/srcpkgs/66-boot/files/nfs-server/nfs-mounts @@ -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 diff --git a/srcpkgs/66-boot/files/nfs-server/nfs-server b/srcpkgs/66-boot/files/nfs-server/nfs-server new file mode 100644 index 00000000000..cac3e2cc06f --- /dev/null +++ b/srcpkgs/66-boot/files/nfs-server/nfs-server @@ -0,0 +1,5 @@ +[main] +@type = bundle +@description = "nfs main service" +@user = ( root ) +@contents = ( rpcbind nfs-utils rpc.mountd ) diff --git a/srcpkgs/66-boot/files/nfs-server/nfs-utils b/srcpkgs/66-boot/files/nfs-server/nfs-utils new file mode 100644 index 00000000000..552d0441a17 --- /dev/null +++ b/srcpkgs/66-boot/files/nfs-server/nfs-utils @@ -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 ) diff --git a/srcpkgs/66-boot/files/nfs-server/rpc.gssd b/srcpkgs/66-boot/files/nfs-server/rpc.gssd new file mode 100644 index 00000000000..b7b3eab4385 --- /dev/null +++ b/srcpkgs/66-boot/files/nfs-server/rpc.gssd @@ -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 diff --git a/srcpkgs/66-boot/files/nfs-server/rpc.idmapd b/srcpkgs/66-boot/files/nfs-server/rpc.idmapd new file mode 100644 index 00000000000..086816d1f3e --- /dev/null +++ b/srcpkgs/66-boot/files/nfs-server/rpc.idmapd @@ -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 diff --git a/srcpkgs/66-boot/files/nfs-server/rpc.mountd b/srcpkgs/66-boot/files/nfs-server/rpc.mountd new file mode 100644 index 00000000000..bb5438c391a --- /dev/null +++ b/srcpkgs/66-boot/files/nfs-server/rpc.mountd @@ -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 diff --git a/srcpkgs/66-boot/files/nfs-server/rpc.statd b/srcpkgs/66-boot/files/nfs-server/rpc.statd new file mode 100644 index 00000000000..61900f61444 --- /dev/null +++ b/srcpkgs/66-boot/files/nfs-server/rpc.statd @@ -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 diff --git a/srcpkgs/66-boot/files/nfs-server/rpcbind b/srcpkgs/66-boot/files/nfs-server/rpcbind new file mode 100644 index 00000000000..eda31df2114 --- /dev/null +++ b/srcpkgs/66-boot/files/nfs-server/rpcbind @@ -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 diff --git a/srcpkgs/66-boot/files/nfs-server/sm-notify b/srcpkgs/66-boot/files/nfs-server/sm-notify new file mode 100644 index 00000000000..d5ac72837d2 --- /dev/null +++ b/srcpkgs/66-boot/files/nfs-server/sm-notify @@ -0,0 +1,9 @@ +[main] +@type = longrun +@description = "sm-notify daemon" +@user = ( root ) +@options = ( log ) + +[start] +@build = auto +@execute = ( sm-notify ) diff --git a/srcpkgs/66-boot/files/ntpd/ntpd b/srcpkgs/66-boot/files/ntpd/ntpd new file mode 100644 index 00000000000..fd8f275c071 --- /dev/null +++ b/srcpkgs/66-boot/files/ntpd/ntpd @@ -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 + diff --git a/srcpkgs/66-boot/files/nullmailer/nullmailer b/srcpkgs/66-boot/files/nullmailer/nullmailer new file mode 100644 index 00000000000..80a65608ce8 --- /dev/null +++ b/srcpkgs/66-boot/files/nullmailer/nullmailer @@ -0,0 +1,11 @@ +[main] +@type = classic +@description = "nullmailer" +@user = ( root ) +@options = ( log ) + +[start] +@build = auto +@runas = _nullmail +@execute = ( +execl-cmdline -s { nullmailer-send } ) \ No newline at end of file diff --git a/srcpkgs/66-boot/files/openntpd/openntpd b/srcpkgs/66-boot/files/openntpd/openntpd new file mode 100644 index 00000000000..35e015d904f --- /dev/null +++ b/srcpkgs/66-boot/files/openntpd/openntpd @@ -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 diff --git a/srcpkgs/66-boot/files/popcorn/popcorn b/srcpkgs/66-boot/files/popcorn/popcorn new file mode 100644 index 00000000000..f9e8e9bcc74 --- /dev/null +++ b/srcpkgs/66-boot/files/popcorn/popcorn @@ -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 diff --git a/srcpkgs/66-boot/files/postgresql/postgresql b/srcpkgs/66-boot/files/postgresql/postgresql new file mode 100644 index 00000000000..a1105b7501c --- /dev/null +++ b/srcpkgs/66-boot/files/postgresql/postgresql @@ -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 diff --git a/srcpkgs/66-boot/files/pulseaudio/pulseaudio b/srcpkgs/66-boot/files/pulseaudio/pulseaudio new file mode 100644 index 00000000000..d4576d2c727 --- /dev/null +++ b/srcpkgs/66-boot/files/pulseaudio/pulseaudio @@ -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 ) diff --git a/srcpkgs/66-boot/files/sddm/sddm b/srcpkgs/66-boot/files/sddm/sddm new file mode 100644 index 00000000000..8ac5ec19fee --- /dev/null +++ b/srcpkgs/66-boot/files/sddm/sddm @@ -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 ) diff --git a/srcpkgs/66-boot/files/sshd/sshd b/srcpkgs/66-boot/files/sshd/sshd new file mode 100644 index 00000000000..d7eaebdf93b --- /dev/null +++ b/srcpkgs/66-boot/files/sshd/sshd @@ -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 diff --git a/srcpkgs/66-boot/files/tor/tor b/srcpkgs/66-boot/files/tor/tor new file mode 100644 index 00000000000..884b3493616 --- /dev/null +++ b/srcpkgs/66-boot/files/tor/tor @@ -0,0 +1,9 @@ +[main] +@type = longrun +@description = "tor daemon" +@user = ( root ) +@options = ( log ) + +[start] +@build = auto +@execute = ( exec -c tor --quiet --runasdaemon 0 ) diff --git a/srcpkgs/66-boot/files/ufw/ufw b/srcpkgs/66-boot/files/ufw/ufw new file mode 100644 index 00000000000..d25a110d343 --- /dev/null +++ b/srcpkgs/66-boot/files/ufw/ufw @@ -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 +) diff --git a/srcpkgs/66-boot/files/wireguard/wireguard@ b/srcpkgs/66-boot/files/wireguard/wireguard@ new file mode 100644 index 00000000000..3589cffb53f --- /dev/null +++ b/srcpkgs/66-boot/files/wireguard/wireguard@ @@ -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) diff --git a/srcpkgs/66-boot/files/wpa_supplicant/wpa_supplicant b/srcpkgs/66-boot/files/wpa_supplicant/wpa_supplicant new file mode 100644 index 00000000000..2653b9af457 --- /dev/null +++ b/srcpkgs/66-boot/files/wpa_supplicant/wpa_supplicant @@ -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 diff --git a/srcpkgs/66-boot/files/wpa_supplicant/wpa_supplicant@ b/srcpkgs/66-boot/files/wpa_supplicant/wpa_supplicant@ new file mode 100644 index 00000000000..7411e03be1e --- /dev/null +++ b/srcpkgs/66-boot/files/wpa_supplicant/wpa_supplicant@ @@ -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 diff --git a/srcpkgs/66-boot/files/xdg-user-dirs/xdg-user-dirs b/srcpkgs/66-boot/files/xdg-user-dirs/xdg-user-dirs new file mode 100644 index 00000000000..b97a7c51b02 --- /dev/null +++ b/srcpkgs/66-boot/files/xdg-user-dirs/xdg-user-dirs @@ -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 ) diff --git a/srcpkgs/66-boot/template b/srcpkgs/66-boot/template new file mode 100644 index 00000000000..ab811d84083 --- /dev/null +++ b/srcpkgs/66-boot/template @@ -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 " +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/ + } +} \ No newline at end of file diff --git a/srcpkgs/66-service-acpid b/srcpkgs/66-service-acpid new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-acpid @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-alsa b/srcpkgs/66-service-alsa new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-alsa @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-avahi-daemon b/srcpkgs/66-service-avahi-daemon new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-avahi-daemon @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-connman b/srcpkgs/66-service-connman new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-connman @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-cronie b/srcpkgs/66-service-cronie new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-cronie @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-cupsd b/srcpkgs/66-service-cupsd new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-cupsd @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-dbus b/srcpkgs/66-service-dbus new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-dbus @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-dhclient b/srcpkgs/66-service-dhclient new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-dhclient @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-dhcpcd b/srcpkgs/66-service-dhcpcd new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-dhcpcd @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-docker b/srcpkgs/66-service-docker new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-docker @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-elogind b/srcpkgs/66-service-elogind new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-elogind @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-libvirt b/srcpkgs/66-service-libvirt new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-libvirt @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-lightdm b/srcpkgs/66-service-lightdm new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-lightdm @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-lighttpd b/srcpkgs/66-service-lighttpd new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-lighttpd @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-lvm2 b/srcpkgs/66-service-lvm2 new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-lvm2 @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-metalog b/srcpkgs/66-service-metalog new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-metalog @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-mysqld b/srcpkgs/66-service-mysqld new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-mysqld @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-networkmanager b/srcpkgs/66-service-networkmanager new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-networkmanager @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-nfs-server b/srcpkgs/66-service-nfs-server new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-nfs-server @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-ntpd b/srcpkgs/66-service-ntpd new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-ntpd @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-nullmailer b/srcpkgs/66-service-nullmailer new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-nullmailer @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-openntpd b/srcpkgs/66-service-openntpd new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-openntpd @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-popcorn b/srcpkgs/66-service-popcorn new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-popcorn @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-postgresql b/srcpkgs/66-service-postgresql new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-postgresql @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-pulseaudio b/srcpkgs/66-service-pulseaudio new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-pulseaudio @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-sddm b/srcpkgs/66-service-sddm new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-sddm @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-sshd b/srcpkgs/66-service-sshd new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-sshd @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-tor b/srcpkgs/66-service-tor new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-tor @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-ufw b/srcpkgs/66-service-ufw new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-ufw @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-wireguard b/srcpkgs/66-service-wireguard new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-wireguard @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-wpa_supplicant b/srcpkgs/66-service-wpa_supplicant new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-wpa_supplicant @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/66-service-xdg-user-dirs b/srcpkgs/66-service-xdg-user-dirs new file mode 120000 index 00000000000..61fe40e1154 --- /dev/null +++ b/srcpkgs/66-service-xdg-user-dirs @@ -0,0 +1 @@ +66-boot \ No newline at end of file diff --git a/srcpkgs/boot-user-66mod/template b/srcpkgs/boot-user-66mod/template new file mode 100644 index 00000000000..a64b118f958 --- /dev/null +++ b/srcpkgs/boot-user-66mod/template @@ -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 " +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 +} \ No newline at end of file