summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorSteffen Hansen <steffen@kdab.com>2005-09-13 14:38:22 (GMT)
committerSteffen Hansen <steffen@kdab.com>2005-09-13 14:38:22 (GMT)
commit99fe93c151d99d51e829e96226745973b7e6fd5a (patch)
treea3d31550c77ccfe6dfd4345034a8497f66db1ba9 /libexec
parent5a615dfb67337276d3f82b6b4102b5af06d01c3b (diff)
downloadkolab-server-99fe93c151d99d51e829e96226745973b7e6fd5a.tar.gz
kolabd autoconfiscated!
Diffstat (limited to 'libexec')
-rwxr-xr-xlibexec/adduser.in (renamed from libexec/adduser)14
-rwxr-xr-xlibexec/deluser.in (renamed from libexec/deluser)14
-rwxr-xr-xlibexec/listusers.in (renamed from libexec/listusers)9
-rwxr-xr-xlibexec/newconfig.in (renamed from libexec/newconfig)4
-rwxr-xr-xlibexec/services.in (renamed from libexec/services)4
-rwxr-xr-xlibexec/showlog.in (renamed from libexec/showlog)29
-rwxr-xr-xlibexec/showuser.in (renamed from libexec/showuser)4
-rwxr-xr-xlibexec/start.in (renamed from libexec/start)2
-rwxr-xr-xlibexec/stop.in (renamed from libexec/stop)2
9 files changed, 38 insertions, 44 deletions
diff --git a/libexec/adduser b/libexec/adduser.in
index 21dc196..d2f01e9 100755
--- a/libexec/adduser
+++ b/libexec/adduser.in
@@ -22,11 +22,11 @@ fi
#Collect some vitals
SERVER=127.0.0.1
-PREFIX=@l_prefix@
-BINDDN=`cat $PREFIX/etc/kolab/kolab.conf | grep "bind_dn :" | sed -e "s;bind_dn : ;;"`
-BINDPW=`cat $PREFIX/etc/kolab/kolab.conf | grep "bind_pw :" | sed -e "s;bind_pw : ;;"`
-BASEDN=`cat $PREFIX/etc/kolab/kolab.conf | grep "base_dn :" | sed -e "s;base_dn : ;;"`
-HOMESERV=`cat $PREFIX/etc/kolab/kolab.conf | grep "fqdnhostname :" | sed -e "s;fqdnhostname : ;;"`
+
+BINDDN=`cat @sysconfdir@/kolab/kolab.conf | grep "bind_dn :" | sed -e "s;bind_dn : ;;"`
+BINDPW=`cat @sysconfdir@/kolab/kolab.conf | grep "bind_pw :" | sed -e "s;bind_pw : ;;"`
+BASEDN=`cat @sysconfdir@/kolab/kolab.conf | grep "base_dn :" | sed -e "s;base_dn : ;;"`
+HOMESERV=`cat @sysconfdir@/kolab/kolab.conf | grep "fqdnhostname :" | sed -e "s;fqdnhostname : ;;"`
echo "Please specify the firstname:"
read FIRSTNAME
@@ -72,7 +72,7 @@ fi
echo "--"
#Check if the user already exists
-DN=`$PREFIX/bin/kolab showuser $EMAIL | grep dn`
+DN=`@bindir@/kolab showuser $EMAIL | grep dn`
if test "$DN" != ""; then
echo User already found! Or other error occurred.
exit 255
@@ -109,4 +109,4 @@ if test "$QUOTA" != ""; then
echo "userquota: $QUOTA" >> $LDIFFILE
fi
-$PREFIX/bin/ldapadd -x -D "$BINDDN" -w $BINDPW -h $SERVER -f $LDIFFILE
+@bindir@/ldapadd -x -D "$BINDDN" -w $BINDPW -h $SERVER -f $LDIFFILE
diff --git a/libexec/deluser b/libexec/deluser.in
index 2e1496f..5e8f72f 100755
--- a/libexec/deluser
+++ b/libexec/deluser.in
@@ -23,13 +23,13 @@ fi
#Collect some vitals
SERVER=127.0.0.1
-PREFIX=@l_prefix@
-BINDDN=`cat $PREFIX/etc/kolab/kolab.conf | grep "bind_dn :" | sed -e "s;bind_dn : ;;"`
-BINDPW=`cat $PREFIX/etc/kolab/kolab.conf | grep "bind_pw :" | sed -e "s;bind_pw : ;;"`
-BASEDN=`cat $PREFIX/etc/kolab/kolab.conf | grep "base_dn :" | sed -e "s;base_dn : ;;"`
-HOMESERV=`cat $PREFIX/etc/kolab/kolab.conf | grep "fqdnhostname :" | sed -e "s;fqdnhostname : ;;"`
-DN=`$PREFIX/bin/kolab showuser $1 | grep dn`
+BINDDN=`cat @sysconfdir@/kolab/kolab.conf | grep "bind_dn :" | sed -e "s;bind_dn : ;;"`
+BINDPW=`cat @sysconfdir@/kolab/kolab.conf | grep "bind_pw :" | sed -e "s;bind_pw : ;;"`
+BASEDN=`cat @sysconfdir@/kolab/kolab.conf | grep "base_dn :" | sed -e "s;base_dn : ;;"`
+HOMESERV=`cat @sysconfdir@/kolab/kolab.conf | grep "fqdnhostname :" | sed -e "s;fqdnhostname : ;;"`
+
+DN=`@bindir@/kolab showuser $1 | grep dn`
if test "$DN" = ""; then
echo User not found!
exit 255
@@ -52,4 +52,4 @@ add: kolabdeleteflag
kolabdeleteflag: $HOMESERV
LDIF
-$PREFIX/bin/ldapmodify -x -D "$BINDDN" -w $BINDPW -h $SERVER -f $LDIFFILE
+@bindir@/ldapmodify -x -D "$BINDDN" -w $BINDPW -h $SERVER -f $LDIFFILE
diff --git a/libexec/listusers b/libexec/listusers.in
index d4b79ee..ef02a63 100755
--- a/libexec/listusers
+++ b/libexec/listusers.in
@@ -14,7 +14,6 @@
## Project's homepage; see <http://www.gnu.org/licenses/gpl.html>.
##
-prefix=@l_prefix@
if [ ".$1" = ".--showhelp" ]; then
echo "Display a list of mailboxes"
@@ -23,9 +22,9 @@ if [ ".$1" = ".--showhelp" ]; then
fi
server=127.0.0.1
-binddn=`cat ${prefix}/etc/kolab/kolab.conf | grep "bind_dn :" | sed -e "s;bind_dn : ;;"`
-bindpw=`cat ${prefix}/etc/kolab/kolab.conf | grep "bind_pw :" | sed -e "s;bind_pw : ;;"`
-basedn=`cat ${prefix}/etc/kolab/kolab.conf | grep "base_dn :" | sed -e "s;base_dn : ;;"`
+binddn=`cat @sysconfdir@/kolab/kolab.conf | grep "bind_dn :" | sed -e "s;bind_dn : ;;"`
+bindpw=`cat @sysconfdir@/kolab/kolab.conf | grep "bind_pw :" | sed -e "s;bind_pw : ;;"`
+basedn=`cat @sysconfdir@/kolab/kolab.conf | grep "base_dn :" | sed -e "s;base_dn : ;;"`
-${prefix}/bin/ldapsearch -x -LLL -b "$basedn" -D "$binddn" -w $bindpw -h $server "(&(objectClass=kolabInetOrgPerson)(mail=*))" mail | grep mail | sed -e "s;mail: ;;"
+@bindir@/ldapsearch -x -LLL -b "$basedn" -D "$binddn" -w $bindpw -h $server "(&(objectClass=kolabInetOrgPerson)(mail=*))" mail | grep mail | sed -e "s;mail: ;;"
diff --git a/libexec/newconfig b/libexec/newconfig.in
index 51ebab5..b74367c 100755
--- a/libexec/newconfig
+++ b/libexec/newconfig.in
@@ -14,12 +14,10 @@
## Project's homepage; see <http://www.gnu.org/licenses/gpl.html>.
##
-prefix=@l_prefix@
-
if [ ".$1" = ".--showhelp" ]; then
echo "Propogate changes made to Kolab templates"
exit 0
HASHELP
fi
-${prefix}/sbin/kolabconf
+@sbindir@/kolabconf
diff --git a/libexec/services b/libexec/services.in
index 55496ec..b1134ff 100755
--- a/libexec/services
+++ b/libexec/services.in
@@ -15,8 +15,6 @@
##
-prefix=@l_prefix@
-
if [ ".$1" = ".--showhelp" ]; then
echo "Display a list of services"
exit 0
@@ -24,7 +22,7 @@ if [ ".$1" = ".--showhelp" ]; then
fi
-services=`ls ${prefix}/etc/rc.d`
+services=`ls @kolab_rcdir@/`
echo "${services}" | sed -e 's/rc\.//'
diff --git a/libexec/showlog b/libexec/showlog.in
index a1e6b0a..c0f0faa 100755
--- a/libexec/showlog
+++ b/libexec/showlog.in
@@ -14,7 +14,8 @@
## Project's homepage; see <http://www.gnu.org/licenses/gpl.html>.
##
-prefix=@l_prefix@
+# can be removed (i think) won't be needed
+# prefix=@prefix@
if [ ".$1" = ".--showhelp" ]; then
echo "Display the Kolab server logs"
@@ -24,19 +25,19 @@ fi
#list of logfiles, maintainers please update
logfiles="
-$prefix/var/proftpd/proftpd.log
-$prefix/var/amavisd/amavis.log
-$prefix/var/fsl/fsl.log
-$prefix/var/sasl/log/saslauthd.log
-$prefix/var/resmgr/resmgr.log
-$prefix/var/resmgr/freebusy.log
-$prefix/var/clamav/clamd.log
-$prefix/var/imapd/log/master.log
-$prefix/var/imapd/log/misc.log
-$prefix/var/apache/log/apache-error.log
-$prefix/var/apache/log/apache-access.log
-$prefix/var/openldap/openldap.log
-$prefix/var/postfix/log/postfix.log
+@ftpserver_logfile@
+@amavisd_logfile@
+@fsl_logfile@
+@sasl_logfile@
+@resmgr_logfile@
+@freebusy_logfile@
+@clamav_logfile@
+@imap_masterlogfile@
+@imap_misclogfile@
+@webserver_errorlogfile@
+@webserver_accesslogfile@
+@ldapserver_logfile@
+@postfix_logfile@
"
if [ ".$PAGER" = "." ]; then
diff --git a/libexec/showuser b/libexec/showuser.in
index 3bd4296..32e75c4 100755
--- a/libexec/showuser
+++ b/libexec/showuser.in
@@ -14,8 +14,6 @@
## Project's homepage; see <http://www.gnu.org/licenses/gpl.html>.
##
-prefix=@l_prefix@
-
if [ ".$1" = ".--showhelp" ]; then
echo "Display information on a user"
exit 0
@@ -33,4 +31,4 @@ if [ ".$1" = "." ]; then
exit 2
fi
-${prefix}/bin/ldapsearch -x -LLL -b "$basedn" -D "$binddn" -w $bindpw -h $server "(&(objectClass=kolabInetOrgPerson)(mail=$1))"
+@bindir@/ldapsearch -x -LLL -b "$basedn" -D "$binddn" -w $bindpw -h $server "(&(objectClass=kolabInetOrgPerson)(mail=$1))"
diff --git a/libexec/start b/libexec/start.in
index d13f284..b5e46be 100755
--- a/libexec/start
+++ b/libexec/start.in
@@ -14,7 +14,7 @@
## Project's homepage; see <http://www.gnu.org/licenses/gpl.html>.
##
-prefix=@l_prefix@
+prefix=@prefix@
if [ ".$1" = ".--showhelp" ]; then
echo "Start the server"
diff --git a/libexec/stop b/libexec/stop.in
index b572e70..134dc5f 100755
--- a/libexec/stop
+++ b/libexec/stop.in
@@ -14,7 +14,7 @@
## Project's homepage; see <http://www.gnu.org/licenses/gpl.html>.
##
-prefix=@l_prefix@
+prefix=@prefix@
if [ ".$1" = ".--showhelp" ]; then
echo "Stop the server"