if [ "$avail_ver" = "$inst_ver" ]; then
echo "Package $pkg ($inst_ver) installed in $dest_name is up to date"
- elif ipkg-compare-versions $avail_ver '>>' $inst_ver; then
+ elif opkg-compare-versions $avail_ver '>>' $inst_ver; then
echo "Upgrading $pkg ($dest_name) from $inst_ver to $avail_ver"
ipkg_get_install_dest $dest $pkg
else
#!/bin/sh
-# ipkg-build -- construct a .ipk from a directory
+# opkg-build -- construct a .ipk from a directory
# Carl Worth <cworth@east.isi.edu>
# based on a script by Steve Redler IV, steve@sr-tech.com 5-21-2001
# 2003-04-25 rea@sr.unh.edu
version=1.0
-ipkg_extract_value() {
+opkg_extract_value() {
sed -e "s/^[^:]*:[[:space:]]*//"
}
required_field() {
field=$1
- value=`grep "^$field:" < $CONTROL/control | ipkg_extract_value`
+ value=`grep "^$field:" < $CONTROL/control | opkg_extract_value`
if [ -z "$value" ]; then
echo "*** Error: $CONTROL/control is missing field $field" >&2
return 1
disallowed_field() {
field=$1
- value=`grep "^$field:" < $CONTROL/control | ipkg_extract_value`
+ value=`grep "^$field:" < $CONTROL/control | opkg_extract_value`
if [ -n "$value" ]; then
echo "*** Error: $CONTROL/control contains disallowed field $field" >&2
return 1
bad_fields=`echo $bad_fields`
echo "*** Error: The following fields in $CONTROL/control are missing a ':'" >&2
echo " $bad_fields" >&2
- echo "ipkg-build: This may be due to a missing initial space for a multi-line field value" >&2
+ echo "opkg-build: This may be due to a missing initial space for a multi-line field value" >&2
PKG_ERROR=1
fi
}
###
-# ipkg-build "main"
+# opkg-build "main"
###
ogargs=""
outer=ar
if ! pkg_appears_sane $pkg_dir; then
echo >&2
- echo "ipkg-build: Please fix the above errors and try again." >&2
+ echo "opkg-build: Please fix the above errors and try again." >&2
exit 1
fi
PR = "r15"
SRC_URI = "file://stage-manager \
- file://stage-manager-ipkg \
- file://stage-manager-ipkg-build "
+ file://stage-manager-opkg \
+ file://stage-manager-opkg-build "
LICENSE = "GPLv2"
PACKAGE_ARCH = "all"
do_install() {
install -d ${STAGING_BINDIR}
install -m 0755 ${WORKDIR}/stage-manager ${STAGING_BINDIR}
- install -m 0755 ${WORKDIR}/stage-manager-ipkg ${STAGING_BINDIR}
- install -m 0755 ${WORKDIR}/stage-manager-ipkg-build ${STAGING_BINDIR}
+ install -m 0755 ${WORKDIR}/stage-manager-opkg ${STAGING_BINDIR}
+ install -m 0755 ${WORKDIR}/stage-manager-opkg-build ${STAGING_BINDIR}
}