xbps-src: added new var 'system_groups' for pkgs requiring new system groups.
This commit is contained in:
parent
809bb752fa
commit
2168077d11
|
@ -54,10 +54,10 @@ xbps_write_metadata_pkg()
|
|||
fi
|
||||
setup_tmpl ${sourcepkg}
|
||||
unset run_depends conf_files noarch triggers replaces \
|
||||
revision openrc_services system_accounts \
|
||||
revision openrc_services system_accounts system_groups \
|
||||
preserve keep_empty_dirs xml_entries sgml_entries \
|
||||
xml_catalogs sgml_catalogs gconf_entries gconf_schemas \
|
||||
gtk_iconcache_dirs font_dirs
|
||||
gtk_iconcache_dirs font_dirs dkms_modules
|
||||
. $XBPS_SRCPKGDIR/${sourcepkg}/${subpkg}.template
|
||||
pkgname=${subpkg}
|
||||
set_tmpl_common_vars
|
||||
|
@ -303,9 +303,9 @@ _EOF
|
|||
fi
|
||||
|
||||
#
|
||||
# If package sets $system_accounts, add shadow rundep.
|
||||
# If package sets $system_accounts or $system_groups, add shadow rundep.
|
||||
#
|
||||
if [ -n "$system_accounts" ]; then
|
||||
if [ -n "$system_accounts" -o -n "$system_groups" ]; then
|
||||
Add_dependency run shadow
|
||||
fi
|
||||
|
||||
|
|
|
@ -92,6 +92,13 @@ _EOF
|
|||
echo "export openrc_services=\"${openrc_services}\"" >> $tmpf
|
||||
fi
|
||||
|
||||
#
|
||||
# Handle system groups.
|
||||
#
|
||||
if [ -n "${system_groups}" ]; then
|
||||
_add_trigger system-accounts
|
||||
echo "export system_groups=\"${system_groups}\"" >> $tmpf
|
||||
fi
|
||||
#
|
||||
# Handle system accounts.
|
||||
#
|
||||
|
@ -118,7 +125,6 @@ _EOF
|
|||
unset homedir shell descr groups
|
||||
done
|
||||
fi
|
||||
|
||||
#
|
||||
# Handle GNU Info files.
|
||||
#
|
||||
|
|
|
@ -74,7 +74,8 @@ reset_tmpl_vars()
|
|||
only_for_archs conf_files keep_libtool_archives \
|
||||
noarch subpackages sourcepkg gtk_iconcache_dirs \
|
||||
abi_depends api_depends triggers openrc_services \
|
||||
replaces system_accounts build_wrksrc create_wrksrc \
|
||||
replaces system_accounts system_groups \
|
||||
build_wrksrc create_wrksrc \
|
||||
ignore_vdeps_dir noverifyrdeps conflicts dkms_modules \
|
||||
gconf_entries gconf_schemas stow_copy stow_copy_files \
|
||||
pre_remove post_remove post_stow do_build do_install \
|
||||
|
|
Loading…
Reference in New Issue
Block a user