metadata.sh: fix scripts in subpkgs, add shadow rundep if $system_accounts set.

--HG--
extra : convert_revision : 80e31c482ea3fd6c3ed91a6758a09c54820efcd5
This commit is contained in:
Juan RP 2009-12-19 04:58:25 +01:00
parent a88cee9039
commit 5d95da2067
1 changed files with 9 additions and 1 deletions

View File

@ -54,7 +54,8 @@ xbps_write_metadata_pkg()
fi
setup_tmpl ${sourcepkg}
unset run_depends conf_files noarch triggers replaces \
revision openrc_services essential keep_empty_dirs
revision openrc_services system_accounts essential \
preserve keep_empty_dirs
. $XBPS_SRCPKGDIR/${sourcepkg}/${subpkg}.template
pkgname=${subpkg}
set_tmpl_common_vars
@ -281,6 +282,13 @@ _EOF
Add_dependency run OpenRC
fi
#
# If package sets $system_accounts, add shadow rundep.
#
if [ -n "$system_accounts" ]; then
Add_dependency run shadow
fi
# Is this an essential pkg?
if [ -n "$essential" ]; then
echo "<key>essential</key>" >> $TMPFPROPS