From ea5d54cbd201063db87015a3035748ff678562b1 Mon Sep 17 00:00:00 2001 From: David Reid Date: Mon, 21 Apr 2008 11:17:53 +0200 Subject: allow configuring user/group for installed binary This patch essentially allows you to configure the user and group that are used for the installed binary :-) --- Makefile | 2 +- defconfig | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b06310c..bd614f0 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,7 @@ clean: rm -f *.so *.o *~ install: all - install -o root -g root -m 0660 $(LIBRARY_NAME) $(INSTALLDIR)/ + install -o $(USER) -g $(GROUP) -m 0660 $(LIBRARY_NAME) $(INSTALLDIR)/ verify_config: @if [ ! -r $(CONFIG) ]; then \ diff --git a/defconfig b/defconfig index 02ea038..3891ca1 100644 --- a/defconfig +++ b/defconfig @@ -35,7 +35,11 @@ DOVECOT_VERSION=1.0 # install directory for 'make install' -INSTALLDIR=/usr/lib/dovecot/modules/imap/ +# NB no need for a final '/' +INSTALLDIR=/usr/lib/dovecot/modules/imap +# The user and group for the installed plugin +USER=root +GROUP=root # enable debugging to syslog or stderr #DEBUG=stderr -- cgit v1.2.3