Changeset 29697 for main/trunk/package-kits/linux/repos/pacman
- Timestamp:
- 2015-01-28T17:17:30+13:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/package-kits/linux/repos/pacman
r29691 r29697 24 24 mkdir -p $repos/arch/$arch || exit 1 25 25 done 26 echo "Making readme file" 26 echo 27 keyid=$(get_gpg) 28 echo "Making ReadMe file" 27 29 echo "\ 28 To use this repository: 30 $setup_cmd_instruction 29 31 30 1. Add the following section to your pacman.conf: 32 ( 33 echo '[$label]' 34 echo 'Server = http://$domain/repos/arch/\$arch' 35 ) >> /etc/pacman.conf 36 curl -L 'http://$domain/repos/gpg.key' | pacman-key -a - 37 pacman-key -f $keyid 38 pacman-key --lsign-key $keyid 39 pacman -Syu 31 40 32 [$label] 33 Server = http://$domain/repos/arch/\$arch 41 $install_cmd_instruction 34 42 35 2. Import the $label GPG public key: 36 37 wget http://$domain/repos/gpg.key -O ${label}.key 38 sudo pacman-key -a ${label}.key 39 sudo pacman-key -f <keyid> 40 sudo pacman-key --lsign-key <keyid> 41 42 To find the <keyid>, you can run 43 44 sudo pacman-key -l 45 46 And find the key with uid '$origin'. 47 It should be at the bottom, as it was just added 48 49 2.1. If you don't want to import the $label GPG key, you can just prepend the 50 following to your pacman.conf: 51 52 [SigLevel = Optional] 53 54 This will disable signature checking, allowing you to install packages 55 without ensuring they originated with the Greenstone Team." > $repos/arch/readme 43 sudo pacman -S greenstone 44 " > $repos/arch/ReadMe 56 45 ;; 57 46 add) 58 if test -f $base/gpg.key.id; then 59 keyid=$(cat $base/gpg.key.id) 60 else 61 gpg --list-keys 62 echo "Enter the keyid of the GPG key to use:" 63 while test -z $keyid; do 64 echo -n "> " 65 read keyid 66 done 67 echo $keyid > $base/gpg.key.id 68 echo 69 fi 47 keyid=$(get_gpg) 70 48 repo_add_check 71 49 shift
Note:
See TracChangeset
for help on using the changeset viewer.