-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (26 loc) · 1.09 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
SHELL = /bin/bash
ifneq (,$(wildcard /etc/fedora-release))
DIST ?= fc$(shell rpm --eval %{fedora})
else ifneq (,$(wildcard /etc/fedora-release))
DIST ?= centos$(shell rpm --eval %{centos})
else
DIST ?= fc30
endif
all:
@true
install-dom0:
# repos
install -Dm 0644 repos/notset-qubes-dom0.repo $(DESTDIR)/etc/yum.repos.d/notset-qubes-dom0.repo
DIST='$(DIST)'; sed -i "s/@DIST@/$$DIST/g" $(DESTDIR)/etc/yum.repos.d/notset-qubes-dom0.repo
#GPG key
install -Dpm 644 RPM-GPG-KEY-notset $(DESTDIR)/etc/pki/rpm-gpg/RPM-GPG-KEY-notset
install-vm-rh:
# repos
install -Dm 0644 repos/notset-qubes-vm.repo $(DESTDIR)/etc/yum.repos.d/notset-qubes.repo
DIST='$(DIST)'; sed -i "s/@DIST@/$$DIST/g" $(DESTDIR)/etc/yum.repos.d/notset-qubes.repo
#GPG key
install -Dpm 644 RPM-GPG-KEY-notset $(DESTDIR)/etc/pki/rpm-gpg/RPM-GPG-KEY-notset
install-vm-deb:
mkdir -p $(DESTDIR)/etc/apt/sources.list.d
sed -e "s/@DIST@/`lsb_release -cs`/" repos/notset-qubes-vm.list.in > $(DESTDIR)/etc/apt/sources.list.d/notset-qubes.list
gpg --dearmor --output $(DESTDIR)/etc/apt/trusted.gpg.d/notset-archive-keyring.gpg RPM-GPG-KEY-notset