-## Grab the version we built against, so we can put it in the dependencies.
-install/tripe-wireshark::
- dpkg --status wireshark | \
- sed -n 's/^Version: */tripe:Wireshark-Version=/p' \
- >> debian/tripe-wireshark.substvars
+## Python stuff.
+DH_OPTIONS += --with=python-central
+OVERRIDES += pycentral
+dh_pycentral_OPTS += -ppython-tripe
+
+## The peer database.
+OVERRIDES += install
+dh-install-hook::
+ mkdir -p debian/tripe-peer-services/etc/tripe/peers.d
+ install -m644 peerdb/peers.in \
+ debian/tripe-peer-services/etc/tripe/peers.d/10base
+
+###--------------------------------------------------------------------------
+### Some machinery for overriding Debhelper in a structured way.
+
+%:; dh $@ --without autoreconf $(DH_OPTIONS)