Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions extra/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

DIRS := prometheus

all clean install install_files uninstall:
all clean distclean install install_files uninstall:
@for dir in $(DIRS); do \
$(MAKE) -C $$dir $@; \
done

.PHONY: all clean install uninstall
.PHONY: all clean distclean install uninstall
4 changes: 3 additions & 1 deletion extra/prometheus/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ clean:
rm -f opencas_exporter
$(MAKE) -C $(LIBOPENCAS_DIR) clean

.PHONY: all install uninstall clean
distclean: clean

.PHONY: all install uninstall clean distclean
4 changes: 3 additions & 1 deletion libopencas/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ libopencas.o: libopencas.c libopencas.h
clean:
rm -f *.o *.a

.PHONY: all clean
distclean: clean

.PHONY: all clean distclean
10 changes: 5 additions & 5 deletions tools/pckgen.d/deb/debian/CAS_NAME.install
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
etc/
lib/opencas/
lib/udev/
usr/lib/opencas/
usr/lib/udev/
sbin/
var/
utils/open-cas.shutdown lib/systemd/system-shutdown/
utils/open-cas.service lib/systemd/system/
utils/open-cas-shutdown.service lib/systemd/system/
utils/open-cas.shutdown usr/lib/systemd/system-shutdown/
utils/open-cas.service usr/lib/systemd/system/
utils/open-cas-shutdown.service usr/lib/systemd/system/
21 changes: 11 additions & 10 deletions tools/pckgen.d/rpm/CAS_NAME.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Copyright(c) 2020-2022 Intel Corporation
# Copyright(c) 2025 Huawei Technologies
# Copyright(c) 2025 Brian J. Murrell
# Copyright(c) 2026 Unvertical
# SPDX-License-Identifier: BSD-3-Clause
#

Expand Down Expand Up @@ -94,7 +95,7 @@ if [ $1 -eq 0 ]; then
systemctl -q disable open-cas-shutdown
systemctl -q disable open-cas

rm -rf /lib/opencas/{__pycache__,*.py[co]} &>/dev/null
rm -rf /usr/lib/opencas/{__pycache__,*.py[co]} &>/dev/null
fi

%postun
Expand Down Expand Up @@ -150,17 +151,17 @@ fi
%license LICENSE
%doc README.md
%dir /etc/opencas/
%dir /lib/opencas/
%dir /usr/lib/opencas/
%dir /var/lib/opencas
%config /etc/opencas/opencas.conf
/etc/opencas/ioclass-config.csv
/etc/dracut.conf.d/opencas.conf
/var/lib/opencas/cas_version
/lib/opencas/casctl
/lib/opencas/open-cas-loader.py
/lib/opencas/opencas.py
/lib/udev/rules.d/60-persistent-storage-cas-load.rules
/lib/udev/rules.d/60-persistent-storage-cas.rules
/usr/lib/opencas/casctl
/usr/lib/opencas/open-cas-loader.py
/usr/lib/opencas/opencas.py
/usr/lib/udev/rules.d/60-persistent-storage-cas-load.rules
/usr/lib/udev/rules.d/60-persistent-storage-cas.rules
/sbin/casadm
/sbin/casctl
/usr/bin/opencas_exporter
Expand All @@ -172,9 +173,9 @@ fi
/usr/share/man/man8/casadm.8.gz
/usr/share/man/man8/casctl.8.gz
%ghost /var/log/opencas.log
%ghost /lib/opencas/opencas.pyc
%ghost /lib/opencas/opencas.pyo
%ghost /lib/opencas/__pycache__
%ghost /usr/lib/opencas/opencas.pyc
%ghost /usr/lib/opencas/opencas.pyo
%ghost /usr/lib/opencas/__pycache__

%files modules_%{kver_filename}
%defattr(644, root, root, 755)
Expand Down
5 changes: 3 additions & 2 deletions utils/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#
# Copyright(c) 2012-2022 Intel Corporation
# Copyright(c) 2025 Huawei Technologies
# Copyright(c) 2026 Unvertical
# SPDX-License-Identifier: BSD-3-Clause
#

include ../tools/helpers.mk

CASCTL_DIR = /lib/opencas
UDEVRULES_DIR = /lib/udev/rules.d
CASCTL_DIR = /usr/lib/opencas
UDEVRULES_DIR = /usr/lib/udev/rules.d
METADATA_DIR:=$(PWD)/../.metadata
UTILS_DIR:=$(PWD)/../utils
UDEV:=$(shell which udevadm)
Expand Down
Loading