]> oss.titaniummirror.com Git - cp210x.git/blobdiff - debian.in/rules
Support Ubuntu 14.04 Trusty Tahr
[cp210x.git] / debian.in / rules
index e8b27ae90a26f3a188c5f9691fe5bd3770fd403e..16cadf1e9087a257152c84cb5d2c964956acfbb1 100755 (executable)
@@ -35,9 +35,11 @@ install-stamp: checkroot build-stamp
        $(checkdir)
        rm -rf debian/tmp
        $(install_dir) $(inst_dir)
-       cp -a . $(inst_dir)
+       mv debian ../
+       cp -a . ../$(inst_dir)
+       mv ../debian .
        $(install_dir) debian/tmp/etc/modprobe.d
-       echo "blacklist cp2101" > debian/tmp/etc/modprobe.d/$(package)
+       echo "blacklist cp2101" > debian/tmp/etc/modprobe.d/$(package).conf
        touch $@
 
 
@@ -50,6 +52,7 @@ binary-arch: checkroot build install
        : # install maintainer scripts
        $(install_dir) debian/tmp/DEBIAN
        $(install_script) debian/postinst debian/tmp/DEBIAN/postinst
+       $(install_script) debian/prerm debian/tmp/DEBIAN/prerm
        $(install_script) debian/postrm debian/tmp/DEBIAN/postrm
        : # install docs
        $(install_dir) debian/tmp/usr/share/doc/$(package)/
@@ -60,8 +63,6 @@ binary-arch: checkroot build install
        find debian/tmp/usr/share/doc/$(package)/ -type f ! -name copyright | \
                xargs gzip -9
        : # Finish it all up
-       find debian/tmp -type f | xargs file | grep ELF | cut -d: -f 1 | \
-               xargs dpkg-shlibdeps
        dpkg-gencontrol -isp $(CONFLICTS)
        chown -R root:root debian/tmp
        chmod -R go=rX  debian/tmp