]> git.proxmox.com Git - proxmox-perl-rs.git/commitdiff
common: add PVE::RS::CalendarEvent for compat
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 17 Mar 2022 12:38:33 +0000 (13:38 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 17 Mar 2022 12:50:14 +0000 (13:50 +0100)
This simply uses the new one as a base in order to help
getting the packages setup initially.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
common/pkg/Makefile
common/pkg/PVE/RS/CalendarEvent.pm [new file with mode: 0644]

index d5a737cd8f80f61a12956a4adb92bc9b1f264267..be795c74ea85eef06d0c31f6dae1fa83ddf6acdd 100644 (file)
@@ -13,10 +13,12 @@ DEB=${PACKAGE}_${DEB_VERSION}_${ARCH}.deb
 DESTDIR=
 
 PM_DIRS := \
+       PVE/RS \
        Proxmox/Lib \
        Proxmox/RS
 
 PM_FILES := \
+       PVE/RS/CalendarEvent.pm \
        Proxmox/Lib/Common.pm \
        Proxmox/RS/CalendarEvent.pm
 
@@ -26,10 +28,10 @@ all:
 .PHONY: install
 install:
        install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORLIB)
-       for i in $(PM_DIRS); do \
+       set -e && for i in $(PM_DIRS); do \
          install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORLIB)/$$i; \
        done
-       for i in $(PM_FILES); do \
+       set -e && for i in $(PM_FILES); do \
          install -m644 $$i $(DESTDIR)$(PERL_INSTALLVENDORLIB)/$$i; \
        done
 
diff --git a/common/pkg/PVE/RS/CalendarEvent.pm b/common/pkg/PVE/RS/CalendarEvent.pm
new file mode 100644 (file)
index 0000000..3a5f66e
--- /dev/null
@@ -0,0 +1,3 @@
+use base 'Proxmox::RS::CalendarEvent';
+# Compat, Deprecated!
+1