Commit Graph

71 Commits

Author SHA1 Message Date
Jing Luo
449722bcc9 d/control: change binary package architecture from any to all
There is no architecture dependent binary files in the final deb
package. There is no shared libs either (says debhelper), so let's remove
that too.

Signed-off-by: Jing Luo <jing@jing.rocks>
Reviewed-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-11-11 23:34:32 +01:00
Lukas Wagner
fede7e87e4 notifications: use named templates instead of in-code templates
This commit adapts notification sending for
    - package update
    - replication
    - backups

to use named templates (installed in /usr/share/pve-manager/templates)
instead of passing template strings defined in code to the
notification stack.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Max Carrara <m.carrara@proxmox.com>
Reviewed-by: Max Carrara <m.carrara@proxmox.com>
2024-06-03 14:16:35 +02:00
Thomas Lamprecht
a74e269c82 build-sys: allow a multi-digit release number
future proofing at this point, but let's rather fix this already
before we forget...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-02-19 14:42:59 +01:00
Thomas Lamprecht
38909c4667 buildsys: ordering/style cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-07-03 13:17:18 +02:00
Thomas Lamprecht
e36407c29e buildsys: derive upload dist automatically and avoid bogus check
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-29 18:24:00 +02:00
Thomas Lamprecht
ff7fd641ac buildsys: adapt extracting release to native versioning
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-29 18:24:00 +02:00
Thomas Lamprecht
739e2a4f04 buildsys: add DSC & sbuild convenience target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-29 18:24:00 +02:00
Thomas Lamprecht
8df08859c4 buildsys: make build-dir generation atomic and versioned
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-29 18:24:00 +02:00
Thomas Lamprecht
7389c41a62 buildsys: use correct DEB_HOST_ARCH
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-29 18:24:00 +02:00
Thomas Lamprecht
0e77456f1f expand repoid to 16 chars and avoid querying git for it twice
i.e., just reuse GITVERSION, and FWIW, the current ID length git
auto chooses is 9 chars, suggesting that 8 really was getting to
small. With 16 we got now 64 bits, that's plenty for the next few
years.

Document the format also (roughly) in the API schema

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-29 18:24:00 +02:00
Thomas Lamprecht
147d67c495 makefile: convert to use simple parenthesis
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-29 18:24:00 +02:00
Thomas Lamprecht
02651425d9 avoid installing unused var/lib/vz/template/qemu directory
some users in the forum[0][1] and oguz wondered and made me notice
it, its neither used nor referred too in pve-storage, qemu-server nor
the pve-manager package itself, so just drop it.

[0]: https://forum.proxmox.com/threads/qemu-template-questions.18053/
[1]: https://forum.proxmox.com/threads/what-is-var-lib-vz-template-qemu-for.100092/

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-11 14:13:45 +01:00
Thomas Lamprecht
86badf17fe buildsys: lintian: do not ignore "binaries" anymore
not required anymore and if it would be, we'd rather use the
debian/lintian-overrides file

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-04 12:22:02 +02:00
Thomas Lamprecht
f0982ad94b buildsys: change upload/config dist to bullseye
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-20 20:54:07 +02:00
Thomas Lamprecht
339ff552b1 Revert "buildsys: change upload/repo dist to bullseye"
pushed by mistake, please ignore this and the previous one

This reverts commit 4816c96931.
2021-05-20 20:52:52 +02:00
Thomas Lamprecht
4816c96931 buildsys: change upload/repo dist to bullseye
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-20 14:55:53 +02:00
Thomas Lamprecht
c15d821e0a enable eslint on build
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-19 17:42:21 +02:00
Thomas Lamprecht
180a86d39a pvecfg: adapt version and release semantic
Wit commit a74ba607d4 we switched over
to using the dpkg-dev provided helpers to set package version,
architecture and such in the buildsystem.

But unlike other repositories we used the version also for giving it
back over the API through the during build generated PVE::pvecfg
module, which wasn't fully updated to the new style.

This patch does that, and also cleans up semantics a bit, the
following two changed:

release is now the Debian release, instead of the "package release"
(i.e., the -X part of a full package version).
version is now simply the full (pve-manager) version, e.g., 6.0-1 or
the currently for testing used 6.0-0+1

This allows to do everything we used this information for even in a
slightly easier way (no  string concat needed anymore), and fits also
with the terminology we often used in our public channels (mailing
lists, forum, website)

