#Maintainer: George Vlahavas # Modified for Slint by Didier Spaier pkgname=zzz-settings pkgver=14.2 pkgrel=slint arch=noarch options=('noextract' 'nosrcpack') doinst() { # Somehow this doesn't seem to work from /var/log/setup/setup.htmlview rm -f usr/bin/htmlview cat << EOF > usr/bin/htmlview #!/bin/sh exec xdg-open "\$@" EOF chmod 755 usr/bin/htmlview # [ -f etc/rc.d/rc.font.new ] && rm -f etc/rc.d/rc.font.new if [ ! -f etc/rc.d/rc.keymap ]; then echo "#!/bin/sh" > etc/rc.d/rc.keymap echo "# Load the keyboard map. More maps are in /usr/share/kbd/keymaps." >> etc/rc.d/rc.keymap echo "if [ -x /usr/bin/loadkeys ]; then" >> etc/rc.d/rc.keymap echo " /usr/bin/loadkeys -u us.map" >> etc/rc.d/rc.keymap echo "fi" >> etc/rc.d/rc.keymap chmod 755 etc/rc.d/rc.keymap fi # make gamin use kernel notifications for file updates instead of polling # Cf. https://people.gnome.org/~veillard/gamin/config.html if [ -f etc/gamin/gaminrc ]; then sed -i "s/poll 15/kernel/" etc/gamin/gaminrc fi # this fixes problems with dialup connectimetofranceons ( cd etc/ppp ln -sf ../resolv.conf resolv.conf ) # enable ntp servers sed -i "s/^#server \(.*\) iburst/server \1 iburst/" etc/ntp.conf #!/bin/sh # set default running Slint system services after installation of the # packages. These settings can be changed during the configuration step # of Slint installation. # Initially written for Salix. # Some of these settings are redundant because they have been made during # packages' installation. But that will serve as a reminder - Didier # When we use the default value we mark it like that: (D). When we # change it we mark it like that: (!D). Here "default" means "resulting # of package's installation". # We need to have the acpid daemon running for acpi to work (D) if [ -r etc/rc.d/rc.acpid ]; then chmod +x etc/rc.d/rc.acpid fi # Do not start the alsa sound server, as pulse audio manages the sound # system (D) if [ -r etc/rc.d/rc.alsa ]; then chmod -x etc/rc.d/rc.alsa fi # Do not load ALSA OSS kernel modules (D) if [ -r etc/rc.d/rc.alsa-oss ]; then chmod -x etc/rc.d/rc.alsa-oss fi # Netatalk allows Unix-like operating systems to serve as file, print and # time servers for Macintosh computers. (from Wikipedia) # Not everyone needs that. (D) if [ -r etc/rc.d/rc.atalk ]; then chmod -x etc/rc.d/rc.atalk fi # autofs is a kernel-based auto mounter for Linux. (D) if [ -r etc/rc.d/rc.autofs ]; then chmod -x etc/rc.d/rc.autofs fi # Name server. Most users will rely on a remote one. (D) if [ -r etc/rc.d/rc.bind ]; then chmod -x etc/rc.d/rc.bind fi # Many people need to communicate with bluetooth devices. (D) if [ -r etc/rc.d/rc.bluetooth ]; then chmod +x etc/rc.d/rc.bluetooth fi # No default setting here for rc.brltty: if a Braille device was used # during installation, rc.brltty will be executable, else no (unless # changed afterwards by the user, of course). # cgroups (abbreviated from control groups) is a Linux kernel feature # that limits, accounts for, and isolates the resource usage (CPU, # memory, disk I/O, network, etc.) of a collection of processes. # (from Wikipedia) # (D). if [ -r etc/rc.d/rc.cgconfig ]; then chmod -x etc/rc.d/rc.cgconfig fi # (D). if [ -r etc/rc.d/rc.cgmanager ]; then chmod +x etc/rc.d/rc.cgmanager fi # (D). if [ -r etc/rc.d/rc.cgproxy ]; then chmod +x etc/rc.d/rc.cgproxy fi # (D). if [ -r etc/rc.d/rc.cgred ]; then chmod -x etc/rc.d/rc.cgred fi # Polkit (formerly Policy Kit) is a component for controlling system-wide # privileges in Unix-like operating systems. It provides an organized way # for non-privileged processes to communicate with privileged ones. # (from Wikipedia) # We need that executable e.g. to allow auto mount of removable devices # not listed in /etc/fstab by a regular users through a file manager # I guess. (D). if [ -r etc/rc.d/rc.consolekit ]; then chmod +x etc/rc.d/rc.consolekit fi # Most users will want to be able to change the policy for setting the # CPU frequency if possible (D). if [ -r etc/rc.d/rc.cpufreq ]; then chmod +x etc/rc.d/rc.cpufreq fi # Most users expect printing to work out of the box, I assume. So make # this script executable (!D). if [ -r etc/rc.d/rc.cups ]; then chmod +x etc/rc.d/rc.cups fi # Few users need to make remote CUPS printers available locally (D). if [ -r etc/rc.d/rc.cups-browsed ]; then chmod -x etc/rc.d/rc.cups-browsed fi # Most users won't need to run a small DNS/DHCP server that needs to be # configured first anyway (D). if [ -r etc/rc.d/rc.dnsmasq ]; then chmod -x etc/rc.d/rc.dnsmasq fi # rc.font will have been made executable during installation # No need to take care of that here (D). # if [ -r etc/rc.d/rc.font ]; then # chmod +x etc/rc.d/rc.font # fi # We need fuse control file system for a lot of stuff (D). if [ -r etc/rc.d/rc.fuse ]; then chmod +x etc/rc.d/rc.fuse fi # rc.gpm is created during configuration after installation, thus # does not exist yet. # Most users won't need to run an Apache server that needs to be # configured first anyway (D). if [ -r etc/rc.d/rc.httpd ]; then chmod -x etc/rc.d/rc.httpd fi # rc.inet1 brings up various system interfaces (D). if [ -r etc/rc.d/rc.inet1 ]; then chmod +x etc/rc.d/rc.inet1 fi # rc.inet2 boots up the entire network system (D). if [ -r etc/rc.d/rc.inet2 ]; then chmod +x etc/rc.d/rc.inet2 fi # rc.inetd is the BSD "super-server" daemon (D). The user needs # to edit /etc/inetd.conf for the services to be actually used. if [ -r etc/rc.d/rc.inetd ]; then chmod +x etc/rc.d/rc.inetd fi # rc.ip_forward allows the box to act acts as a router (D). if [ -r etc/rc.d/rc.ip_forward ]; then chmod -x etc/rc.d/rc.ip_forward fi # rc.keymap sets the kernel keyboard map (D). if [ -r etc/rc.d/rc.keymap ]; then chmod +x etc/rc.d/rc.keymap fi # rc.local allows to run custom commands at start up (D). if [ -r etc/rc.d/rc.local ]; then chmod -x etc/rc.d/rc.local fi # rc.loop loads the loop device kernel module if [ -r etc/rc.d/rc.loop ]; then chmod +x etc/rc.d/rc.loop fi # LXC (Linux Containers) is an operating-system-level virtualization # method for running multiple isolated Linux systems (containers) on a # control host using a single Linux kernel. # LXC combines kernel's cgroups and support for isolated namespaces to # provide an isolated environment for applications. (Wikipedia) (D) if [ -r etc/rc.d/rc.lxc ]; then chmod -x etc/rc.d/rc.lxc fi # rc.mcelog starts the mcelog hardware error logging, that logs and # handles CPU hardware errors on x86 systems. (D) if [ -r etc/rc.d/rc.mcelog ]; then chmod +x etc/rc.d/rc.mcelog fi # rc.messagebus starts the dbus daemon that broadcast notifications of # system event and associated messages (D). if [ -r etc/rc.d/rc.messagebus ]; then chmod +x etc/rc.d/rc.messagebus fi # rc.modules updates the kernel dependencies then runs rc.local, and # rc.modules-$(uname-r) if created by the admin (D). if [ -r etc/rc.d/rc.modules ]; then chmod +x etc/rc.d/rc.modules fi # rc.modules.local can load a few modules not automatically loaded case # occurring if adapted in that aim by the admin, as possibly # rc.modules-$(uname-r) (D). if [ -r etc/rc.d/rc.modules.local ]; then chmod +x etc/rc.d/rc.modules.local fi # rc.mysqld starts the database engine MariaDB (D). if [ -r etc/rc.d/rc.mysqld ]; then chmod -x etc/rc.d/rc.mysqld fi # rc.networkmanager starts a daemon for automatically switching network # connections to the best available (D). # Most users will use that, but the script will then be made executable # during configuration post-installation. if [ -r etc/rc.d/rc.networkmanager ]; then chmod -x etc/rc.d/rc.networkmanager fi # rc.nfsd starts the NFS (Network File System) server (D). if [ -r etc/rc.d/rc.nfsd ]; then chmod -x etc/rc.d/rc.ntpd fi # The Network Time Protocol daemon (ntpd) is an operating system program # that maintains the system time in synchronization with time servers # using the Network Time Protocol (NTP). I set it executable because this # is needed if we want clocksetup be able to set the synchronization and # George Vlahavas told me that this is safe (!D). if [ -r etc/rc.d/rc.ntpd ]; then chmod +x etc/rc.d/rc.ntpd fi # rc.pcmcia starts the pcmcia services, and configure wireless pcmcia # cards. Few recent machines have pcmcia slots (D). if [ -r etc/rc.d/rc.pcmcia ]; then chmod -x etc/rc.d/rc.pcmcia fi # rc.php-fpm starts the PHP FastCGI Process Manager daemon. # Only useful if you run a web server that uses this (D). if [ -r etc/rc.d/rc.php-fpm ]; then chmod -x etc/rc.d/rc.php-fpm fi # rc.pulseaudio starts PulseAudio in such a way that a single instance # will be shared by multiple local users. This is not recommended (D). if [ -r etc/rc.d/rc.pulseaudio ]; then chmod -x etc/rc.d/rc.pulseaudio fi # rc.rpc starts the RPC damen needed to use NFS (D). if [ -r etc/rc.d/rc.rpc ]; then chmod -x etc/rc.d/rc.rpc fi # rc.samba starts the Samba SMB file/print server (D). if [ -r etc/rc.d/rc.samba ]; then chmod -x etc/rc.d/rc.samba fi # The saslauthd daemon handles plain text authentication requests on # behalf of the SASL (Simple Authentication and Security Layer) library. # It is mostly used to authenticate to mail servers (D). if [ -r etc/rc.d/rc.saslauthd ]; then chmod -x etc/rc.d/rc.saslauthd fi # rc.sendmail starts the sendmail mail server. if [ -r etc/rc.d/rc.sendmail ]; then chmod -x etc/rc.d/rc.sendmail fi # rc.serial initializes the serial ports of the system. Serial ports as # less frequently provided on recent boxes (D). if [ -r etc/rc.d/rc.serial ]; then chmod -x etc/rc.d/rc.serial fi # rc.snmpd tarts the net-snmp SNMP daemon. SNMP stands for Simple Network # Management Protocol (D). if [ -r etc/rc.d/rc.snmpd ]; then chmod -x etc/rc.d/rc.snmpd fi # rc.sshd starts the SSH (secure shell) daemon. This is necessary to # manage a remote system as soon as installed and running. if [ -r etc/rc.d/rc.sshd ]; then chmod +x etc/rc.d/rc.sshd fi # rc.syslog starts the system logging daemons (D). if [ -r etc/rc.d/rc.syslog ]; then chmod +x etc/rc.d/rc.syslog fi # rc.sysstat resets the system activity logs (D). if [ -r etc/rc.d/rc.sysstat ]; then chmod -x etc/rc.d/rc.sysstat fi # rc.sysvinit provides basic compatibility with SystemV style startup # method often used by commercial software. if [ -r etc/rc.d/rc.sysvinit ]; then chmod +x etc/rc.d/rc.sysvinit fi # rc.udev initializes udev, which populates the /dev/directory with # nodes, scans for devices, load the appropriate kernel modules, and # configure the devices (D). if [ -r etc/rc.d/rc.udev ]; then chmod +x etc/rc.d/rc.udev fi # ulogd is a userspace logging daemon for netfilter/iptables daemon, thus # used with firewalls (D). if [ -r etc/rc.d/rc.ulogd ]; then chmod +x etc/rc.d/rc.ulogd fi # rc.wireless sets up PCI, USB, and 32-bit Cardbus wireless devices but # not 16-bit PCMCIA cards, configured by rc.pcmcia (D). if [ -r etc/rc.d/rc.wireless ]; then chmod +x etc/rc.d/rc.wireless fi # rc.yp starts the NIS (Netwok Information Service) (D). if [ -r etc/rc.d/rc.yp ]; then chmod -x etc/rc.d/rc.yp fi } # Get rid of a symlink etc/X11/xinit/xinitrc that could have been made # installing a WM rm -f etc/X11/xinit/xinitrc slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "zzz-settings (provides system wide fixes for several packages)" "This package provides fixes for some packages and default settings for" "others. It can safely be removed after installation, but it should" "never be installed or upgraded by the user, or it might change some" "default system settings." ) build () { echo "nothing to build" }