Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 702624 | Differences between
and this patch

Collapse All | Expand All

(-)a/eclass/acct-group.eclass (-1 / +15 lines)
Lines 80-86 S=${WORKDIR} Link Here
80
80
81
81
82
# << Phase functions >>
82
# << Phase functions >>
83
EXPORT_FUNCTIONS pkg_pretend pkg_preinst
83
EXPORT_FUNCTIONS pkg_pretend src_install pkg_preinst
84
84
85
# @FUNCTION: acct-group_pkg_pretend
85
# @FUNCTION: acct-group_pkg_pretend
86
# @DESCRIPTION:
86
# @DESCRIPTION:
Lines 116-121 acct-group_pkg_pretend() { Link Here
116
	fi
116
	fi
117
}
117
}
118
118
119
# @FUNCTION: acct-group_src_install
120
# @DESCRIPTION:
121
# Installs sysusers.d file for the group.
122
acct-group_src_install() {
123
	debug-print-function ${FUNCNAME} "${@}"
124
125
	insinto /usr/lib/sysusers.d
126
	newins - ${CATEGORY}-${ACCT_GROUP_NAME}.conf < <(
127
		printf "g\t%q\t%q\n" \
128
			"${ACCT_GROUP_NAME}" \
129
			"${ACCT_GROUP_ID/#-*/-}"
130
	)
131
}
132
119
# @FUNCTION: acct-group_pkg_preinst
133
# @FUNCTION: acct-group_pkg_preinst
120
# @DESCRIPTION:
134
# @DESCRIPTION:
121
# Creates the group if it does not exist yet.
135
# Creates the group if it does not exist yet.
(-)a/eclass/acct-user.eclass (-2 / +16 lines)
Lines 312-318 acct-user_pkg_pretend() { Link Here
312
# @FUNCTION: acct-user_src_install
312
# @FUNCTION: acct-user_src_install
313
# @DESCRIPTION:
313
# @DESCRIPTION:
314
# Installs a keep-file into the user's home directory to ensure it is
314
# Installs a keep-file into the user's home directory to ensure it is
315
# owned by the package.
315
# owned by the package, and sysusers.d file.
316
acct-user_src_install() {
316
acct-user_src_install() {
317
	debug-print-function ${FUNCNAME} "${@}"
317
	debug-print-function ${FUNCNAME} "${@}"
318
318
Lines 321-326 acct-user_src_install() { Link Here
321
		# created yet
321
		# created yet
322
		keepdir "${ACCT_USER_HOME}"
322
		keepdir "${ACCT_USER_HOME}"
323
	fi
323
	fi
324
325
	insinto /usr/lib/sysusers.d
326
	newins - ${CATEGORY}-${ACCT_USER_NAME}.conf < <(
327
		printf "u\t%q\t%q\t%q\t%q\t%q\n" \
328
			"${ACCT_USER_NAME}" \
329
			"${ACCT_USER_ID/#-*/-}:${ACCT_USER_GROUPS[0]}" \
330
			"${DESCRIPTION//[:,=]/;}" \
331
			"${ACCT_USER_HOME}" \
332
			"${ACCT_USER_SHELL/#-*/-}"
333
		if [[ ${#ACCT_USER_GROUPS[@]} -gt 1 ]]; then
334
			printf "m\t%q\t%q\n" \
335
				"${ACCT_USER_NAME}" \
336
				"${ACCT_USER_GROUPS[@]:1}"
337
		fi
338
	)
324
}
339
}
325
340
326
# @FUNCTION: acct-user_pkg_preinst
341
# @FUNCTION: acct-user_pkg_preinst
327
- 

Return to bug 702624