-------------------
0.4.9pre24: subversion repository support for templates
+ metapkg moved to utils/
simplaret:
- new config variables:
- STORE_ROOT_PATCHES_ON_PATCHES_DIR
- SIGNATURE_CHECKING
+ - ROOT=/otherroot works for --install, --remove and --upgrade
- signature checking
- dependency checking through slack-required
mkjail:
function simplaret_get_patches {
- local jailpath oldroot
+ local jailpath
if [ "$1" == "--upgrade" ]; then
IS_UPGRADE="1"
fi
- oldroot="$ROOT"
+ if [ ! -z "$ROOT" ]; then
+ simplaret_get_jail_patches $ROOT
+ return $?
+ fi
# first get patches from the root system
simplaret_get_jail_patches
done
fi
- ROOT="$oldroot"
+ ROOT=""
}
"--purge" | "purge") shift ; simplaret_purge $* ;;
"--install" | "install") shift ; simplaret_install $* ;;
"--upgrade" | "upgrade") simplaret_get_patches --upgrade ;;
- "--remove" | "remove") removepkg $2 ;;
+ "--remove" | "remove") ROOT=/$ROOT removepkg $2 ;;
*) simplaret_usage ;;
esac
# Remeber that mkjail template == metapkg metapackage.
#
+#
+# TODO
+#
+# In the mean term, metapkg will not be developed, but the code will rest
+# until someone need it. Some ideas to think for the future of metapkg would
+# be a better integration with simplepkg structure, like:
+#
+# - By default metapkg searches by a slack-required in the package/slackbuilds repos
+# - With -f, metapkg uses a local file (template, slack-required or tagfile)
+#
+
COMMON="/usr/libexec/simplepkg/common.sh"
BASENAME="`basename $0`"
ROOT="/"