chiark / gitweb /
debian: Still making tripe-ethereal, so ignore directory
[tripe] / debian / rules
index 6a52d03028ed372448e0c276556e2343cfcc86d2..62d860f9a7a55baf3d42c7ddde6b5f2bb76aaa67 100755 (executable)
@@ -13,7 +13,7 @@ build:
                --with-logfile=/var/log/tripe.log \
                --with-pidfile=/var/run/tripectl.pid \
                --with-initconfig=/etc/default/tripe \
-               --with-ethereal
+               --with-wireshark
        make -C deb-build
        touch build
 
@@ -27,25 +27,54 @@ install: build
        mkdir -p debian/tripe/etc/tripe/peers
        mkdir -p debian/tripe/etc/default
        mkdir -p debian/tripe/etc/init.d
-       cp deb-build/tripe-init debian/tripe/etc/init.d/tripe
+       cp deb-build/init/tripe-init debian/tripe/etc/init.d/tripe
        chmod 755 debian/tripe/etc/init.d/tripe
-       cp tripe.conf debian/tripe/etc/default/tripe
+       cp init/tripe.conf debian/tripe/etc/default/tripe
+       mkdir -p debian/tripe-keys/usr/bin
+       mv debian/tripe/usr/bin/tripe-keys debian/tripe-keys/usr/bin
+       mkdir -p \
+         debian/tripe-keys/usr/share/man/man5 \
+         debian/tripe-keys/usr/share/man/man8
+       mv debian/tripe/usr/share/man/man5/tripe-keys.conf.5 \
+         debian/tripe-keys/usr/share/man/man5
+       mv debian/tripe/usr/share/man/man8/tripe-keys.8 \
+         debian/tripe-keys/usr/share/man/man8
+       mkdir -p debian/tripe-keys/usr/share/doc/tripe-keys/examples
+       cp keys/tripe-keys.master \
+         debian/tripe-keys/usr/share/doc/tripe-keys/examples
+       mkdir -p debian/tripemon/usr/bin
+       mv debian/tripe/usr/bin/tripemon debian/tripemon/usr/bin
+       mkdir -p \
+         debian/tripemon/usr/share/man/man1
+       mv debian/tripe/usr/share/man/man1/tripemon.1 \
+         debian/tripemon/usr/share/man/man1
        mkdir -p debian/pkstream/usr/bin
        mv debian/tripe/usr/bin/pkstream debian/pkstream/usr/bin
        mkdir -p debian/pkstream/usr/share/man/man1
        mv debian/tripe/usr/share/man/man1/pkstream.1 \
                debian/pkstream/usr/share/man/man1
-       mkdir -p debian/tripe-ethereal/usr/lib
-       mv debian/tripe/usr/lib/ethereal debian/tripe-ethereal/usr/lib
-       rm -f debian/tripe-ethereal/usr/lib/ethereal/plugins/*/*.a
+       mkdir -p debian/tripe-wireshark/usr/lib
+       mv debian/tripe/usr/lib/wireshark debian/tripe-wireshark/usr/lib
+       rm -f debian/tripe-wireshark/usr/lib/wireshark/plugins/*/*.a
        rmdir debian/tripe/usr/lib
+       mkdir -p debian/tripe-ethereal
 
-binary-indep:
+binary-indep: install
+       dh_testdir -i
+       dh_testroot -i
+       dh_compress -i
+       dh_installdocs -i
+       dh_installlogrotate -i
+       dh_gencontrol -i
+       dh_fixperms -i
+       dh_installdeb -i
+       dh_md5sums -i
+       dh_builddeb -i
 
 binary-arch: install
-       dpkg --status ethereal | \
-               sed -n 's/^Version: */tripe:Ethereal-Version=/p' \
-               >> debian/tripe-ethereal.substvars
+       dpkg --status wireshark | \
+               sed -n 's/^Version: */tripe:Wireshark-Version=/p' \
+               >> debian/tripe-wireshark.substvars
        dh_testdir -a
        dh_testroot -a
        dh_compress -a