summaryrefslogtreecommitdiff
path: root/data/etc
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-01-14 23:15:55 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-01-15 11:33:55 +0000
commita43869cdc096413d5994b5011e57bc7d753d4885 (patch)
tree5b673f40aca34ca03a62935de1f3d87dba06fe4e /data/etc
parent689dfde91b20189805c67664bd3417b4eed88187 (diff)
downloadenlightenment-a43869cdc096413d5994b5011e57bc7d753d4885.tar.gz
e_sys -> move from enlightenment_sys to e_system
Diffstat (limited to 'data/etc')
-rw-r--r--data/etc/meson.build82
-rw-r--r--data/etc/sysactions.conf.in92
2 files changed, 0 insertions, 174 deletions
diff --git a/data/etc/meson.build b/data/etc/meson.build
index 46ba187a30..eec92a26c0 100644
--- a/data/etc/meson.build
+++ b/data/etc/meson.build
@@ -1,85 +1,3 @@
-HALT = '/sbin/shutdown -h now'
-REBOOT = '/sbin/shutdown -r now'
-SUSPEND = ''
-HIBERNATE = ''
-MOUNT = '/bin/mount'
-UMOUNT = '/bin/umount'
-EJECT = '/usr/bin/eject'
-L2PING = '/usr/bin/l2ping'
-RFKILL = '/bin/rfkill'
-
-if host_machine.system().contains('bsd') == true
- #SUSPEND = 'acpiconf -s3'
- SUSPEND = '/usr/sbin/zzz'
- HIBERNATE = 'acpiconf -s4'
- HALT = '/sbin/shutdown -p now'
- MOUNT = '/sbin/mount'
- UMOUNT = '/sbin/umount'
- EJECT = '/usr/sbin/cdcontrol eject'
-else
- if systemd_unitdir != ''
- HALT = '/usr/bin/systemctl poweroff'
- REBOOT = '/usr/bin/systemctl reboot'
- SUSPEND = '/usr/bin/systemctl suspend'
- HIBERNATE = '/usr/bin/systemctl hibernate'
- else
- sleep = find_program('sleep.sh', '/etc/acpi/sleep.sh', '/sbin/sleep.sh', '/usr/sbin/sleep.sh', required : false)
- if sleep.found() == true
- SUSPEND = sleep.path()
- if sleep.path() == '/etc/acpi/sleep.sh'
- SUSPEND = '/etc/acpi/sleep.sh force'
- endif
- else
- suspend = find_program('pm-suspend', '/etc/acpi/pm-suspend', '/sbin/pm-suspend', '/usr/sbin/pm-suspend', required: false)
- if suspend.found()
- SUSPEND = suspend.path()
- endif
- endif
-
- hibernate_sh = find_program('hibernate.sh', '/etc/acpi/hibernate.sh', '/sbin/hibernate.sh', '/usr/sbin/hibernate.sh', required : false)
- if hibernate_sh.found() == true
- HIBERNATE = hibernate_sh.path()
- if hibernate_sh.path() == '/etc/acpi/hibernate.sh'
- SUSPEND = '/etc/acpi/hibernate.sh force'
- endif
- else
- hibernate = find_program('pm-hibernate', '/etc/acpi/pm-hibernate', '/sbin/pm-hibernate', '/usr/sbin/pm-hibernate', required: false)
- if hibernate.found()
- HIBERNATE = hibernate.path()
- endif
- endif
- endif
-endif
-
-l2ping = find_program('l2ping', '/usr/bin/l2ping', '/bin/l2ping', '/usr/sbin/l2ping', '/sbin/l2ping', '/usr/local/bin/l2ping', '/usr/local/sbin/l2ping', required : false)
-if l2ping.found() == true
- L2PING = l2ping.path()
-endif
-
-rfkill = find_program('rfkill', '/usr/bin/rfkill', '/bin/rfkill', '/usr/sbin/rfkill', '/sbin/rfkill', '/usr/local/bin/rfkill', '/usr/local/sbin/rfkill', required : false)
-if rfkill.found() == true
- RFKILL = rfkill.path()
-endif
-
-sysactions = configuration_data()
-sysactions.set('HALT' , HALT)
-sysactions.set('REBOOT' , REBOOT)
-sysactions.set('SUSPEND' , SUSPEND)
-sysactions.set('HIBERNATE', HIBERNATE)
-sysactions.set('MOUNT' , MOUNT)
-sysactions.set('UMOUNT' , UMOUNT)
-sysactions.set('EJECT' , EJECT)
-sysactions.set('L2PING' , L2PING)
-sysactions.set('RFKILL' , RFKILL)
-
-if get_option('install-sysactions')
- configure_file(input : 'sysactions.conf.in',
- output : 'sysactions.conf',
- install_dir : join_paths(dir_sysconf, 'enlightenment'),
- configuration: sysactions
- )
-endif
-
if get_option('install-enlightenment-menu')
install_data('e-applications.menu',
install_dir: join_paths(dir_sysconf, 'xdg/menus')
diff --git a/data/etc/sysactions.conf.in b/data/etc/sysactions.conf.in
deleted file mode 100644
index bb8984f519..0000000000
--- a/data/etc/sysactions.conf.in
+++ /dev/null
@@ -1,92 +0,0 @@
-# ENLIGHTENMENT SYSTEM ACTIONS CONFIGURATION
-#
-# This is a system configuration for allowing or denying certain users or
-# groups to be able to do certain actions that involve system restricted
-# actions such as halt, reboot, suspend, hibernate etc.
-#
-# This file is read in order from top to bottom - the first rule to MATCH
-# will be used for a user or a group, and nothing after that is read.
-#
-# You must put all the ACTION definitons BEFORE user and group rule matches.
-# Any action definitons after a rule match has been found will be ignored.
-# This allows actions to be re-defined for different user groups, so matches
-# so the command for an action can change for matches to the rules later on.
-#
-# Any user or group NOT matched by an allow or a deny will be ALLOWED to
-# perform the action by default (system administrators should be aware of
-# this and implement whatever policies they see fit). Generally speaking
-# a user of a workstation, desktop or laptop is intended to have such abilities
-# to perform these actions, thus the default of allow. For multi-user systems
-# the system administrator is considered capable enough to restrict what they
-# see they need to.
-#
-# A WARNING to admins: do NOT allow access for users to this system remotely
-# UNLESS you fully trust them or you have locked down permissions to halt/reboot
-# suspend etc. here first. You have been warned.
-#
-# FORMAT:
-#
-# action: halt /sbin/shutdown -h now
-# action: reboot /sbin/shutdown -r now
-# action: suspend /etc/acpi/sleep.sh force
-# action: hibernate /etc/acpi/hibernate.sh force
-#
-# user: username allow: halt reboot suspend hibernate
-# group: groupname deny: *
-# group: * deny: *
-# user: * allow: suspend
-# user: billy allow: halt reboot
-# group: staff deny: halt suspend hibernate
-#
-# etc.
-#
-# user and group name can use glob matches (* == all for example) like the
-# shell. as can action names allowed or denied.
-
-action: halt @HALT@
-action: reboot @REBOOT@
-action: suspend @SUSPEND@
-action: hibernate @HIBERNATE@
-action: /bin/mount @MOUNT@
-action: /bin/umount @UMOUNT@
-action: /usr/bin/eject @EJECT@
-action: l2ping @L2PING@
-action: rfkill-unblock @RFKILL@ unblock
-action: rfkill-block @RFKILL@ block
-
-# root is allowed to do anything - but it needs to be here explicitly anyway
-user: root allow: *
-# members of operator, staff and admin groups should be able to do all
-group: operator allow: *
-group: staff allow: *
-group: admin allow: *
-group: sys allow: *
-group: wheel allow: *
-group: adm allow: *
-# common "user" groups for "console users" on desktops/laptops
-group: dialout allow: *
-group: disk allow: *
-group: adm allow: *
-group: cdrom allow: *
-group: floppy allow: *
-group: audio allow: *
-group: dip allow: *
-group: plugdev allow: *
-group: netdev allow: *
-group: bluetooth allow: *
-group: video allow: *
-group: voice allow: *
-group: fax allow: *
-group: tty allow: *
-# put in a list of other users and groups here that are allowed or denied etc.
-# e.g.
-# user: myuser allow: *
-# user: another allow: suspend hibernate
-#
-#
-# uncomment this line to enable eeze mounting for users
-# user: someuser allow: /bin/mount /bin/umount /usr/bin/eject
-#
-#
-# deny everyone else by default
-user: * deny: *