summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-02-16 13:06:09 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-02-16 13:06:19 -0200
commit0724f68631c267285063fc5e9ed2fc1a618c58ee (patch)
tree745af38b33890fabe4cf71469a9aeefb749efd3f /Makefile
parent5725ce45eaa91eeb83f1efaed8ccedcc96a2bdc0 (diff)
import some features from old parabola-keyring
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d99b3d7..7988ecd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+V=20150216
+
export LANG=C
export SHELL=/bin/bash
@@ -13,8 +15,28 @@ users = $(call dep_dir,users)
all: PHONY pacman-keyring postfix-virtual-map
+PREFIX = /usr/local
+
+install:
+ install -dm755 $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
+ install -m0644 parabola{.gpg,-trusted,-revoked} $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
+
+uninstall:
+ rm -f $(DESTDIR)$(PREFIX)/share/pacman/keyrings/parabola{.gpg,-trusted,-revoked}
+ rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
+
+dist:
+ cp -rv output/pacman-keyring output/parabola-keyring-$(V)/
+ cp -v Makefile output/parabola-keyring-$(V)/
+ bsdtar czf output/parabola-keyring-$(V).tar.gz -C output parabola-keyring-$(V)/
+ gpg --detach-sign --use-agent output/parabola-keyring-$(V).tar.gz
+
+upload:
+ scp output/parabola-keyring-$(V).tar.gz output/parabola-keyring-$(V).tar.gz.sig parabola:/srv/repo/main/other/parabola-keyring
+
clean: PHONY
rm -rf output/cache
+
distclean: PHONY
rm -rf output