diff options
-rw-r--r-- | Makefile | 22 | ||||
-rw-r--r-- | README.md | 12 |
2 files changed, 30 insertions, 4 deletions
@@ -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 @@ -33,14 +33,18 @@ of each file. Using the tools (make) ====================== -There are 2 `make` targets of interest: `pacman-keyring` and -`postfix-virtual-map`. `make [all]` makes both of them. The output -of each goes in `output/{pacman-keyring,postfix-virtual-map}` -respectively. +There are 4 `make` targets of interest: `pacman-keyring`, `dist`, +`upload` and `postfix-virtual-map`. `make [all]` makes `pacman-keyring` +and`postfix-virtual-map`. The output goes in +`output/{pacman-keyring,postfix-virtual-map}` respectively. `pacman-keyring` makes the Pacman keyring that we package up as the `parabola-keyring` package. +`dist` makes the `parabola-keyring` tarball. + +`upload` makes the uploading of `parabola-keyring` tarball to the server. + `postfix-virual-map` makes a map for postfix email aliases we provide to our developers. |