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
2 changes: 1 addition & 1 deletion extra/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

DIRS := prometheus

all clean install uninstall:
all clean install install_files uninstall:
@for dir in $(DIRS); do \
$(MAKE) -C $$dir $@; \
done
Expand Down
6 changes: 4 additions & 2 deletions extra/prometheus/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ else
SYSTEMD_DIR=/lib/systemd/system
endif

install: all
install: install_files
$(SYSTEMCTL) daemon-reload

install_files: all
install -m 755 -D opencas_exporter $(DESTDIR)/usr/bin/opencas_exporter
install -m 644 -D opencas_exporter.service $(DESTDIR)$(SYSTEMD_DIR)/opencas_exporter.service
$(SYSTEMCTL) daemon-reload

uninstall:
-$(SYSTEMCTL) disable --now opencas_exporter
Expand Down
4 changes: 4 additions & 0 deletions tools/pckgen.d/rpm/CAS_NAME.spec
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,11 @@ fi
/lib/udev/rules.d/60-persistent-storage-cas.rules
/sbin/casadm
/sbin/casctl
/usr/bin/opencas_exporter
/usr/lib/systemd/system-shutdown/open-cas.shutdown
/usr/lib/systemd/system/open-cas-shutdown.service
/usr/lib/systemd/system/open-cas.service
/usr/lib/systemd/system/opencas_exporter.service
/usr/share/man/man5/opencas.conf.5.gz
/usr/share/man/man8/casadm.8.gz
/usr/share/man/man8/casctl.8.gz
Expand All @@ -181,6 +183,8 @@ fi


%changelog
* Tue Apr 28 2026 Qin Fandong <qinfandong@kylinos.cn> - 26.06-1
- Add opencas_exporter
* Mon Aug 25 2025 Rafal Stefanowski <rafal.stefanowski@huawei.com> - 25.03-1
* Thu Aug 7 2025 Brian J. Murrell <brian@interlinx.bc.ca> - 25.03-1
- Allow building RPM packages for different kernel versions
Expand Down
Loading