mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-10-04 14:31:00 +00:00
cleanup: add configs directory and move respective files
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
6d820e34f2
commit
0d82069367
15
Makefile
15
Makefile
@ -4,7 +4,7 @@ export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp)
|
|||||||
|
|
||||||
DESTDIR=
|
DESTDIR=
|
||||||
|
|
||||||
SUBDIRS = aplinfo PVE bin www services
|
SUBDIRS = aplinfo PVE bin www services configs
|
||||||
|
|
||||||
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
||||||
GITVERSION:=$(shell git rev-parse HEAD)
|
GITVERSION:=$(shell git rev-parse HEAD)
|
||||||
@ -20,9 +20,6 @@ check:
|
|||||||
dinstall: ${DEB}
|
dinstall: ${DEB}
|
||||||
dpkg -i ${DEB}
|
dpkg -i ${DEB}
|
||||||
|
|
||||||
country.dat: country.pl
|
|
||||||
./country.pl > country.dat
|
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: $(DEB)
|
deb: $(DEB)
|
||||||
$(DEB):
|
$(DEB):
|
||||||
@ -41,9 +38,8 @@ upload: ${DEB} check
|
|||||||
tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com upload --product pve --dist stretch
|
tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com upload --product pve --dist stretch
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: country.dat vzdump.conf vzdump-hook-script.pl pve-apt.conf mtu bridgevlan bridgevlanport vlan vlan-down
|
install: vzdump-hook-script.pl mtu bridgevlan bridgevlanport vlan vlan-down
|
||||||
install -d -m 0700 -o www-data -g www-data ${DESTDIR}/var/log/pveproxy
|
install -d -m 0700 -o www-data -g www-data ${DESTDIR}/var/log/pveproxy
|
||||||
install -D -m 0644 debian/pve.logrotate ${DESTDIR}/etc/logrotate.d/pve
|
|
||||||
install -d ${DESTDIR}/usr/share/${PACKAGE}
|
install -d ${DESTDIR}/usr/share/${PACKAGE}
|
||||||
install -d ${DESTDIR}/usr/share/man/man1
|
install -d ${DESTDIR}/usr/share/man/man1
|
||||||
install -d ${DOCDIR}/examples
|
install -d ${DOCDIR}/examples
|
||||||
@ -52,21 +48,14 @@ install: country.dat vzdump.conf vzdump-hook-script.pl pve-apt.conf mtu bridgevl
|
|||||||
install -d ${DESTDIR}/var/lib/vz/template/cache
|
install -d ${DESTDIR}/var/lib/vz/template/cache
|
||||||
install -d ${DESTDIR}/var/lib/vz/template/iso
|
install -d ${DESTDIR}/var/lib/vz/template/iso
|
||||||
install -d ${DESTDIR}/var/lib/vz/template/qemu
|
install -d ${DESTDIR}/var/lib/vz/template/qemu
|
||||||
install -D -m 0644 pve-apt.conf ${DESTDIR}/etc/apt/apt.conf.d/75pveconf
|
|
||||||
install -D -m 0644 pve-sources.list ${DESTDIR}/etc/apt/sources.list.d/pve-enterprise.list
|
|
||||||
install -D -m 0644 pve-blacklist.conf ${DESTDIR}/etc/modprobe.d/pve-blacklist.conf
|
|
||||||
install -D -m 0644 vzdump.conf ${DESTDIR}/etc/vzdump.conf
|
|
||||||
install -D -m 0755 mtu ${DESTDIR}/etc/network/if-up.d/mtu
|
install -D -m 0755 mtu ${DESTDIR}/etc/network/if-up.d/mtu
|
||||||
install -D -m 0755 bridgevlan ${DESTDIR}/etc/network/if-up.d/bridgevlan
|
install -D -m 0755 bridgevlan ${DESTDIR}/etc/network/if-up.d/bridgevlan
|
||||||
install -D -m 0755 bridgevlanport ${DESTDIR}/etc/network/if-up.d/bridgevlanport
|
install -D -m 0755 bridgevlanport ${DESTDIR}/etc/network/if-up.d/bridgevlanport
|
||||||
install -D -m 0755 vlan ${DESTDIR}/etc/network/if-pre-up.d/vlan
|
install -D -m 0755 vlan ${DESTDIR}/etc/network/if-pre-up.d/vlan
|
||||||
install -D -m 0755 vlan-down ${DESTDIR}/etc/network/if-post-down.d/vlan
|
install -D -m 0755 vlan-down ${DESTDIR}/etc/network/if-post-down.d/vlan
|
||||||
|
|
||||||
install -D -m 0644 pve-initramfs.conf ${DESTDIR}/etc/initramfs-tools/conf.d/pve-initramfs.conf
|
|
||||||
|
|
||||||
install -m 0644 vzdump-hook-script.pl ${DOCDIR}/examples/vzdump-hook-script.pl
|
install -m 0644 vzdump-hook-script.pl ${DOCDIR}/examples/vzdump-hook-script.pl
|
||||||
install -m 0644 spice-example-sh ${DOCDIR}/examples/spice-example-sh
|
install -m 0644 spice-example-sh ${DOCDIR}/examples/spice-example-sh
|
||||||
install -m 0644 country.dat ${DESTDIR}/usr/share/${PACKAGE}
|
|
||||||
|
|
||||||
set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done
|
set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done
|
||||||
|
|
||||||
|
19
configs/Makefile
Normal file
19
configs/Makefile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
include ../defines.mk
|
||||||
|
|
||||||
|
all:
|
||||||
|
|
||||||
|
country.dat: country.pl
|
||||||
|
./country.pl > country.dat
|
||||||
|
|
||||||
|
.PHONY: install
|
||||||
|
install: country.dat vzdump.conf pve-apt.conf pve-sources.list pve-initramfs.conf pve-blacklist.conf pve.logrotate
|
||||||
|
install -D -m 0644 pve.logrotate ${DESTDIR}/etc/logrotate.d/pve
|
||||||
|
install -D -m 0644 pve-apt.conf ${DESTDIR}/etc/apt/apt.conf.d/75pveconf
|
||||||
|
install -D -m 0644 pve-sources.list ${DESTDIR}/etc/apt/sources.list.d/pve-enterprise.list
|
||||||
|
install -D -m 0644 pve-blacklist.conf ${DESTDIR}/etc/modprobe.d/pve-blacklist.conf
|
||||||
|
install -D -m 0644 vzdump.conf ${DESTDIR}/etc/vzdump.conf
|
||||||
|
install -D -m 0644 pve-initramfs.conf ${DESTDIR}/etc/initramfs-tools/conf.d/pve-initramfs.conf
|
||||||
|
install -D -m 0644 country.dat ${DESTDIR}/usr/share/${PACKAGE}/country.dat
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f country.dat
|
Loading…
Reference in New Issue
Block a user