summaryrefslogtreecommitdiff
path: root/cmdline/makefile
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2013-11-30 23:11:43 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2013-12-01 15:51:33 +0100
commit5b2c6ddcc0e45c92c544032ad2bb91bdf7222d7c (patch)
tree5b0950ba24d0f0d50e37db8f5dfdcc6cd479ce9d /cmdline/makefile
parentf87338d2da95ba7d55a1a67b4506717e94d49bca (diff)
generate apt-key script with vendor info about keys
The apt-key script uses quiet a few keyring files for operation which are specific to the distribution it is build on and is hence one of the most patched parts – even if it is not that often used anymore now that a fragment directory for trusted.gpg exists.
Diffstat (limited to 'cmdline/makefile')
-rw-r--r--cmdline/makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmdline/makefile b/cmdline/makefile
index e77ad5669..06f170b6a 100644
--- a/cmdline/makefile
+++ b/cmdline/makefile
@@ -41,6 +41,14 @@ SOURCE = apt-cdrom.cc
include $(PROGRAM_H)
# The apt-key program
+apt-key: apt-key.in
+ sed -e "s#&keyring-filename;#$(shell ../vendor/getinfo keyring-filename)#" \
+ -e "s#&keyring-removed-filename;#$(shell ../vendor/getinfo keyring-removed-filename)#" \
+ -e "s#&keyring-master-filename;#$(shell ../vendor/getinfo keyring-master-filename)#" \
+ -e "s#&keyring-uri;#$(shell ../vendor/getinfo keyring-uri)#" \
+ -e "s#&keyring-package;#$(shell ../vendor/getinfo keyring-package)#" $< > $@
+ chmod 755 $@
+
SOURCE=apt-key
TO=$(BIN)
TARGET=program