Codebase list mk-configure / lintian-fixes/main features / mkc_imp.f_pwdgrp.mk
lintian-fixes/main

Tree @lintian-fixes/main (Download .tar.gz)

mkc_imp.f_pwdgrp.mk @lintian-fixes/mainraw · history · blame

# Copyright (c) 2015 by Aleksey Cheusov
#
# See LICENSE file in the distribution.
.ifndef _MKC_IMP_F_PWDGRP_MK
_MKC_IMP_F_PWDGRP_MK := 1

MKC_CHECK_FUNCS2   +=	user_from_uid:pwd.h group_from_gid:grp.h \
			uid_from_user:pwd.h gid_from_group:grp.h
MKC_CHECK_FUNCLIBS +=	user_from_uid group_from_gid \
			uid_from_user gid_from_group

.include <mkc.conf.mk>

.if ${HAVE_FUNCLIB.user_from_uid:U} != 1 || ${HAVE_FUNCLIB.group_from_gid:U} != 1 || \
    ${HAVE_FUNCLIB.uid_from_user:U} != 1 || ${HAVE_FUNCLIB.gid_from_group:U} != 1
MKC_SRCS +=	${FEATURESDIR}/pwdgrp/mkc_pwdgrp.c
.endif

CPPFLAGS +=	-D_MKC_CHECK_PWDGRP

.endif #_MKC_IMP_F_PWDGRP_MK