8000 GitHub - black-desk/debs
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

black-desk/debs

10000

Repository files navigation

debs

This repository contains some debian packing scripts to convert others github release asserts to .deb files.

Packages

Check black-desk/ppa for apt repository.

Note

The contents in these packages are almostly installed under /opt and /etc.

Which means that we should update environment variables in /etc/environment.d to make the binary and manuals of these packages can be founded.

But some other scripts will overwrite environment set by /etc/environment.d:

  • /etc/profile overwrite PATH;

    # ...
    if [ "$(id -u)" -eq 0 ]; then
      PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
    else
      PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
    fi
    export PATH
    # ...
  • /etc/X11/Xsession.d/95dbus_update-activation-env overwrite almost everything.

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=943917

As we don't know what packages user installed in their environment, we have to write a lot of scripts to make sure that our environment variables is properly setted.

If you are using non sh compatible shell, you have to find some way to source /etc/profile. For example:

# in my ~/.zprofile

emulate sh
source /etc/profile
emulate zsh

# ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published
0