summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorian <ian>2003-07-06 20:32:27 +0000
committerian <ian>2003-07-06 20:32:27 +0000
commit6362f12ce73173b77cecddba14e33e6dfa203b7e (patch)
treececfba7ddcd14bc9f58a484f2b9dd6fa84fec7ba /misc
parent6939778b9791f6af5bb575789665af11b599f14a (diff)
downloaduserv-utils-6362f12ce73173b77cecddba14e33e6dfa203b7e.tar.gz
*** empty log message ***
Diffstat (limited to 'misc')
-rw-r--r--misc/Makefile32
-rwxr-xr-xmisc/mailq-wrapper3
-rw-r--r--misc/ndc-reload5
3 files changed, 39 insertions, 1 deletions
diff --git a/misc/Makefile b/misc/Makefile
new file mode 100644
index 0000000..0bfa61d
--- /dev/null
+++ b/misc/Makefile
@@ -0,0 +1,32 @@
+# Makefile
+# installation runes for userv-dyndns
+
+# Copyright (C) 2003 Ian Jackson
+#
+# This is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with userv-utils; if not, write to the Free Software
+# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# $Id$
+
+include ../settings.make
+
+install:
+ mkdir -p $(bindir)
+ cp mailq-wrapper $(bindir)/mailq
+
+install-examples:
+ mkdir -p $(services)
+ cp mailq ndc-reload $(services)/.
+
+install-docs:
diff --git a/misc/mailq-wrapper b/misc/mailq-wrapper
new file mode 100755
index 0000000..b538e75
--- /dev/null
+++ b/misc/mailq-wrapper
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+exec userv mail mailq </dev/null
diff --git a/misc/ndc-reload b/misc/ndc-reload
index ac3b684..0e98e35 100644
--- a/misc/ndc-reload
+++ b/misc/ndc-reload
@@ -1,5 +1,8 @@
#
-if ( glob calling-user ian ijackson
+if ( ( grep calling-user /etc/userv/dyndns-service-users
+ | glob calling-group add-groups-to-allow-to-reload-here
+ | glob calling-user add-users-to-allow-to-reload-here
+ )
& glob service-user root
)
reset