From 5d95da2067399fcd3678ec012b81ca23bf0e0d79 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 19 Dec 2009 04:58:25 +0100 Subject: [PATCH] metadata.sh: fix scripts in subpkgs, add shadow rundep if $system_accounts set. --HG-- extra : convert_revision : 80e31c482ea3fd6c3ed91a6758a09c54820efcd5 --- xbps-src/shutils/metadata.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xbps-src/shutils/metadata.sh b/xbps-src/shutils/metadata.sh index 02bfc2729c6..112b2147d5e 100644 --- a/xbps-src/shutils/metadata.sh +++ b/xbps-src/shutils/metadata.sh @@ -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 "essential" >> $TMPFPROPS