*~
tests/tmp
debian/dgit
+debian/dgit-infrastructure
debian/files
debian/*.substvars
debian/*.log
bindir=$(prefix)/bin
mandir=$(prefix)/share/man
man1dir=$(mandir)/man1
+infraexamplesdir=$(prefix)/share/doc/dgit-infrastructure/examples
-PROGRAMS=dgit dgit-repos-server
+PROGRAMS=dgit
MAN1PAGES=dgit.1
+INFRA_PROGRAMS=dgit-repos-server dgit-ssh-dispatch
+INFRA_EXAMPLES=get-dm-txt ssh-wrap
+
all:
install: installdirs
installdirs:
$(INSTALL_DIR) $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
+install-infra: installdirs-infra
+ $(INSTALL_PROGRAM) $(addprefix infra/, $(INFRA_PROGRAMS)) \
+ $(DESTDIR)$(bindir)
+ $(INSTALL_PROGRAM) $(addprefix infra/, $(INFRA_EXAMPLES)) \
+ $(DESTDIR)$(infraexamplesdir)
+
+installdirs-infra:
+ $(INSTALL_DIR) $(DESTDIR)$(bindir) $(DESTDIR)$(infraexamplesdir)
+
check installcheck:
clean distclean mostlyclean maintainer-clean:
* Add missing `gpgv' to test dependencies in debian/tests/control.
+ * New dgit-infrastructure binary package containing dgit-repos-server et
+ al. Client users probably don't want this stuff. Also, it provides a
+ convenient way to publish the dependencies.
+
--
dgit (0.22.1) unstable; urgency=high
dgit push constructs uploads from git commits
.
dgit clone and dgit fetch construct git commits from uploads.
+
+Package: dgit-infrastructure
+Depends: ${misc:Depends}
+Recommends: perl, git-core, gpgv, chiark-utils-bin, wget,
+ libdigest-sha-perl
+Architecture: all
+Priority: extra
+Description: dgit server backend infrastructure
+ This package contains tools which are useful for setting up a dgit
+ git repository server. You probably want dgit, the client package.
cd debian/dgit; \
v=$$(perl -ne 'print if s/^version:\s+//i' DEBIAN/control); \
perl -i -pe "s/UNRELEASED/$$v/g if m/###substituted###/" usr/bin/dgit
+
+override_dh_auto_install:
+ make install prefix=/usr DESTDIR=debian/dgit
+ make install-infra prefix=/usr DESTDIR=debian/dgit-infrastructure
Tests: clone-nogit fetch-localgitonly fetch-somegit-notlast push-newpackage push-nextdgit quilt push-buildproductsdir
Tests-Directory: tests/tests
-Depends: @, devscripts, gpgv
+Depends: dgit, dgit-infrastructure, devscripts, gpgv
my $cmd=$1;
selectpackage $2,$3;
if ($cmd eq 'receive-pack') {
- my $s = "$dgitlive/dgit-repos-server";
+ my $s = "$dgitlive/infra/dgit-repos-server";
exec $s, $suites, $authrune, $repos, qw(--ssh);
die "exec $s: $!";
} elsif ($cmd eq 'upload-pack') {
if [ "x$DGIT_TEST_INTREE" != x ]; then
: ${DGIT_TEST:=$DGIT_TEST_INTREE/dgit}
- : ${DGIT_REPOS_SERVER_TEST:=$DGIT_TEST_INTREE/dgit-repos-server}
+ : ${DGIT_REPOS_SERVER_TEST:=$DGIT_TEST_INTREE/infra/dgit-repos-server}
: ${DGIT_SSH_DISPATCH_TEST:=$DGIT_TEST_INTREE/infra/dgit-ssh-dispatch}
export DGIT_TEST DGIT_REPOS_SERVER_TEST DGIT_SSH_DISPATCH_TEST
fi