summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-06-02 10:12:27 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-06-02 10:12:27 (EDT)
commit12f19801bf46ecceda69e476119a787e405ff904 (patch)
tree1101558927e34a0d6082e79bef8e400e9cc94b99 /src/utils
parent5b483e83bc811d42c9eb0a0e38b45d4549df31bd (diff)
Delete upstream source directory.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/.svn/all-wcprops23
-rw-r--r--src/utils/.svn/entries130
-rw-r--r--src/utils/.svn/prop-base/opkg-key.svn-base5
-rw-r--r--src/utils/.svn/text-base/Makefile.am.svn-base3
-rw-r--r--src/utils/.svn/text-base/opkg-key.svn-base74
-rw-r--r--src/utils/.svn/text-base/update-alternatives.in.svn-base197
-rw-r--r--src/utils/Makefile.am3
-rwxr-xr-xsrc/utils/opkg-key74
-rw-r--r--src/utils/update-alternatives.in197
9 files changed, 0 insertions, 706 deletions
diff --git a/src/utils/.svn/all-wcprops b/src/utils/.svn/all-wcprops
deleted file mode 100644
index 911d4f7..0000000
--- a/src/utils/.svn/all-wcprops
+++ /dev/null
@@ -1,23 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 29
-/svn/!svn/ver/439/trunk/utils
-END
-update-alternatives.in
-K 25
-svn:wc:ra_dav:version-url
-V 52
-/svn/!svn/ver/439/trunk/utils/update-alternatives.in
-END
-opkg-key
-K 25
-svn:wc:ra_dav:version-url
-V 38
-/svn/!svn/ver/106/trunk/utils/opkg-key
-END
-Makefile.am
-K 25
-svn:wc:ra_dav:version-url
-V 41
-/svn/!svn/ver/402/trunk/utils/Makefile.am
-END
diff --git a/src/utils/.svn/entries b/src/utils/.svn/entries
deleted file mode 100644
index 9ecb81a..0000000
--- a/src/utils/.svn/entries
+++ /dev/null
@@ -1,130 +0,0 @@
-10
-
-dir
-635
-http://opkg.googlecode.com/svn/trunk/utils
-http://opkg.googlecode.com/svn
-
-
-
-2009-12-03T04:11:26.978382Z
-439
-graham.gower
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-
-update-alternatives.in
-file
-
-
-
-
-2012-02-03T08:11:57.175042Z
-073ea7a18d937045725fc9951b5dc8ec
-2009-12-03T04:11:26.978382Z
-439
-graham.gower
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-4528
-
-opkg-key
-file
-
-
-
-
-2012-02-03T08:11:57.175042Z
-18f0724827a722399bedc053eb8ceb7c
-2008-12-15T05:16:36.570675Z
-106
-ticktock35
-has-props
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-1671
-
-Makefile.am
-file
-
-
-
-
-2012-02-03T08:11:57.175042Z
-aaace2c1890cfc1f041502207fe30261
-2009-11-27T12:27:33.204296Z
-402
-florian.boor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-72
-
diff --git a/src/utils/.svn/prop-base/opkg-key.svn-base b/src/utils/.svn/prop-base/opkg-key.svn-base
deleted file mode 100644
index 869ac71..0000000
--- a/src/utils/.svn/prop-base/opkg-key.svn-base
+++ /dev/null
@@ -1,5 +0,0 @@
-K 14
-svn:executable
-V 1
-*
-END
diff --git a/src/utils/.svn/text-base/Makefile.am.svn-base b/src/utils/.svn/text-base/Makefile.am.svn-base
deleted file mode 100644
index acac628..0000000
--- a/src/utils/.svn/text-base/Makefile.am.svn-base
+++ /dev/null
@@ -1,3 +0,0 @@
-bin_SCRIPTS = update-alternatives opkg-key
-
-EXTRA_DIST = $(bin_SCRIPTS)
diff --git a/src/utils/.svn/text-base/opkg-key.svn-base b/src/utils/.svn/text-base/opkg-key.svn-base
deleted file mode 100644
index 266bb66..0000000
--- a/src/utils/.svn/text-base/opkg-key.svn-base
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/sh
-
-# Based on apt-key from apt-0.6.25
-# Licensed under GPL Version 2
-
-set -e
-
-usage() {
- echo "Usage: opkg-key [options] command [arguments]"
- echo
- echo "Manage opkg's list of trusted keys"
- echo
- echo " opkg-key add <file> - add the key contained in <file> ('-' for stdin)"
- echo " opkg-key del <keyid> - remove the key <keyid>"
- echo " opkg-key list - list keys"
- echo
- echo "Options:"
- echo " -o <root> Use <root> as the offline root directory"
- echo
-}
-
-if [ "$1" = "-o" ]; then
- ROOT=$2
- shift 2
- echo "Note: using \"$ROOT\" as root path"
-else
- ROOT=""
-fi
-
-command="$1"
-if [ -z "$command" ]; then
- usage
- exit 1
-fi
-shift
-
-if [ "$command" != "help" ] && ! which gpg >/dev/null 2>&1; then
- echo >&2 "Warning: gnupg does not seem to be installed."
- echo >&2 "Warning: opkg-key requires gnupg for most operations."
- echo >&2
-fi
-
-# We don't use a secret keyring, of course, but gpg panics and
-# implodes if there isn't one available
-
-GPG="gpg --no-options --no-default-keyring --keyring $ROOT/etc/opkg/trusted.gpg --secret-keyring $ROOT/etc/opkg/secring.gpg --trustdb-name $ROOT/etc/opkg/trustdb.gpg"
-
-case "$command" in
- add)
- $GPG --quiet --batch --import "$1"
- echo "OK"
- ;;
- del|rm|remove)
- $GPG --quiet --batch --delete-key --yes "$1"
- echo "OK"
- ;;
- list)
- $GPG --batch --list-keys
- ;;
- finger*)
- $GPG --batch --fingerprint
- ;;
- adv*)
- echo "Executing: $GPG $*"
- $GPG $*
- ;;
- help)
- usage
- ;;
- *)
- usage
- exit 1
- ;;
-esac
diff --git a/src/utils/.svn/text-base/update-alternatives.in.svn-base b/src/utils/.svn/text-base/update-alternatives.in.svn-base
deleted file mode 100644
index 34d89f1..0000000
--- a/src/utils/.svn/text-base/update-alternatives.in.svn-base
+++ /dev/null
@@ -1,197 +0,0 @@
-#!/bin/sh
-# update-alternatives
-#
-# Copyright (C) 2001 Carl D. Worth
-#
-# This program was inspired by the Debian update-alternatives program
-# which is Copyright (C) 1995 Ian Jackson. This version of
-# update-alternatives is command-line compatible with Debian's for a
-# subset of the options, (only --install, --remove, and --help)
-#
-# 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; either version 2, or (at your option)
-# any later version.
-#
-# 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.
-
-set -e
-
-# admin dir
-ad="$OPKG_OFFLINE_ROOT@opkglibdir@/opkg/alternatives"
-
-usage() {
- echo "update-alternatives: $*
-
-Usage: update-alternatives --install <link> <name> <path> <priority>
- update-alternatives --remove <name> <path>
- update-alternatives --help
-<link> is the link pointing to the provided path (ie. /usr/bin/foo).
-<name> is the name in $ad/alternatives (ie. foo)
-<path> is the name referred to (ie. /usr/bin/foo-extra-spiffy)
-<priority> is an integer; options with higher numbers are chosen.
-" >&2
- exit 2
-}
-
-quit() {
- echo "update-alternatives: $*" >&2
- exit 2
-}
-
-register_alt() {
- [ $# -lt 2 ] && return 1
- local name="$1"
- local link="$2"
-
- if [ ! -d $ad ]; then
- mkdir -p $ad
- fi
-
- if [ -e "$ad/$name" ]; then
- local olink=`head -n 1 $ad/$name`
- if [ "$link" != "$olink" ]; then
- echo "update-alternatives: Error: cannot register alternative $name to $link since it is already registered to $olink" >&2
- return 1
- fi
- else
- echo "$link" > "$ad/$name"
- fi
-
- return 0
-}
-
-protect_slashes() {
- sed -e 's/\//\\\//g'
-}
-
-remove_alt() {
- [ $# -lt 2 ] && return 1
- local name="$1"
- local path="$2"
-
- [ ! -f $ad/$name ] && return 0
-
- path=`echo $path | protect_slashes`
- sed -ne "/^$path\>.*/!p" $ad/$name > $ad/$name.new
- mv $ad/$name.new $ad/$name
-}
-
-add_alt() {
- [ $# -lt 3 ] && return 1
- local name="$1"
- local path="$2"
- local priority="$3"
- remove_alt $name $path
- echo "$path $priority" >> $ad/$name
-}
-
-find_best_alt() {
- [ $# -lt 1 ] && return 1
- [ ! -f $ad/$name ] && return 0
-
- link=$OPKG_OFFLINE_ROOT/`head -n 1 $ad/$name`
-
- prio=`sed -ne "1!p" $ad/$name | sed -e "s/\(.*\) \(.*\)/\2 \1/g" | sort -nr | head -n 1 | sed 's/ [^ ]*$//'`
- if [ -z "$prio" ]; then
- echo "update-alternatives: removing $link as no more alternatives exist for it"
- rm $ad/$name
- if [ -L $link ]; then
- rm $link
- fi
- return 0
- fi
-
- ## Find last line with highest priority.
- path=`grep "${prio}$" $ad/$name | tail -n 1 | sed 's/ [^ ]*$//'`
-
- if [ ! -e $link -o -L $link ]; then
- local link_dir=`dirname $link`
- if [ ! -d $link_dir ]; then
- mkdir -p $link_dir
- fi
- if [ -h $link -a -d $link ]; then
- # If $link exists and the target is a directory,
- # 'ln -sf $path $link' doesn't replace the link to
- # that directory, it creates new link inside.
- echo "update-alternatives: Removing $link".
- rm -f $link
- fi
- ln -sf $path $link
- echo "update-alternatives: Linking $link to $path"
- else
- echo "update-alternatives: Error: not linking $link to $path since $link exists and is not a link"
- return 1
- fi
-
- return 0
-}
-
-do_install() {
- if [ $# -lt 4 ]; then
- usage "--install needs <link> <name> <path> <priority>"
- fi
- local link="$1"
- local name="$2"
- local path="$3"
- local priority="$4"
-
- path=`echo $path | sed 's|/\+|/|g'`
-
- # This is a bad hack, but I haven't thought of a cleaner solution yet...
- [ -n "$OPKG_OFFLINE_ROOT" ] && path=`echo $path | sed "s|^$OPKG_OFFLINE_ROOT/*|/|"`
-
- register_alt $name $link
- add_alt $name $path $priority
- find_best_alt $name
-}
-
-do_remove() {
- if [ $# -lt 2 ]; then
- usage "--remove needs <name> <path>"
- fi
- local name="$1"
- local path="$2"
-
- path=`echo $path | sed 's|/\+|/|g'`
-
- # This is a bad hack, but I haven't thought of a cleaner solution yet...
- [ -n "$OPKG_OFFLINE_ROOT" ] && path=`echo $path | sed "s|^$OPKG_OFFLINE_ROOT/*|/|"`
-
- remove_alt $name $path
- find_best_alt $name
-}
-
-###
-# update-alternatives "main"
-###
-
-while [ $# -gt 0 ]; do
- arg="$1"
- shift
-
- case $arg in
- --help)
- usage "help:"
- exit 0
- ;;
- --install)
- do_install $*
- exit $?
- ;;
- --remove)
- do_remove $*
- exit $?
- ;;
- *)
- usage "unknown argument \`$arg'"
- ;;
- esac
-done
-
-usage "at least one of --install or --remove must appear"
-
-exit 0
diff --git a/src/utils/Makefile.am b/src/utils/Makefile.am
deleted file mode 100644
index acac628..0000000
--- a/src/utils/Makefile.am
+++ /dev/null
@@ -1,3 +0,0 @@
-bin_SCRIPTS = update-alternatives opkg-key
-
-EXTRA_DIST = $(bin_SCRIPTS)
diff --git a/src/utils/opkg-key b/src/utils/opkg-key
deleted file mode 100755
index 266bb66..0000000
--- a/src/utils/opkg-key
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/sh
-
-# Based on apt-key from apt-0.6.25
-# Licensed under GPL Version 2
-
-set -e
-
-usage() {
- echo "Usage: opkg-key [options] command [arguments]"
- echo
- echo "Manage opkg's list of trusted keys"
- echo
- echo " opkg-key add <file> - add the key contained in <file> ('-' for stdin)"
- echo " opkg-key del <keyid> - remove the key <keyid>"
- echo " opkg-key list - list keys"
- echo
- echo "Options:"
- echo " -o <root> Use <root> as the offline root directory"
- echo
-}
-
-if [ "$1" = "-o" ]; then
- ROOT=$2
- shift 2
- echo "Note: using \"$ROOT\" as root path"
-else
- ROOT=""
-fi
-
-command="$1"
-if [ -z "$command" ]; then
- usage
- exit 1
-fi
-shift
-
-if [ "$command" != "help" ] && ! which gpg >/dev/null 2>&1; then
- echo >&2 "Warning: gnupg does not seem to be installed."
- echo >&2 "Warning: opkg-key requires gnupg for most operations."
- echo >&2
-fi
-
-# We don't use a secret keyring, of course, but gpg panics and
-# implodes if there isn't one available
-
-GPG="gpg --no-options --no-default-keyring --keyring $ROOT/etc/opkg/trusted.gpg --secret-keyring $ROOT/etc/opkg/secring.gpg --trustdb-name $ROOT/etc/opkg/trustdb.gpg"
-
-case "$command" in
- add)
- $GPG --quiet --batch --import "$1"
- echo "OK"
- ;;
- del|rm|remove)
- $GPG --quiet --batch --delete-key --yes "$1"
- echo "OK"
- ;;
- list)
- $GPG --batch --list-keys
- ;;
- finger*)
- $GPG --batch --fingerprint
- ;;
- adv*)
- echo "Executing: $GPG $*"
- $GPG $*
- ;;
- help)
- usage
- ;;
- *)
- usage
- exit 1
- ;;
-esac
diff --git a/src/utils/update-alternatives.in b/src/utils/update-alternatives.in
deleted file mode 100644
index 34d89f1..0000000
--- a/src/utils/update-alternatives.in
+++ /dev/null
@@ -1,197 +0,0 @@
-#!/bin/sh
-# update-alternatives
-#
-# Copyright (C) 2001 Carl D. Worth
-#
-# This program was inspired by the Debian update-alternatives program
-# which is Copyright (C) 1995 Ian Jackson. This version of
-# update-alternatives is command-line compatible with Debian's for a
-# subset of the options, (only --install, --remove, and --help)
-#
-# 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; either version 2, or (at your option)
-# any later version.
-#
-# 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.
-
-set -e
-
-# admin dir
-ad="$OPKG_OFFLINE_ROOT@opkglibdir@/opkg/alternatives"
-
-usage() {
- echo "update-alternatives: $*
-
-Usage: update-alternatives --install <link> <name> <path> <priority>
- update-alternatives --remove <name> <path>
- update-alternatives --help
-<link> is the link pointing to the provided path (ie. /usr/bin/foo).
-<name> is the name in $ad/alternatives (ie. foo)
-<path> is the name referred to (ie. /usr/bin/foo-extra-spiffy)
-<priority> is an integer; options with higher numbers are chosen.
-" >&2
- exit 2
-}
-
-quit() {
- echo "update-alternatives: $*" >&2
- exit 2
-}
-
-register_alt() {
- [ $# -lt 2 ] && return 1
- local name="$1"
- local link="$2"
-
- if [ ! -d $ad ]; then
- mkdir -p $ad
- fi
-
- if [ -e "$ad/$name" ]; then
- local olink=`head -n 1 $ad/$name`
- if [ "$link" != "$olink" ]; then
- echo "update-alternatives: Error: cannot register alternative $name to $link since it is already registered to $olink" >&2
- return 1
- fi
- else
- echo "$link" > "$ad/$name"
- fi
-
- return 0
-}
-
-protect_slashes() {
- sed -e 's/\//\\\//g'
-}
-
-remove_alt() {
- [ $# -lt 2 ] && return 1
- local name="$1"
- local path="$2"
-
- [ ! -f $ad/$name ] && return 0
-
- path=`echo $path | protect_slashes`
- sed -ne "/^$path\>.*/!p" $ad/$name > $ad/$name.new
- mv $ad/$name.new $ad/$name
-}
-
-add_alt() {
- [ $# -lt 3 ] && return 1
- local name="$1"
- local path="$2"
- local priority="$3"
- remove_alt $name $path
- echo "$path $priority" >> $ad/$name
-}
-
-find_best_alt() {
- [ $# -lt 1 ] && return 1
- [ ! -f $ad/$name ] && return 0
-
- link=$OPKG_OFFLINE_ROOT/`head -n 1 $ad/$name`
-
- prio=`sed -ne "1!p" $ad/$name | sed -e "s/\(.*\) \(.*\)/\2 \1/g" | sort -nr | head -n 1 | sed 's/ [^ ]*$//'`
- if [ -z "$prio" ]; then
- echo "update-alternatives: removing $link as no more alternatives exist for it"
- rm $ad/$name
- if [ -L $link ]; then
- rm $link
- fi
- return 0
- fi
-
- ## Find last line with highest priority.
- path=`grep "${prio}$" $ad/$name | tail -n 1 | sed 's/ [^ ]*$//'`
-
- if [ ! -e $link -o -L $link ]; then
- local link_dir=`dirname $link`
- if [ ! -d $link_dir ]; then
- mkdir -p $link_dir
- fi
- if [ -h $link -a -d $link ]; then
- # If $link exists and the target is a directory,
- # 'ln -sf $path $link' doesn't replace the link to
- # that directory, it creates new link inside.
- echo "update-alternatives: Removing $link".
- rm -f $link
- fi
- ln -sf $path $link
- echo "update-alternatives: Linking $link to $path"
- else
- echo "update-alternatives: Error: not linking $link to $path since $link exists and is not a link"
- return 1
- fi
-
- return 0
-}
-
-do_install() {
- if [ $# -lt 4 ]; then
- usage "--install needs <link> <name> <path> <priority>"
- fi
- local link="$1"
- local name="$2"
- local path="$3"
- local priority="$4"
-
- path=`echo $path | sed 's|/\+|/|g'`
-
- # This is a bad hack, but I haven't thought of a cleaner solution yet...
- [ -n "$OPKG_OFFLINE_ROOT" ] && path=`echo $path | sed "s|^$OPKG_OFFLINE_ROOT/*|/|"`
-
- register_alt $name $link
- add_alt $name $path $priority
- find_best_alt $name
-}
-
-do_remove() {
- if [ $# -lt 2 ]; then
- usage "--remove needs <name> <path>"
- fi
- local name="$1"
- local path="$2"
-
- path=`echo $path | sed 's|/\+|/|g'`
-
- # This is a bad hack, but I haven't thought of a cleaner solution yet...
- [ -n "$OPKG_OFFLINE_ROOT" ] && path=`echo $path | sed "s|^$OPKG_OFFLINE_ROOT/*|/|"`
-
- remove_alt $name $path
- find_best_alt $name
-}
-
-###
-# update-alternatives "main"
-###
-
-while [ $# -gt 0 ]; do
- arg="$1"
- shift
-
- case $arg in
- --help)
- usage "help:"
- exit 0
- ;;
- --install)
- do_install $*
- exit $?
- ;;
- --remove)
- do_remove $*
- exit $?
- ;;
- *)
- usage "unknown argument \`$arg'"
- ;;
- esac
-done
-
-usage "at least one of --install or --remove must appear"
-
-exit 0