Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure.ac: Add options to configure several server features #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,71 @@ AC_ARG_WITH([systemd], AS_HELP_STRING([--with-systemd[=PATH]], [install systemd
])


dnl Admin group
AC_ARG_WITH([admin_group], AS_HELP_STRING([--with-admin-group=[GROUP]], [Set group which users are authenticated for remote configuration, default=none]), [
AS_IF([test $withval != yes -a $withval != no], [
ADMINGROUP=$withval
], [
ADMINGROUP="none"
])
], [
ADMINGROUP="none"
])
AC_SUBST([ADMINGROUP])


dnl PAM module for authentication
AC_ARG_WITH([auth_service], AS_HELP_STRING([--with-auth-service=[SERVICE]], [Set PAM service to use for remote request authentication, default=none]), [
AS_IF([test $withval != yes -a $withval != no], [
AUTHSERV=$withval
], [
AUTHSERV="none"
])
], [
AUTHSERV="none"
])
AC_SUBST([AUTHSERV])


dnl Listening on specified address/hostname
AC_ARG_WITH([listen_hostname], AS_HELP_STRING([--with-listen-hostname=[HOSTNAME]], [Set address/hostname where listen for connection, default=local IPv4 and IPv6 addresses]), [
AS_IF([test $withval != yes -a $withval != no], [
LISTENHOST="-o listen-hostname=$withval "
], [
LISTENHOST=""
])
], [
LISTENHOST=""
])
AC_SUBST([LISTENHOST])


dnl Log location
AC_ARG_WITH([log_file], AS_HELP_STRING([--with-log-file=[LOCATION]], [Set location for logs: - (stderr), syslog (syslog service), FILENAME, default=-]), [
AS_IF([test $withval != yes -a $withval != no], [
LOGFILE="$withval"
], [
LOGFILE="-"
])
], [
LOGFILE="-"
])
AC_SUBST([LOGFILE])


dnl Server options
AC_ARG_WITH([server_options], AS_HELP_STRING([--with-server-options=[SOPTIONS]], [Set default server options, default=multi-queue,web-interface]), [
AS_IF([test $withval != yes -a $withval != no], [
SOPTIONS="$withval"
], [
SOPTIONS="multi-queue,web-interface"
])
], [
SOPTIONS="multi-queue,web-interface"
])
AC_SUBST([SOPTIONS])


dnl Support for experimental drivers...
AC_ARG_ENABLE([experimental], AS_HELP_STRING([--enable-experimental], [turn on experimental drivers, default=no]))
AS_IF([test x$enable_experimental = xyes], [
Expand Down
2 changes: 1 addition & 1 deletion lprint.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Requires=avahi-daemon.socket
WantedBy=multi-user.target

[Service]
ExecStart=@bindir@/lprint server -o log-file=- -o log-level=info
ExecStart=@bindir@/lprint server -o admin-group=@ADMINGROUP@ -o auth-service=@AUTHSERV@ @LISTENHOST@-o log-file=@LOGFILE@ -o log-level=info -o server-options=@SOPTIONS@
Type=simple
Restart=on-failure

Loading