Lines Matching refs:pkg

141 pkg=""
183 echo >&2 "${ERROR}binary pkg directory ${binpkgdir} does not exist"
202 pkg="$2"
214 echo "Making PLIST for \"${pkg}\" package (part of ${pkgset} set)"
219 "${pkgset}" "${pkg}" \
225 echo >&2 "${ERROR}makeplist reported errors for ${pkg}:"
296 tinyvers="$(${AWK} '$1 ~ '/"${pkg}"/' { print $2 }' \
398 echo "${pkg} - ${t} version using ${method} method"
503 # If we are using the OS version as part of the pkg
523 # If the prerequisite pkg is already registered (as it should be
527 ${AWK} '$1 ~ '/"${pkg}"/' { print $2 }' "${rundir}/deps" | ${SORT} | \
530 # any version of a pkg. ${pkgdep} uses the special syntax
531 # for pkg dependencies, and is not usable as a shell
540 echo >&2 "${WARNING}${pkg} depends on '${pkgdep}' but there is no matching syspkg in ${SYSPKG_DB_TOPDIR}"
543 echo >&2 "${ERRWARN}${pkg} depends on '${pkgdep}' but there are multiple matching syspkgs in ${SYSPKG_DB_TOPDIR}"
566 comment="$(${AWK} '$1 ~ '/"${pkg}"/' \
570 "") echo >&2 "${WARNING}no comment for \"${pkg}\" (using placeholder)"
571 comment="System package for ${pkg}"
574 echo >&2 "${ERRWARN}multi-line comment for \"${pkg}\""
581 descr="$(${AWK} '$1 ~ '/"${pkg}"/' {
585 "") echo >&2 "${WARNING}no description for \"${pkg}\" (re-using comment)" 2>&1
613 attrs="$(${AWK} '$1 ~ '/"${pkg}"/' { \
620 echo "${pkg}-${t}" >"${SYSPKG_DB_SUBDIR}/+PRESERVE"
636 echo "@name ${pkg}-${t}"
657 # work around a pkg-add bug (see
658 # <http://mail-index.NetBSD.org/tech-pkg/2003/12/11/0018.html>)
708 ${AWK} '{print $1 "\t" "'"${pkg}-${t}"'"}' <"${dblist}" \
713 echo "Registered ${pkg}-${t} in ${SYSPKG_DB_TOPDIR}"
715 echo "Registered ${pkg}-${t}"
724 # The output file is ${binpkgdir}/${pkg}-${t}.tgz.
845 which should be part of the ${pkg} syspkg:
855 should be in the ${pkg} syspkg, but something is wrong:
920 # A function to delete db entries referring to any version of ${pkg}
926 | ${AWK} -F "${tab}" '$2 ~ /^'"${pkg}"'-[0-9]/ { print $1 }' \
931 # A function to delete any old version of ${pkg}
934 pattern="${pkg}-[0-9]*"
937 echo >&2 "${NOTE}deleting old pkg (${matches})"
943 # Check whether another version of ${pkg} is already registered.
944 pattern="${pkg}-[0-9]*"
948 "${pkg}-${t}") ;; # exact match
949 *) echo >&2 "${ERRWARNNOTE}another version of ${pkg} is already registered"
951 ${verbose} && echo >&2 " (while registering ${pkg}-${t})"
957 # Check whether the desired version of ${pkg} is already registered,
960 echo >&2 "${ERRWARNNOTE}${pkg}-${t} is already registered"
968 # than all files in the pkg, then do nothing.
969 # Else delete and re-register the pkg.
978 echo >&2 "${NOTE}some files are newer but pkg version is unchanged"
985 # No files in the pkg? (This could happen
986 # if a pkg contains only directories.)
987 # Do nothing (keep the already-registered pkg).
999 # do_create_syspkg_tgz() creates the binary pkg (*.tgz) if
1011 echo >&2 "${ERRWARNNOTE}deleting and re-creating ${pkg}-${t}.tgz"
1016 # Check whether another version of ${pkg} already exists.
1017 pattern="${pkg}-[0-9]*"
1021 "${pkg}-${t}.tgz") ;; # exact match
1022 *) echo >&2 "${ERRWARNNOTE}another version of ${pkg} binary pkg already exists"
1024 ${verbose} && echo >&2 " (while creating ${pkg}-${t}.tgz)"
1030 echo >&2 "${NOTE}deleting old binary pkg (${matches})"
1036 # Check whether the desired version of ${pkg} already exists,
1039 echo >&2 "${ERRWARNNOTE}${pkg}-${t}.tgz already exists"
1069 SYSPKG_DB_SUBDIR="${SYSPKG_DB_TOPDIR}/${pkg}-${t}"
1072 binpkgfile="${binpkgdir}/${pkg}-${t}.tgz"