# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-SYSTEM_GROUP= root
+us= chiark-backup
-prefix=/usr/local
-etcdir=/etc
-varlib=/var/lib
-
-confdir=$(etcdir)/chiark-backup
-bindir=$(prefix)/bin
-sharedir=$(prefix)/share/chiark-backup
-txtdocdir=$(prefix)/share/doc/chiark-backup
-exampledir=$(txtdocdir)/examples
-vardir=$(varlib)/chiark-backup
-mandir=${prefix}/man
-man1dir=${mandir}/man1
-
-INSTALL= install -c
-INSTALL_SHARE= $(INSTALL) -m 644 -o root -g $(SYSTEM_GROUP)
-INSTALL_SCRIPT= $(INSTALL) -m 755 -o root -g $(SYSTEM_GROUP)
-INSTALL_PROGRAM= $(INSTALL_SCRIPT) -s
-INSTALL_DIRECTORY= $(INSTALL) -m 2755 -o root -g $(SYSTEM_GROUP) -d
+include ../settings.make
BINSCRIPTS= checkallused loaded driver takedown whatsthis labeltape
SHARESCRIPTS= bringup full increm
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-CC= gcc
-CFLAGS= $(WARNINGS) $(OPTIMISE) $(DEBUG)
-CPPFLAGS= -DRWBUFFER_SIZE_MB=$(RWBUFFER_SIZE_MB)
+include ../settings.make
-WARNINGS= -Wall -Wwrite-strings -Wmissing-prototypes \
- -Wstrict-prototypes -Wpointer-arith
-OPTIMISE= -O2
-DEBUG= -g
RWBUFFER_SIZE_MB=16
-SYSTEM_GROUP= root
-
-prefix=/usr/local
-
-bindir=$(prefix)/bin
-sbindir=$(prefix)/sbin
-mandir=${prefix}/man
-man1dir=${mandir}/man1
-man8dir=${mandir}/man8
-
-INSTALL= install -c
-INSTALL_PROGRAM= $(INSTALL_SCRIPT) -s
-
PROGRAMS= readbuffer writebuffer
DAEMONS= trivsoundd
MAN1PAGES= readbuffer.1 writebuffer.1
chiark-utils (3.0.3.99.3) unstable; urgency=low
- * initial work on trivsoundd
-
- --
+ * trivsoundd is in the source tree but not shipped in the .debs,
+ and largely untested. readbuffer/writebuffer are in new cprogs
+ directory.
+ * sync-accounts and chiark-named-conf merged into single
+ chiark-scripts package.
+ * Makefile commonality moved into settings.make.
+
+ -- Ian Jackson <ian@davenant.greenend.org.uk> Sun, 29 Jun 2003 14:12:56 +0100
chiark-utils (3.0.3.99.2) unstable; urgency=low
* Hard failures when individual systems fail, to encourage fixing !
If you have a larger site you may wish to look at Amanda.
-Package: chiark-named-conf
+Package: chiark-scripts
+Conflicts: chiark-named-conf, sync-accounts
+Replaces: chiark-named-conf, sync-accounts
Architecture: all
-Description: chiark-named-conf: checks nameserver configuration
- chiark-named-conf is a tool for managing nameserver configurations
+Description: chiark system administration scripts
+ This package contains a number of small administration scripts used
+ by chiark.greenend.org.uk and other systems belonging to the Sinister
+ Greenend Organisation. Featuring:
+ .
+ chiark-named-conf: a tool for managing nameserver configurations
and checking for suspected DNS problems. Its main functions are to
check that delegations are appropriate and working, that secondary
zones are slaved from the right places, and to generate a
configuration for BIND, from its own input file.
-
-Package: sync-accounts
-Architecture: all
-Description: sync-accounts: simple but flexible account info synchroniser
+ .
+ sync-accounts: a simple but flexible account info synchroniser.
sync-accounts is a tool for copying un*x account data from remote
systems and installing it locally. It is flexible and reasonably
straightforward, but lacks integration with other distributed
#!/usr/bin/make -f
-subdirs= backup
+subdirs_build= cprogs
+subdirs_nobuild=backup sync-accounts scripts
package= chiark-utils
-packages_indep= chiark-backup sync-accounts chiark-named-conf
+packages_indep= chiark-backup chiark-scripts
packages_arch= chiark-rwbuffer
packages= $(packages_indep) $(packages_arch)
build:
$(checkdir)
- set -e; for s in $(subdirs); do $(MAKE) -C $$s all; done
+ set -e; for s in $(subdirs_build); do $(MAKE) -C $$s all; done
touch build
clean:
$(checkdir)
rm -f build
- set -e; for s in $(subdirs); do \
+ set -e; for s in $(subdirs_build); do \
$(MAKE) -C $$s -i distclean || \
$(MAKE) -C $$s -f Makefile.in distclean; \
done
$(checkdir)
rm -rf debian/tmp*
#
+ set -e; for s in $(subdirs_build) $(subdirs_nobuild); do \
+ $(MAKE) -C $$s install install-docs install-examples \
+ prefix=$t/$$s/usr \
+ etcdir=$t/$$s/etc \
+ varlib=$t/$$s/var/lib \
+ mandir=$t/$$s/usr/share/man; \
+ done
+ #
+ cp -a debian/tmp/sync-accounts/* debian/tmp/scripts/.
+ rm -r debian/tmp/sync-accounts
+ mv debian/tmp/scripts debian/tmp/chiark-scripts
+ mv debian/tmp/backup debian/tmp/chiark-backup
+ #
set -e; for p in $(packages); do \
install -d $t/$$p/DEBIAN $t/$$p/usr/share/doc/$$p; \
cp debian/copyright debian/changelog \
gzip -9v $t/$$p/usr/share/doc/$$p/changelog; \
done
#
- $(MAKE) -C backup install install-docs install-examples \
- prefix=$t/chiark-backup/usr \
- etcdir=$t/chiark-backup/etc \
- varlib=$t/chiark-backup/var/lib \
- mandir=$t/chiark-backup/usr/share/man
- #
- $(MAKE) -C sync-accounts install install-docs install-examples \
- prefix=$t/sync-accounts/usr \
- etcdir=$t/sync-accounts/etc \
- varlib=$t/sync-accounts/var/lib \
- mandir=$t/sync-accounts/usr/share/man
- #
- $(MAKE) -C scripts install install-docs install-examples \
- prefix=$t/chiark-named-conf/usr \
- etcdir=$t/chiark-named-conf/etc \
- varlib=$t/chiark-named-conf/var/lib \
- mandir=$t/chiark-named-conf/usr/share/man
- #
install -d $t/chiark-rwbuffer/usr/bin
install -d $t/chiark-rwbuffer/usr/share/man/man1
- cd $t/chiark-backup/usr/bin && \
+ cd $t/cprogs/usr/bin && \
mv readbuffer writebuffer $t/chiark-rwbuffer/usr/bin
- cd $t/chiark-backup/usr/share/man/man1 && \
+ cd $t/cprogs/usr/share/man/man1 && \
mv readbuffer.1 writebuffer.1 $t/chiark-rwbuffer/usr/share/man/man1
gzip -9f $t/*/usr/share/man/man*/*
binary-hook-chiark-backup:
binary-hook-chiark-rwbuffer:
binary-hook-sync-accounts:
-binary-hook-chiark-named-conf:
+binary-hook-chiark-scripts:
binary-one:
set -e; for f in preinst postinst prerm postrm conffiles; do \
do debian/rules binary-one p=$$p; done
define checkdir
- test -f backup/writebuffer.c
+ test -f cprogs/writebuffer.c
endef
# Below here is fairly generic really
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-SYSTEM_GROUP= root
-
-INSTALL= install -c
-INSTALL_SHARE= $(INSTALL) -m 644 -o root -g $(SYSTEM_GROUP)
-INSTALL_SCRIPT= $(INSTALL) -m 755 -o root -g $(SYSTEM_GROUP)
-INSTALL_DIRECTORY= $(INSTALL) -m 2755 -o root -g $(SYSTEM_GROUP) -d
-
-prefix=/usr/local
-bindir=$(prefix)/bin
-mandir=${prefix}/man
-man8dir=${mandir}/man8
+include ../settings.make
SCRIPTS= named-conf
MANPAGES8= named-conf
--- /dev/null
+# Makefile
+# common make settings
+#
+# This file is part of chiark-utils, a collection of useful utilities
+#
+# This file is:
+# Copyright (C) 1997-1998,2000-2001 Ian Jackson <ian@chiark.greenend.org.uk>
+#
+# 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, or (at your option) any later version.
+#
+# This 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 this program; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+CC= gcc
+CFLAGS= $(WARNINGS) $(OPTIMISE) $(DEBUG)
+CPPFLAGS= -DRWBUFFER_SIZE_MB=$(RWBUFFER_SIZE_MB)
+
+WARNINGS= -Wall -Wwrite-strings -Wmissing-prototypes \
+ -Wstrict-prototypes -Wpointer-arith
+OPTIMISE= -O2
+DEBUG= -g
+
+SYSTEM_GROUP= root
+
+prefix=/usr/local
+etcdir=/etc
+varlib=/var/lib
+
+confdir=$(etcdir)/$(us)
+bindir=$(prefix)/bin
+sbindir=$(prefix)/sbin
+sharedir=$(prefix)/share/$(us)
+txtdocdir=$(prefix)/share/doc/$(us)
+exampledir=$(txtdocdir)/examples
+vardir=$(varlib)/$(us)
+mandir=${prefix}/man
+man1dir=${mandir}/man1
+man8dir=${mandir}/man8
+
+INSTALL= install -c
+INSTALL_SHARE= $(INSTALL) -m 644 -o root -g $(SYSTEM_GROUP)
+INSTALL_SCRIPT= $(INSTALL) -m 755 -o root -g $(SYSTEM_GROUP)
+INSTALL_PROGRAM= $(INSTALL_SCRIPT) -s
+INSTALL_DIRECTORY= $(INSTALL) -m 2755 -o root -g $(SYSTEM_GROUP) -d