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.
28 lines
715 B
Makefile
28 lines
715 B
Makefile
# $NetBSD: Makefile,v 1.16 2007/07/04 20:54:49 jlam Exp $
|
|
|
|
DISTNAME= howl-1.0.0
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://www.porchdogsoft.com/download/
|
|
|
|
MAINTAINER= nathanw@NetBSD.org
|
|
HOMEPAGE= http://www.porchdogsoft.com/products/howl/
|
|
COMMENT= Zeroconf (Rendezvous) implementation
|
|
|
|
USE_TOOLS+= pkg-config
|
|
USE_LIBTOOL= yes
|
|
GNU_CONFIGURE= yes
|
|
PTHREAD_AUTO_VARS= yes
|
|
|
|
RCD_SCRIPTS= howl
|
|
PKG_GROUPS+= ${HOWL_GROUP}
|
|
PKG_USERS+= ${HOWL_USER:Q}:${HOWL_GROUP:Q}
|
|
PKG_GECOS.${HOWL_USER}= Zeroconf user
|
|
|
|
PKG_GROUPS_VARS+= HOWL_GROUP
|
|
PKG_USERS_VARS+= HOWL_USER
|
|
|
|
FILES_SUBST+= HOWL_GROUP=${HOWL_GROUP:Q}
|
|
FILES_SUBST+= HOWL_USER=${HOWL_USER:Q}
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|