From: Sage Weil Date: Thu, 16 Oct 2008 22:33:54 +0000 (-0700) Subject: debian: make ceph-source include module source X-Git-Tag: v0.5~286 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b4a0e6ce46a324fcbd37e940c15a20f9fbc132e7;p=ceph.git debian: make ceph-source include module source There's a bunch of weirdness in the rules file, though, that I don't understand. What's rules.modules.in? Why was it being populated (along with a debian dir) in /usr/src/modules/ceph? --- diff --git a/debian/rules b/debian/rules index 7fd671358881..e401a27539d3 100755 --- a/debian/rules +++ b/debian/rules @@ -15,11 +15,13 @@ common-install-arch:: mkdir -p $(DEB_DH_INSTALL_SOURCEDIR)/usr/share/doc/ceph cp debian/README.ceph $(DEB_DH_INSTALL_SOURCEDIR)/usr/share/doc/ceph/ mkdir -p $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph - (cd src/kernel ; tar -hcf - * ) | ( cd $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph ; tar -xf - ) + (cd src/kernel ; tar -hvcf - * ) | ( cd $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph ; tar -xf - ) + touch $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph/NEWS + touch $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph/README mkdir -p $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph/debian - -cp debian/* $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph/debian - mv $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph/debian/rules.modules.in $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph/debian/rules - chmod +x $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph/debian/rules +# -cp debian/* $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph/debian +# mv $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph/debian/rules.modules.in $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph/debian/rules +# chmod +x $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph/debian/rules ( cd $(DEB_DH_INSTALL_SOURCEDIR)/usr/src ; tar -cjf ceph.tar.bz2 modules ) - rm -rf $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules +# rm -rf $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules