]> oss.titaniummirror.com Git - cp210x.git/blobdiff - debian.in/rules
Modify package so the resultant module is named cp210x instead of cp2101.
[cp210x.git] / debian.in / rules
index e8b27ae90a26f3a188c5f9691fe5bd3770fd403e..4f324b6f2ac2e0699292ce0232ca4d274ed52c1e 100755 (executable)
@@ -10,7 +10,7 @@
 # This file may have to be extensively modified
 
 package = xxPACKAGExx
-inst_dir = debian/tmp/usr/src/xxPACKAGExx-xxDEBVERxx
+inst_dir = debian/tmp/usr/src/xxPACKAGExx-xxPKGVERxx
 
 install_dir    = install -d -m 755
 install_file   = install -m 644
@@ -35,7 +35,9 @@ 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)
        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