4390d56940
the owner of all installed files is a non-root user. This change affects most packages that require special users or groups by making them use the specified unprivileged user and group instead. (1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to unprivileged.mk. These two variables are lists of other bmake variables that define package-specific users and groups. Packages that have user-settable variables for users and groups, e.g. apache and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP}, etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER} and ${UNPRIVILEGED_GROUP}. (2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
51 lines
1.5 KiB
Makefile
51 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.56 2007/07/04 20:54:34 jlam Exp $
|
|
|
|
DISTNAME= minicom-2.1
|
|
PKGREVISION= 3
|
|
CATEGORIES= comms
|
|
MASTER_SITES= http://alioth.debian.org/download.php/123/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://alioth.debian.org/projects/minicom/
|
|
COMMENT= MS-DOS Telix serial communication program "workalike"
|
|
|
|
DEPENDS+= gkermit-[0-9]*:../../comms/gkermit
|
|
DEPENDS+= lrzsz-[0-9]*:../../comms/lrzsz
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
USE_TOOLS+= gmake msgfmt
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
|
|
PKG_SYSCONFSUBDIR= minicom
|
|
EGDIR= ${PREFIX}/share/examples/minicom
|
|
|
|
PKG_GROUPS= ${DIALER_GROUP}
|
|
PKG_USERS= ${UUCP_USER}:${UUCP_GROUP}
|
|
|
|
PKG_GROUPS_VARS+= DIALER_GROUP UUCP_GROUP
|
|
PKG_USERS_VARS+= UUCP_USER
|
|
|
|
SPECIAL_PERMS= ${PREFIX}/bin/minicom ${UUCP_USER} ${DIALER_GROUP} 4555
|
|
OWN_DIRS_PERMS= ${PKG_SYSCONFDIR} ${UUCP_USER} ${DIALER_GROUP} 0755
|
|
CONF_FILES_PERMS= ${EGDIR}/minicom.users ${PKG_SYSCONFDIR}/minicom.users \
|
|
${UUCP_USER} ${DIALER_GROUP} 0644
|
|
|
|
EVAL_PREFIX+= GKERMIT_PREFIX=gkermit
|
|
EVAL_PREFIX+= LRZSZ_PREFIX=lrzsz
|
|
|
|
SUBST_CLASSES+= minicom
|
|
SUBST_MESSAGE.minicom= Fixing hardcoded paths.
|
|
SUBST_STAGE.minicom= post-patch
|
|
SUBST_FILES.minicom= src/rwconf.c
|
|
SUBST_VARS.minicom= PREFIX GKERMIT_PREFIX LRZSZ_PREFIX
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/minicom.users ${EGDIR}
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|