Remove some cruft as we touch things.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-26 16:11:43 +02:00
Thomas Lamprecht
8b1b7d43e2 buildsys: switch upload dist over to buster
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-22 21:34:47 +02:00
Thomas Lamprecht
a74ba607d4 buildsys: use dpkg-dev makefile helpers for pkg info
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-22 21:15:47 +02:00
Thomas Lamprecht
6530ef46f6 fixup: Makefile: s/tests/test/
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-10-23 12:49:10 +02:00
Fabian Grünbichler
7f4d4526f2 build: use pve-doc-generator to verify API
and move API verification to 'check' target, where it belongs.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2018-10-18 14:17:08 +02:00
Fabian Grünbichler
fb992042c6 build: pull REPOID into top-level Makefile
otherwise it is missing when building in a clean chroot via a generated
source packages.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2018-10-18 14:17:08 +02:00
Fabian Grünbichler
1b9008bff2 build: cleanup file generation
should happen in the default 'all' target, not in 'install'.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2018-10-18 14:15:41 +02:00
Wolfgang Bumiller
96c6d04528 buildsys: remove excess directory creations
/usr/share/$(PACKAGE) is used for country.dat, installed
with -D
/usr/share/man/man1 is defined as $(MAN1DIR) in
defines.mk and already created in bin/Makefile where it is
actually used.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-06-20 14:08:36 +02:00
Thomas Lamprecht
73ed0af158 cleanup: move bin/test to toplevel
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-06-20 13:04:51 +02:00
Thomas Lamprecht
6ebc0106ce cleanup: add network-hooks directory and move respective files
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-06-20 13:04:51 +02:00
Thomas Lamprecht
0d82069367 cleanup: add configs directory and move respective files
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-06-20 13:04:51 +02:00
Thomas Lamprecht
6d820e34f2 cleanup: rename bin/init.d to services
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-06-20 13:04:51 +02:00
Thomas Lamprecht
de79fdddbf cleanup: replace repoid.pl script by simple git commands
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-06-20 13:04:51 +02:00
Thomas Lamprecht
86a76b2875 buildsys: remove wildcard target from Makefile
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-06-20 13:04:51 +02:00
Fabian Grünbichler
80b368960e build: use git rev-parse for GITVERSION
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2018-03-13 11:06:12 +01:00
Thomas Lamprecht
2bb03197d3 remove now unused translations
We use proxmox-i18n now and merged those files there already
2018-01-25 13:36:38 +01:00
Wolfgang Bumiller
85fd9b52ae Revert "trust StartCom_Certification_Authority_2.crt"
This reverts commit 12fe9183cb.

Revert "add missing file"

This reverts commit c11885e0a0.

We've switched to Let's Encrypt.

postinst configure: run update-ca-certificates if the
  previous version is <= 5.0-23.
2017-07-19 09:38:49 +02:00
Dietmar Maurer
12fe9183cb trust StartCom_Certification_Authority_2.crt 2017-07-04 11:48:52 +02:00
Fabian Grünbichler
7a26f73112 add initramfs conf snippet disabling RESUME
otherwise, every boot will wait for the swap ZVol on root on
ZFS systems.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-22 12:23:01 +02:00
Wolfgang Bumiller
458686553a buildsys: clean: remove .buildinfo and .changes 2017-06-12 10:20:21 +02:00
Fabian Grünbichler
8c20050867 build: fakeroot is default anyway 2017-06-12 09:27:23 +02:00
Fabian Grünbichler
9222d45852 build: make control static 2017-06-12 09:26:57 +02:00
Dominik Csapak
ff9c5f016e change from dpkg-deb to dpkg-buildpackage
for better building pve-manager

this moves the copyright file to debian/
the debian/changelog.Debian to debian/changelog

we do not need the debian/conffiles anymore (gets autogenerated from
files in ./etc/)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-09 14:00:32 +02:00
Dominik Csapak
7a961fde19 add SOURCE_DATE_EPOCH to Makefile
to get consistent timestamps for most files in the package

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-09 14:00:14 +02:00
Dietmar Maurer
df16be460c bin/test/Makefile: run all replication tests 2017-05-31 08:23:47 +02:00
Dietmar Maurer
7fffbe322d Makefile: use "ssh -X" for upload 2017-03-14 07:59:01 +01:00
Dietmar Maurer
6170007abf install lintian overrides file 2017-03-14 06:45:29 +01:00
Wolfgang Bumiller
03be1711c7 bump version to 5.0-1 2017-03-13 14:23:52 +01:00
Wolfgang Bumiller
c27e8e4905 buildsys: make job safety 2017-03-13 14:18:21 +01:00
Dietmar Maurer
d88e0b4fc7 remove vznet.conf
leftover from openvz - not used anymore...
2017-01-04 10:43:15 +01:00
Thomas Lamprecht
8f46103543 Makefile: fix distclean target
As some Makefiles in sub directories do not implement the distclean
target, namely:
PVE/Service/Makefile
PVE/CLI/Makefile

This target is broken.

As all other implementations just redirect to the 'clean' target I
do not implement the missing ones but rather remove all such
targets. Keep it just in the top level directory, for consistence
sake with other pve repos, and redirect it there directly to the
clean target.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-09-28 08:21:48 +02:00
Emmanuel Kasper
9829cb0dea Do not use a hardcoded Certificate Authority for https repositories
Instead we will the use the CA certificate provided by the
ca-certificates packages, which is now a mandatory depency of
pve-manager since 067d24db98 and
pve-manager 4.2-17. This change allows us in the future to
use different CA for our https repositories.

This changed has been tested OK with the following combination:
 * https repository using a StartCom certificate: works
 * https repository using a Let's encrypt certificate: works

User visible changes:
 * none : the new configuration file 75pveconf silently
 overwrites the olderone, except if local changes were made
 in which case you're presented with the traditional debian menu
 (keep local/ use packager version/ diff / open a shell)
2016-08-17 12:35:16 +02:00
Wolfgang Bumiller
3f682b1d6d use new repoman toolkit 2016-06-29 14:41:04 +02:00