add signfile to replace signpkg and signiso

This commit is contained in:
udeved 2016-02-22 21:57:55 +01:00
parent 46a703637d
commit 88790a9246
6 changed files with 7 additions and 37 deletions

View file

@ -11,6 +11,7 @@ BIN_BASE = \
bin/basestrap \
bin/manjaro-chroot \
bin/fstabgen \
bin/signfile \
bin/chroot-run
LIBS_BASE = \
@ -35,7 +36,6 @@ BIN_PKG = \
bin/lddd \
bin/finddeps \
bin/find-libdeps \
bin/signpkg \
bin/signpkgs \
bin/mkchrootpkg \
bin/buildpkg \
@ -61,8 +61,7 @@ SETS_ISO = \
BIN_ISO = \
bin/buildiso \
bin/testiso \
bin/deployiso \
bin/signiso
bin/deployiso
LIBS_ISO = \
lib/util-iso.sh \

View file

@ -21,9 +21,9 @@ load_vars "$HOME/.makepkg.conf"
load_vars /etc/makepkg.conf
if [ ! -e "$1" ]; then
error "Iso %s does not exist!" "$1"
error "%s does not exist!" "$1"
exit 1
fi
msg "Signing iso %s with key %s" "$1" "${GPGKEY}..."
msg "Signing %s with key %s" "$1" "${GPGKEY}..."
gpg --detach-sign --use-agent -u "${GPGKEY}" "$1"

View file

@ -1,29 +0,0 @@
#!/bin/bash
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
version=@version@
LIBDIR='@libdir@'
[[ -r ${LIBDIR}/util-msg.sh ]] && source ${LIBDIR}/util-msg.sh
import ${LIBDIR}/util.sh
load_vars "$HOME/.makepkg.conf"
load_vars /etc/makepkg.conf
if [ ! -e "$1" ]; then
error "Package '$1' does not exists!"
exit 1
fi
msg "Signing package %s with key %s" "$1" "${GPGKEY}..."
gpg --detach-sign --use-agent -u "${GPGKEY}" "$1"

View file

@ -11,4 +11,4 @@
version=@version@
find $PWD -maxdepth 1 -name '*.pkg.tar.xz' -exec signpkg {} \;
find $PWD -maxdepth 1 -name '*.pkg.tar.xz' -exec signfile {} \;

View file

@ -589,7 +589,7 @@ load_profile(){
}
sign_iso(){
su ${OWNER} -c "signiso ${iso_dir}/$1"
su ${OWNER} -c "signfile ${iso_dir}/$1"
}
compress_images(){

View file

@ -105,7 +105,7 @@ clean_up(){
}
sign_pkg(){
su ${OWNER} -c "signpkg ${pkg_dir}/$1"
su ${OWNER} -c "signfile ${pkg_dir}/$1"
}
run_post_build(){