chiark / gitweb /
Debian stuff and build system improvements for sync-accounts
authorianmdlvl <ianmdlvl>
Sun, 14 Jul 2002 20:18:33 +0000 (20:18 +0000)
committerianmdlvl <ianmdlvl>
Sun, 14 Jul 2002 20:18:33 +0000 (20:18 +0000)
debian/control
debian/rules
sync-accounts/Makefile [new file with mode: 0644]

index 1612c711b7a1b0a9580d8f5e06e10f83607aef88..a8192122d071d6e923d0b730453d9b1c1899d9ed 100644 (file)
@@ -24,6 +24,14 @@ Description: chiark-named-conf: checks nameserver configuration
  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 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
+ databases such as NIS.
+
 Package: chiark-rwbuffer
 Architecture: any
 Depends: ${shlibs:Depends}
index b9df6ceb812342e6f311c63b3dd74487674196c5..b1c92b6b0705c22deefb644b8378d6198cb7695f 100755 (executable)
@@ -2,7 +2,7 @@
 
 subdirs=       backup
 package=       chiark-utils
-packages_indep=        chiark-backup chiark-named-conf
+packages_indep=        chiark-backup sync-accounts chiark-named-conf
 packages_arch= chiark-rwbuffer
 packages=      $(packages_indep) $(packages_arch)
 
@@ -43,6 +43,12 @@ binary-prep:
                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 \
@@ -59,6 +65,7 @@ binary-prep:
 
 binary-hook-chiark-backup:
 binary-hook-chiark-rwbuffer:
+binary-hook-sync-accounts:
 binary-hook-chiark-named-conf:
 
 binary-one:
diff --git a/sync-accounts/Makefile b/sync-accounts/Makefile
new file mode 100644 (file)
index 0000000..461d44d
--- /dev/null
@@ -0,0 +1,64 @@
+# Makefile
+
+# This file is part of chiark-utils, a collection of useful programs
+# used on chiark.greenend.org.uk.
+#
+# This file is:
+#  Copyright 2001-2002 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.
+
+INSTALL=               install -c
+INSTALL_SHARE=         $(INSTALL) -m 644 -o root -g root
+INSTALL_SCRIPT=                $(INSTALL) -m 755 -o root -g root
+INSTALL_DIRECTORY=     $(INSTALL) -m 2755 -o root -g root -d
+
+prefix=/usr/local
+bindir=$(prefix)/bin
+mandir=${prefix}/man
+man5dir=${mandir}/man5
+man8dir=${mandir}/man8
+txtdocdir=$(prefix)/share/doc/sync-accounts
+exampledir=$(txtdocdir)/examples
+
+SCRIPTS=       sync-accounts sync-accounts-createuser grab-account
+MANPAGES5=     sync-accounts
+MANPAGES8=     sync-accounts sync-accounts-createuser grab-account
+EXAMPLES=      linux bsd
+
+all:
+
+install:
+               $(INSTALL_DIRECTORY) $(bindir)
+               set -e; for f in $(SCRIPTS); do \
+                       $(INSTALL_SCRIPT) $$f $(bindir)/$$f; done
+
+install-docs:
+               $(INSTALL_DIRECTORY) $(man5dir) $(man8dir)
+               set -e; for f in $(MANPAGES5); do \
+                       $(INSTALL_SCRIPT) $$f.5 $(man5dir)/$$f.5; done
+               set -e; for f in $(MANPAGES8); do \
+                       $(INSTALL_SCRIPT) $$f.8 $(man8dir)/$$f.8; done
+
+install-examples:
+               $(INSTALL_DIRECTORY) $(exampledir)
+               set -e; for e in $(EXAMPLES); do \
+                       $(INSTALL_SHARE) sync-accounts.example-$$e \
+                               $(exampledir)/sync-accounts.$$e; \
+                       done
+
+clean:
+               rm -f *~ ./#*#
+
+distclean realclean:   clean