aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Reid <david@jetnet.co.uk>2008-04-21 11:17:53 +0200
committerJohannes Berg <johannes@sipsolutions.net>2008-04-21 11:17:53 +0200
commitea5d54cbd201063db87015a3035748ff678562b1 (patch)
tree1b2bc19c1f66e94b6849cef4d4571ad1e26245d3
parent2c7f3b568203ee3010db95d6dd060ebaddfe5475 (diff)
downloaddovecot-antispam-ea5d54cbd201063db87015a3035748ff678562b1.tar.gz
dovecot-antispam-ea5d54cbd201063db87015a3035748ff678562b1.tar.xz
dovecot-antispam-ea5d54cbd201063db87015a3035748ff678562b1.zip
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 :-)
-rw-r--r--Makefile2
-rw-r--r--defconfig6
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