ceph/debian/rules

32 lines
1.3 KiB
Plaintext
Raw Normal View History

2008-01-28 23:33:37 +00:00
#!/usr/bin/make -f
export DH_VERBOSE=1
2008-01-28 23:33:37 +00:00
CC=`which gcc`
CXX=`which g++`
2008-01-28 23:33:37 +00:00
DEB_PYTHON_SYSTEM=pycentral
DEB_DH_INSTALL_SOURCEDIR = debian/tmp
DEB_DH_INSTALLINIT_ARGS = --no-restart-on-upgrade --no-start
2008-01-28 23:33:37 +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
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 -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
rm $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph/debian/init.*
rm $(DEB_DH_INSTALL_SOURCEDIR)/usr/src/modules/ceph/debian/ceph.init
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
2009-02-27 22:23:49 +00:00
find $(DEB_DH_INSTALL_SOURCEDIR)
2008-01-28 23:33:37 +00:00