aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-01-11 18:07:06 -0800
committerDarrick J. Wong <djwong@kernel.org>2024-01-11 18:08:47 -0800
commit3d37d8bf535fd6a8ab241a86433b449152746e6a (patch)
tree96ca7524a1b4b1e29b50a9603004ce85f62a5c36
parente0cb10f5f8fc9c22b3dcc8671e3edbcaa1eecf5c (diff)
downloadxfsprogs-dev-3d37d8bf535fd6a8ab241a86433b449152746e6a.tar.gz
xfs_scrub_all.cron: move to package data directory
cron jobs don't belong in /usr/lib. Since the cron job is also secondary to the systemd timer, it's really only provided as a courtesy for distributions that don't use systemd. Move it to @datadir@, aka /usr/share/xfsprogs. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Neal Gompa <neal@gompa.dev> Reviewed-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--include/builddefs.in1
-rw-r--r--scrub/Makefile2
2 files changed, 1 insertions, 2 deletions
diff --git a/include/builddefs.in b/include/builddefs.in
index 32ede788ab..a3745efbe2 100644
--- a/include/builddefs.in
+++ b/include/builddefs.in
@@ -51,7 +51,6 @@ PKG_SBIN_DIR = @sbindir@
PKG_ROOT_SBIN_DIR = @root_sbindir@
PKG_ROOT_LIB_DIR= @root_libdir@@libdirsuffix@
PKG_LIB_DIR = @libdir@@libdirsuffix@
-PKG_LIB_SCRIPT_DIR = @libdir@
PKG_LIBEXEC_DIR = @libexecdir@/@pkg_name@
PKG_INC_DIR = @includedir@/xfs
DK_INC_DIR = @includedir@/disk
diff --git a/scrub/Makefile b/scrub/Makefile
index 1d2da3d845..4368897f2c 100644
--- a/scrub/Makefile
+++ b/scrub/Makefile
@@ -26,7 +26,7 @@ INSTALL_SCRUB += install-crond
CRONTABS = xfs_scrub_all.cron
OPTIONAL_TARGETS += $(CRONTABS)
# Don't enable the crontab by default for now
-CROND_DIR = $(PKG_LIB_SCRIPT_DIR)/$(PKG_NAME)
+CROND_DIR = $(PKG_DATA_DIR)
endif
endif # scrub_prereqs