Call autogen.sh instead of configure alone; and make cvs-clean instead
authorIvo Timmermans <ivo@lychnis.net>
Fri, 24 Nov 2000 14:15:20 +0000 (14:15 +0000)
committerIvo Timmermans <ivo@lychnis.net>
Fri, 24 Nov 2000 14:15:20 +0000 (14:15 +0000)
of distclean.  This way you can just cvs checkout && dpkg-buildpackage
in one go.

debian/rules

index 7f83282907dd2792532aec047ca774b624385074..a5b7b7977b230be1fbcdc7b7c297a1c7f16e0fd6 100644 (file)
@@ -18,8 +18,10 @@ build-stamp:
            patch -Ns -p0 < `pwd`/../debian/po-Makefile.in.in.diff || true ;\
          fi ;\
        )
-       env CFLAGS='-O2 -Wall' ./configure --prefix=/usr --mandir=\$${prefix}/share/man \
+
+       env CFLAGS='-O2 -Wall' ./autogen.sh --prefix=/usr --mandir=\$${prefix}/share/man \
                --infodir=\$${prefix}/share/info --sysconfdir=/etc --localstatedir=/var
+
        $(MAKE)
 
        touch build-stamp
@@ -29,7 +31,7 @@ clean:
        dh_testroot
        rm -f build-stamp
 
-       -$(MAKE) distclean
+       -$(MAKE) cvs-clean
 
        dh_clean
 
@@ -43,6 +45,9 @@ install: build
        mkdir -p `pwd`/debian/tmp/etc/tinc/example
        cp doc/tinc.conf.sample `pwd`/debian/tmp/etc/tinc/example/tinc.conf
        ln -s /usr/share/doc/tinc/README.Debian `pwd`/debian/tmp/etc/tinc/example/README
+       cp debian/tinc-up debian/tmp/etc/tinc/example
+       cp debian/tinc-down debian/tmp/etc/tinc/example
+       chmod 700 debian/tmp/etc/tinc/example/tinc-up debian/tmp/etc/tinc/example/tinc-down
 
 
 # Build architecture-independent files here.