• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/scripts/

Lines Matching refs:pkg

161 	install <pkg>		Download and install <pkg> (and dependencies)
164 remove <pkg> Remove package <pkg>
168 files <pkg> List all files belonging to <pkg>
170 info [pkg [<field>]] Display all/some info fields for <pkg> or all
171 status [pkg [<field>]] Display all/some status fields for <pkg> or all
172 depends <pkg> Print uninstalled package dependencies for <pkg>
301 local pkg="$1"
302 sed -ne "/Package:[[:space:]]*$pkg[[:space:]]*\$/,/^\$/p"
434 local pkg="$2"
435 ipkg_status_sd $sd $pkg Status | grep -q "Status: install ok installed"
450 local pkg="$2"
451 [ -n "`ipkg_status_sd $sd $pkg Status`" ]
455 local pkg="$1"
462 if [ -f $dest/$IPKG_DIR_PREFIX/info/$pkg.list ]; then
464 sed -e "s/^/$dest_sed/" < $dest/$IPKG_DIR_PREFIX/info/$pkg.list
481 local pkg="`echo $file | sed "s/^.*\/\(.*\)\.list/\1/"`"
482 [ "$dest_name" != `ipkg_dest_default_name` ] && pkg="$pkg ($dest_name)"
483 sed "s/^/$dest_sed/" $file | grep $pattern | sed "s/^/$pkg: /"
491 local pkg="$2"
497 sed -ne "/Package:[[:space:]]*$pkg[[:space:]]*\$/,/^\$/!p" < $sd/status > $sd/status.new
517 local pkg="$2"
519 ipkg_status_remove_sd $sd $pkg
529 local pkg=$1
530 local deps="`ipkg_get_depends $pkg`"
538 ## echo "ipkg_unsatisfied_dependences pkg=$pkg $remaining_deps" > /dev/console
543 local pkg=$1
544 local spkg="`echo pkg_$pkg | sed -e y/-+./___/`"
549 local pkg=$1; shift
551 pkg="`ipkg_safe_pkg_name $pkg`"
552 ## setvar ${pkg}_depends "$new_deps"
553 echo $new_deps > $IPKG_TMP/${pkg}.depends
557 local pkg=$1
558 pkg="`ipkg_safe_pkg_name $pkg`"
559 cat $IPKG_TMP/${pkg}.depends
560 ## eval "echo \$${pkg}_depends"
564 local pkg=$1
565 pkg="`ipkg_safe_pkg_name $pkg`"
566 echo installed > $IPKG_TMP/${pkg}.installed
567 ## setvar ${pkg}_installed "installed"
571 local pkg=$1
572 pkg="`ipkg_safe_pkg_name $pkg`"
573 ### echo ipkg_set_uninstalled $pkg > /dev/console
574 echo uninstalled > $IPKG_TMP/${pkg}.installed
575 ## setvar ${pkg}_installed "uninstalled"
579 local pkg=$1
580 pkg="`ipkg_safe_pkg_name $pkg`"
581 if [ -f $IPKG_TMP/${pkg}.installed ]; then
582 cat $IPKG_TMP/${pkg}.installed
584 ## eval "echo \$${pkg}_installed"
591 for pkg in $installed_pkgs; do
592 ipkg_set_installed $pkg
597 for pkg in $new_pkgs; do
598 if echo $pkg | grep -q '[^A-Za-z0-9.+-]'; then
599 echo "ipkg_depends: ERROR: Package name $pkg contains illegal characters (should be [A-Za-z0-9.+-])" >&2
603 new_deps="$new_deps "`ipkg_info $pkg '\(Pre-\)\?Depends' | ipkg_extract_value | sed -e 's/([^)]*)//g
607 ipkg_set_depends $pkg $new_deps
613 for pkg in $new_deps; do
614 if ! echo $installed_pkgs | grep -q "\<$pkg\>"; then
615 maybe_new_pkgs="$maybe_new_pkgs $pkg"
620 for pkg in $maybe_new_pkgs; do
621 if ! echo $all_deps | grep -q "\<$pkg\>"; then
622 if [ -z "`ipkg_info $pkg`" ]; then
623 echo "ipkg_depends: Warning: $pkg mentioned in dependency but no package found in $IPKG_LISTS_DIR" >&2
624 ipkg_set_installed $pkg
626 new_pkgs="$new_pkgs $pkg"
627 ipkg_set_uninstalled $pkg
630 ipkg_set_uninstalled $pkg
648 for pkg in $pkgs; do
649 if ! ipkg_status_mentioned_sd $sd $pkg; then
650 echo "Package: $pkg
651 Status: install ok not-installed" | ipkg_status_update_sd $sd $pkg
655 for pkg in $requested_pkgs; do ipkg_set_uninstalled $pkg; done
662 for pkg in $pkgs; do
664 local is_installed="`ipkg_get_installed $pkg`"
666 echo "$pkg is installed"
670 local remaining_deps="`ipkg_unsatisfied_dependences $pkg`"
672 new_pkgs="$new_pkgs $pkg"
673 ### echo "Dependences not satisfied for $pkg: $remaining_deps"
682 filename="`ipkg_extract_paragraph $pkg < $IPKG_LISTS_DIR/$src | ipkg_extract_field Filename | ipkg_extract_value`"
688 echo "ipkg_get_install: ERROR: Cannot find package $pkg in $IPKG_LISTS_DIR"
690 ipkg_status_remove_sd $sd $pkg
706 ipkg_set_installed $pkg
738 local pkg="`ipkg_file_part $filename | sed 's/\([a-z0-9.+-]\+\)_.*/\1/'`"
751 local depends="`ipkg_depends $pkg | sed -e "s/\<$pkg\>//"`"
763 echo "ipkg_install_file: Warning: $pkg depends on the following uninstalled programs: $missing_deps"
765 echo "ipkg_install_file: ERROR: $pkg depends on the following uninstalled programs:
772 mkdir -p $IPKG_TMP/$pkg/control
773 mkdir -p $IPKG_TMP/$pkg/data
776 if ! $pkg_extract_stdout $filename ./control.tar.gz | (cd $IPKG_TMP/$pkg/control; zcat | tar -xf - ) ; then
782 if grep -q '^InstallsOffline:[[:space:]]*no' $IPKG_TMP/$pkg/control/control; then
783 echo "*** Warning: Package $pkg may not be installed in offline mode"
785 echo "Package: $pkg
786 Status: install ok pending" | ipkg_status_update_sd $sd $pkg
789 rm -r $IPKG_TMP/$pkg/control
790 rm -r $IPKG_TMP/$pkg/data
791 rmdir $IPKG_TMP/$pkg
797 printf "Unpacking $pkg..."
799 for file in $IPKG_TMP/$pkg/control/*; do
801 mv $file $info_dir/$pkg.$base_file
804 rm -r $IPKG_TMP/$pkg/control
806 if ! $pkg_extract_stdout $filename ./data.tar.gz | (cd $IPKG_TMP/$pkg/data; zcat | tar -xf - ) ; then
812 printf "Configuring $pkg..."
814 if [ -x "$info_dir/$pkg.preinst" ]; then
815 if ! $info_dir/$pkg.preinst install; then
816 echo "$info_dir/$pkg.preinst failed. Aborting installation of $pkg"
817 rm -rf $IPKG_TMP/$pkg/data
818 rmdir $IPKG_TMP/$pkg
823 local old_conffiles="`ipkg_status_sd $sd $pkg Conffiles | ipkg_extract_value`"
825 if [ -f "$info_dir/$pkg.conffiles" ]; then
826 for conffile in `cat $info_dir/$pkg.conffiles`; do
848 diff -u $dest/$conffile $IPKG_TMP/$pkg/data/$conffile"
849 diff -u $dest/$conffile $IPKG_TMP/$pkg/data/$conffile || true
860 local md5sum="`md5sum $IPKG_TMP/$pkg/data/$conffile | sed 's/ .*//'`"
864 rm $IPKG_TMP/$pkg/data/$conffile
867 md5sum="`md5sum $IPKG_TMP/$pkg/data/$conffile | sed 's/ .*//'`"
874 (cd $IPKG_TMP/$pkg/data/; tar cf - . | (cd $owd; cd $dest; tar xf -))
875 rm -rf $IPKG_TMP/$pkg/data
876 rmdir $IPKG_TMP/$pkg
877 rm -f $info_dir/$pkg.list
878 $pkg_extract_stdout $filename ./data.tar.gz | zcat | tar tf - | sed -e '/\/$/d; s/^\.//' > $info_dir/$pkg.list
880 if [ -x "$info_dir/$pkg.postinst" ]; then
881 $info_dir/$pkg.postinst configure
892 ${new_conffiles}/" $info_dir/$pkg.control | ipkg_status_update_sd $sd $pkg
894 rm -f $info_dir/$pkg.control
895 rm -f $info_dir/$pkg.conffiles
896 rm -f $info_dir/$pkg.preinst
897 rm -f $info_dir/$pkg.postinst
908 local pkg="$1"
911 case "$pkg" in
913 local tmp_pkg_file="$IPKG_TMP/"`ipkg_file_part $pkg`
914 if ipkg_download $pkg $tmp_pkg_file; then
920 local ipkg_filename="`echo $pkg|sed 's/^file://'`"
924 ipkg_install_file $pkg
927 ipkg_get_install $pkg || true
979 local pkg="$1"
980 local avail_ver="`ipkg_info $pkg Version | ipkg_extract_value | head -n 1`"
986 local inst_ver="`ipkg_status_sd $sd $pkg Version | ipkg_extract_value`"
991 echo "Assuming locally installed package $pkg ($inst_ver) is up to date"
996 echo "Package $pkg ($inst_ver) installed in $dest_name is up to date"
998 echo "Upgrading $pkg ($dest_name) from $inst_ver to $avail_ver"
999 ipkg_get_install_dest $dest $pkg
1001 echo "Not downgrading package $pkg from $inst_ver to $avail_ver"
1007 echo "Package $pkg does not appear to be installed"
1020 for pkg in $pkgs; do
1021 ipkg_upgrade_pkg $pkg
1027 local pkg="$2"
1031 if ! ipkg_status_installed_sd $sd $pkg; then
1032 echo "ipkg_remove: Package $pkg does not appear to be installed in $dest"
1033 if ipkg_status_mentioned_sd $sd $pkg; then
1034 echo "Purging mention of $pkg from the ipkg database"
1035 ipkg_status_remove_sd $sd $pkg
1040 echo "ipkg_remove: Removing $pkg... "
1042 local files="`cat $info_dir/$pkg.list`"
1045 if [ -x "$info_dir/$pkg.prerm" ]; then
1046 $info_dir/$pkg.prerm remove
1049 local conffiles="`ipkg_status_sd $sd $pkg Conffiles | ipkg_extract_value`"
1085 if [ -x "$info_dir/$pkg.postrm" ]; then
1086 $info_dir/$pkg.postrm remove
1089 ipkg_status_remove_sd $sd $pkg
1091 rm -f $info_dir/$pkg.*
1098 local pkg="$1"
1101 if ipkg_status_mentioned_sd $sd $pkg; then
1102 ipkg_remove_pkg_dest $dest $pkg
1109 local pkg="$1"
1112 ipkg_remove_pkg_dest $IPKG_ROOT $pkg
1114 ipkg_remove_pkg $pkg