-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor of packaging files + migrate from sysvinit to systemd servic…
…e management * Relocate all packaging files under linux/<distro> * Use new specfile derived from the Fedora EPEL upstream * Build with debugging symbols at all times, such that we can strip them into the associated devel/debuginfo package during packaging. * Updates to README as needed * Use native systemd units for service management This commit implements both a user scoped systemd unit in order to support use cases where each user maintains one's own configuration file, running cNTLM as one's own user, as well as the traditional system scoped unit that is prevalent in most distribution packages. This is more compatible (as it does not require user scoped systemd instances) however less flexible. Additionally, the behavior of both systemd units is designed to pass parameters specified in the OPTARGS parameter in /etc/sysconfig/cntlmd to both user as well as system instances of cntlm, for purposes of centralized management of configuration parameters, such as the proxy hostnames or PAC file, while still allowing users to maintain their credentials in a configuration file private to their homedir.
- Loading branch information
Showing
32 changed files
with
337 additions
and
684 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.94beta1 | ||
0.95.0beta1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
linux/debian |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# cNTLM per user launcher script | ||
USER_CONFIG_DIR="${XDG_CONFIG_HOME:-${HOME}/.config}" | ||
CNTLM_CONFIG_LOC="${USER_CONFIG_DIR}/cntlm/cntlm.conf" | ||
|
||
if [ ! -e "${CNTLM_CONFIG_LOC}" ] ; then | ||
echo "${CNTLM_CONFIG_LOC} does not exist! Unable to run cNTLM for user ${USER}." | ||
# Prevent systemd from restarting | ||
# we are never going to succeed until the user adds a config | ||
exit 0 | ||
fi | ||
|
||
exec %BINDIR%/cntlm -f -c "${CNTLM_CONFIG_LOC}" "$@" |
Oops, something went wrong.