Ignore:
Timestamp:
2015-01-28T17:17:30+13:00 (9 years ago)
Author:
Jeremy Symon
Message:

Addded ReadMe files containing setup instructions for all package managers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/package-kits/linux/repos/pacman

    r29691 r29697  
    2424            mkdir -p $repos/arch/$arch || exit 1
    2525        done
    26         echo "Making readme file"
     26        echo
     27        keyid=$(get_gpg)
     28        echo "Making ReadMe file"
    2729        echo "\
    28 To use this repository:
     30$setup_cmd_instruction
    2931
    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
    3140
    32   [$label]
    33   Server = http://$domain/repos/arch/\$arch
     41$install_cmd_instruction
    3442
    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
    5645        ;;
    5746    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)
    7048        repo_add_check
    7149        shift
Note: See TracChangeset for help on using the changeset viewer.