forked from Proxmox/proxmox-perl-rs
add libproxmox-rs-perl and release it as 0.1.0
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
c8a5f758eb
commit
4beb35701b
15
Makefile
15
Makefile
@ -25,9 +25,11 @@ all:
|
||||
ifeq ($(BUILD_TARGET), pve)
|
||||
$(MAKE) pve
|
||||
else ifeq ($(BUILD_TARGET), pmg)
|
||||
$(MAKE) pve
|
||||
$(MAKE) pmg
|
||||
else
|
||||
@echo "Run 'make pve' or 'make pmg'"
|
||||
@echo "Run one of"
|
||||
@echo " - make pve"
|
||||
@echo " - make pmg"
|
||||
endif
|
||||
|
||||
.PHONY: pve pmg
|
||||
@ -56,7 +58,7 @@ build:
|
||||
mkdir build
|
||||
echo system >build/rust-toolchain
|
||||
cp -a ./scripts ./build
|
||||
cp -a ./common-src ./build
|
||||
cp -a ./common ./build
|
||||
cp -a ./pve-rs ./build
|
||||
cp -a ./pmg-rs ./build
|
||||
cp -a ./Proxmox ./build
|
||||
@ -67,6 +69,9 @@ build:
|
||||
mv ./build/Proxmox/Lib/PMG.pm ./build/pmg-rs/Proxmox/Lib/PMG.pm
|
||||
mv ./build/PVE ./build/pve-rs
|
||||
mv ./build/PMG ./build/pmg-rs
|
||||
mv ./build/Proxmox ./build/common/pkg
|
||||
# So the common packages end up in ./build, rather than ./build/common
|
||||
mv ./build/common/pkg ./build/common-pkg
|
||||
|
||||
pve-deb: build
|
||||
cd ./build/pve-rs && dpkg-buildpackage -b -uc -us
|
||||
@ -76,6 +81,10 @@ pmg-deb: build
|
||||
cd ./build/pmg-rs && dpkg-buildpackage -b -uc -us
|
||||
touch $@
|
||||
|
||||
common-deb: build
|
||||
cd ./build/common-pkg && dpkg-buildpackage -b -uc -us
|
||||
touch $@
|
||||
|
||||
%-upload: %-deb
|
||||
cd build; \
|
||||
dcmd --deb lib$*-rs-perl*.changes \
|
||||
|
40
common/pkg/Makefile
Normal file
40
common/pkg/Makefile
Normal file
@ -0,0 +1,40 @@
|
||||
include /usr/share/dpkg/default.mk
|
||||
|
||||
PACKAGE=libproxmox-rs-perl
|
||||
|
||||
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
||||
export GITVERSION:=$(shell git rev-parse HEAD)
|
||||
|
||||
PERL_INSTALLVENDORARCH != perl -MConfig -e 'print $$Config{installvendorarch};'
|
||||
PERL_INSTALLVENDORLIB != perl -MConfig -e 'print $$Config{installvendorlib};'
|
||||
|
||||
DEB=${PACKAGE}_${DEB_VERSION}_${ARCH}.deb
|
||||
|
||||
DESTDIR=
|
||||
|
||||
PM_DIRS := \
|
||||
Proxmox/Lib \
|
||||
Proxmox/RS
|
||||
|
||||
PM_FILES := \
|
||||
Proxmox/Lib/Common.pm \
|
||||
Proxmox/RS/CalendarEvent.pm
|
||||
|
||||
all:
|
||||
true
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORLIB)
|
||||
for i in $(PM_DIRS); do \
|
||||
install -d -m755 $(DESTDIR)$(PERL_INSTALLVENDORLIB)/$$i; \
|
||||
done
|
||||
for i in $(PM_FILES); do \
|
||||
install -m644 $$i $(DESTDIR)$(PERL_INSTALLVENDORLIB)/$$i; \
|
||||
done
|
||||
|
||||
.PHONY: deb
|
||||
deb: $(DEB)
|
||||
$(DEB): build
|
||||
cd build; dpkg-buildpackage -b -us -uc --no-pre-clean
|
||||
lintian $(DEBS)
|
6
common/pkg/debian/changelog
Normal file
6
common/pkg/debian/changelog
Normal file
@ -0,0 +1,6 @@
|
||||
libproxmox-rs-perl (0.1.0) bullseye; urgency=medium
|
||||
|
||||
* initial release
|
||||
|
||||
-- Proxmox Support Team <support@proxmox.com> Tue, 01 Mar 2022 09:58:17 +0100
|
||||
|
1
common/pkg/debian/compat
Normal file
1
common/pkg/debian/compat
Normal file
@ -0,0 +1 @@
|
||||
12
|
22
common/pkg/debian/control
Normal file
22
common/pkg/debian/control
Normal file
@ -0,0 +1,22 @@
|
||||
Source: libproxmox-rs-perl
|
||||
Section: perl
|
||||
Priority: optional
|
||||
Build-Depends:
|
||||
debhelper (>= 12),
|
||||
Maintainer: Proxmox Support Team <support@proxmox.com>
|
||||
Standards-Version: 4.5.1
|
||||
Vcs-Git: git://git.proxmox.com/git/proxmox-perl-rs.git
|
||||
Vcs-Browser: https://git.proxmox.com/?p=proxmox-perl-rs.git
|
||||
Homepage: https://www.proxmox.com
|
||||
Rules-Requires-Root: no
|
||||
|
||||
Package: libproxmox-rs-perl
|
||||
Architecture: any
|
||||
Depends:
|
||||
${misc:Depends},
|
||||
${perl:Depends},
|
||||
${shlibs:Depends},
|
||||
libpve-rs-perl (>= 0.6.0) | libpmg-rs-perl (>= 0.5.0),
|
||||
Description: PVE/PMG common parts which have been ported to Rust - Perl packages
|
||||
Contains the perl side of modules provided by the libraries of both libpve-rs-perl and
|
||||
libpmg-rs-perl, loading whichever is available.
|
16
common/pkg/debian/copyright
Normal file
16
common/pkg/debian/copyright
Normal file
@ -0,0 +1,16 @@
|
||||
Copyright (C) 2022 Proxmox Server Solutions GmbH
|
||||
|
||||
This software is written by Proxmox Server Solutions GmbH <support@proxmox.com>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
7
common/pkg/debian/rules
Executable file
7
common/pkg/debian/rules
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
#export DH_VERBOSE=1
|
||||
export BUILD_MODE=release
|
||||
|
||||
%:
|
||||
dh $@
|
1
common/pkg/debian/source/format
Normal file
1
common/pkg/debian/source/format
Normal file
@ -0,0 +1 @@
|
||||
3.0 (native)
|
1
common/pkg/debian/triggers
Normal file
1
common/pkg/debian/triggers
Normal file
@ -0,0 +1 @@
|
||||
activate-noawait pve-api-updates
|
@ -1,4 +1,4 @@
|
||||
Copyright (C) 2020-2021 Proxmox Server Solutions GmbH
|
||||
Copyright (C) 2020-2022 Proxmox Server Solutions GmbH
|
||||
|
||||
This software is written by Proxmox Server Solutions GmbH <support@proxmox.com>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
Copyright (C) 2021 Proxmox Server Solutions GmbH
|
||||
Copyright (C) 2021-2022 Proxmox Server Solutions GmbH
|
||||
|
||||
This software is written by Proxmox Server Solutions GmbH <support@proxmox.com>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user