version 1.12, 2021/10/17 20:29:01 |
version 1.13, 2021/10/17 20:49:16 |
|
|
|
|
while read c g; do |
while read c g; do |
case $c in |
case $c in |
@cwd) cwd=$g |
@cwd) cwd="${DESTDIR}/$g" |
;; |
;; |
@*) continue |
@*) continue |
;; |
;; |
|
|
# TODO: Add some details about the install to +CONTENTS like pkg_add |
# TODO: Add some details about the install to +CONTENTS like pkg_add |
# TODO: Or, maybe we save the firmware someplace and make pkg_add reinstall |
# TODO: Or, maybe we save the firmware someplace and make pkg_add reinstall |
echo "Installing $_f" |
echo "Installing $_f" |
tar -zxphf "$_tmpsrc/$_f" -C /etc "firmware/*" |
tar -zxphf "$_tmpsrc/$_f" -C "${DESTDIR}/etc" "firmware/*" |
mkdir -p ${PKGDIR}/${_f%.tgz}/ |
mkdir -p ${PKGDIR}/${_f%.tgz}/ |
tar -zxphf "$_tmpsrc/$_f" -C "${PKGDIR}/${_f%.tgz}" "+*" |
tar -zxphf "$_tmpsrc/$_f" -C "${PKGDIR}/${_f%.tgz}" "+*" |
ed -s "${PKGDIR}/${_f%.tgz}/+CONTENTS" <<EOL |
ed -s "${PKGDIR}/${_f%.tgz}/+CONTENTS" <<EOL |