Changeset 29704 for main/trunk/package-kits
- Timestamp:
- 2015-02-03T09:53:54+13:00 (9 years ago)
- Location:
- main/trunk/package-kits/linux/repos
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/package-kits/linux/repos/ReadMe
r29692 r29704 33 33 and to maintain the repositories for those package-managers (e.g. adding new 34 34 versions of packages) 35 Usage: 36 setup - creates the package manager's repo, and any config / readme files 37 add <pkg> [...] - adds any number of packages to the repo 35 38 36 39 ./apt 40 Depends on: reprepro gnupg 37 41 Generates an apt package repository under ./repos/ 38 42 reprepro is used to manage the repository, so this script just generates the … … 40 44 41 45 ./pacman 46 Depends on: repo-add gnupg xdelta3 42 47 Generates a pacman package repository under ./repos/ 43 48 repo-add is used to manage the repositories. … … 47 52 48 53 ./rpm 54 Depends on: createrepo rpmsign gnupg 49 55 Generates a rpm package repository under ./repos/ 50 56 createrepo is used to manage the repositories. -
main/trunk/package-kits/linux/repos/pacman
r29700 r29704 8 8 9 9 repo_add_check() { 10 cd $repos/arch/ || {10 test -d $repos/arch/ || { 11 11 echo "Repository not found. Have you set it up?" >&2 12 12 exit 1 … … 21 21 setup) 22 22 echo "Making arch package repository folders" 23 for arch in anyx86_64 i686; do23 for arch in x86_64 i686; do 24 24 mkdir -p $repos/arch/$arch || exit 1 25 25 done … … 50 50 for pkg in $@; do 51 51 # Default to all architectures unless an architecture is specified 52 arch=" any"52 arch="x86_64 i686" 53 53 echo $pkg | grep 'x86_64\.pkg' >/dev/null 2>/dev/null && { 54 54 arch="x86_64" … … 58 58 } 59 59 name="$(basename $pkg)" 60 echo "$name: $arch"61 cp $pkg $arch/62 rm -f "$arch/${name}.sig"63 gpg --detach-sign --use-agent --default-key $keyid "$arch/$name"64 # If arch is any, symlink package into all architectures65 if test "$arch" = "any"; then66 for link in x86_64 i686; do67 echo "$name: $link (linked)"68 cd $link69 ln -sf ../any/$name $name70 ln -sf ../any/${name}.sig ${name}.sig71 cd ..72 done73 arch="any x86_64 i686"74 fi75 76 60 for pkgarch in $arch; do 77 cd $pkgarch 78 repo-add -s -k $keyid -v -d ${label}.db.tar.xz $name 79 cd .. 61 dir="$repos/arch/$pkgarch" 62 cp "$pkg" "$dir/" 63 cd "$dir" 64 echo "$name: $pkgarch" 65 rm -f "${name}.sig" 66 gpg --detach-sign --use-agent --default-key "$keyid" "$name" 67 repo-add -s -k "$keyid" -v -d "${label}.db.tar.xz" "$name" 68 cd - 80 69 done 81 70 done
Note:
See TracChangeset
for help on using the changeset viewer.