]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
debian: radosgw.init to installinit, remove auto_build override
authorMatthew Vernon <mvernon@wikimedia.org>
Wed, 20 Sep 2023 15:33:13 +0000 (16:33 +0100)
committerMatthew Vernon <mvernon@wikimedia.org>
Fri, 22 Sep 2023 16:32:04 +0000 (17:32 +0100)
Installation of init scripts properly belongs with dh_installinit, so
move the installation there.

That means we no longer need the override of dh_auto_build, which
simplifies the rules file.

Signed-off-by: Matthew Vernon <mvernon@wikimedia.org>
debian/rules

index ede1daf4786daa5f7b64556e859b79af40e79dc7..fd025b7c917896527f0e7630feedeca3cdd247c0 100755 (executable)
@@ -64,10 +64,6 @@ override_dh_auto_configure:
        env | sort
        dh_auto_configure --buildsystem=cmake -- $(extraopts) $(CEPH_EXTRA_CMAKE_ARGS)
 
-override_dh_auto_build:
-       dh_auto_build --buildsystem=cmake
-       cp src/init-radosgw debian/radosgw.init
-
 override_dh_auto_clean:
        dh_auto_clean --buildsystem=cmake
        rm -f debian/radosgw.init debian/ceph.logrotate debian/ceph-base.docs
@@ -91,6 +87,7 @@ override_dh_installlogrotate:
        dh_installlogrotate -pceph-common
 
 override_dh_installinit:
+       cp src/init-radosgw debian/radosgw.init
        # install the systemd stuff manually since we have funny service names
        install -d -m0755 debian/ceph-common/etc/default
        install -m0644 etc/default/ceph debian/ceph-common/etc/default/
@@ -147,4 +144,4 @@ override_dh_python3:
 # do not run tests
 override_dh_auto_test:
 
-.PHONY: override_dh_autoreconf override_dh_auto_configure override_dh_auto_build override_dh_auto_clean override_dh_auto_install override_dh_installlogrotate override_dh_installinit override_dh_strip override_dh_auto_test
+.PHONY: override_dh_autoreconf override_dh_auto_configure override_dh_auto_clean override_dh_auto_install override_dh_installlogrotate override_dh_installinit override_dh_strip override_dh_auto_test