2008-01-28 23:33:37 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2008-07-24 17:14:08 +00:00
|
|
|
export DH_VERBOSE=1
|
2008-01-28 23:33:37 +00:00
|
|
|
|
2008-07-24 17:14:08 +00:00
|
|
|
CC=gcc-4.1
|
|
|
|
CXX=g++-4.1
|
2008-01-28 23:33:37 +00:00
|
|
|
|
2008-07-24 17:14:08 +00:00
|
|
|
DEB_PYTHON_SYSTEM=pycentral
|
|
|
|
DEB_DH_INSTALL_SOURCEDIR = debian/tmp
|
2008-01-28 23:33:37 +00:00
|
|
|
|
2008-07-24 17:14:08 +00:00
|
|
|
include /usr/share/cdbs/1/rules/debhelper.mk
|
|
|
|
include /usr/share/cdbs/1/class/autotools.mk
|
2008-01-28 23:33:37 +00:00
|
|
|
|
2008-07-24 17:14:08 +00:00
|
|
|
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
|
2008-10-16 22:33:54 +00:00
|
|
|
(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
|
2008-07-24 17:14:08 +00:00
|
|
|
mkdir -p $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph/debian
|
2008-10-17 01:27:57 +00:00
|
|
|
-cp debian/* $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph/debian
|
2009-03-10 20:22:51 +00:00
|
|
|
rm $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph/debian/init.*
|
|
|
|
rm $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph/debian/ceph.init
|
2008-10-17 01:27:57 +00:00
|
|
|
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
|
2008-07-24 17:14:08 +00:00
|
|
|
( cd $(DEB_DH_INSTALL_SOURCEDIR)/usr/src ; tar -cjf ceph.tar.bz2 modules )
|
2008-10-16 22:33:54 +00:00
|
|
|
# rm -rf $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules
|
2009-02-27 22:23:49 +00:00
|
|
|
find $(DEB_DH_INSTALL_SOURCEDIR)
|
2008-01-28 23:33:37 +00:00
|
|
|
|