]> git.proxmox.com Git - pmg-api.git/commitdiff
install /etc/apt/apt.conf.d/75pmgconf to avoid atomatic kernel removes
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 14 Dec 2017 10:11:38 +0000 (11:11 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 14 Dec 2017 10:11:38 +0000 (11:11 +0100)
Makefile
debian/lintian-overrides [new file with mode: 0644]
pmg-apt.conf [new file with mode: 0644]

index b1569fa4e93c6dbaa9f0e03682311817e215c1cc..f8cccd14f82525e28efb055e81e65dbffb42b5ff 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -150,7 +150,7 @@ LIBSOURCES =                                \
        PMG/API2/Action.pm              \
        PMG/API2.pm
 
-SOURCES = ${LIBSOURCES} ${CLI_BINARIES} ${TEMPLATES_FILES} ${CONF_MANS} ${CLI_MANS} ${SERVICE_MANS} ${SERVICE_UNITS} ${TIMER_UNITS} pmg-sources.list
+SOURCES = ${LIBSOURCES} ${CLI_BINARIES} ${TEMPLATES_FILES} ${CONF_MANS} ${CLI_MANS} ${SERVICE_MANS} ${SERVICE_UNITS} ${TIMER_UNITS} pmg-sources.list pmg-apt.conf
 
 all: ${SOURCES}
 
@@ -183,6 +183,7 @@ install: ${SOURCES} $(addsuffix .service-bash-completion, ${SERVICES}) $(addsuff
        install -d -m 0755 ${DOCDIR}
        # TODO: is there a better location ?
        install -m 0644 favicon.ico ${DOCDIR}
+       install -D -m 0644 pmg-apt.conf ${DESTDIR}/etc/apt/apt.conf.d/75pmgconf
        install -D -m 0644 pmg-sources.list ${DESTDIR}/etc/apt/sources.list.d/pmg-enterprise.list
        for i in ${LIBSOURCES}; do install -D -m 0644 $$i ${PERL5DIR}/$$i; done
        for i in ${SERVICES}; do install -D -m 0644 PMG/Service/$$i.pm ${PERL5DIR}/PMG/Service/$$i.pm; done
diff --git a/debian/lintian-overrides b/debian/lintian-overrides
new file mode 100644 (file)
index 0000000..b4a84a9
--- /dev/null
@@ -0,0 +1,2 @@
+pmg-api: package-installs-apt-sources etc/apt/sources.list.d/
+pmg-api: package-installs-apt-sources etc/apt/sources.list.d/pmg-enterprise.list
\ No newline at end of file
diff --git a/pmg-apt.conf b/pmg-apt.conf
new file mode 100644 (file)
index 0000000..0391b74
--- /dev/null
@@ -0,0 +1,7 @@
+APT
+{
+  NeverAutoRemove
+  {
+       "^pve-kernel-.*";
+  };
+}