pkgsrc/inputmethod/ja-freewnn-server-bin/Makefile
jlam 4390d56940 Make it easier to build and install packages "unprivileged", where
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.
2007-07-04 20:54:31 +00:00

35 lines
844 B
Makefile

# $NetBSD: Makefile,v 1.16 2007/07/04 20:54:40 jlam Exp $
#
PKGNAME= ja-FreeWnn-server-bin-1.10
PKGREVISION= 5
CATEGORIES= japanese inputmethod
MAINTAINER= tech-pkg-ja@jp.NetBSD.org
HOMEPAGE= http://www.freewnn.org/
COMMENT= Japanese/Chinese/Korean input method (Japanese server binary)
WNNDIR= Wnn
WNN_TARGET= SERVER
WNN_LANG= ja_JP
FILESDIR= ${.CURDIR}/../ja-freewnn-lib/files
DISTINFO_FILE= ${.CURDIR}/../ja-freewnn-lib/distinfo
PATCHDIR= ${.CURDIR}/../ja-freewnn-lib/patches
RCD_SCRIPTS= ja_freewnn
.include "../../mk/bsd.prefs.mk"
FREEWNN_USER?= wnn
FREEWNN_GROUP?= jserver
PKG_GROUPS= ${FREEWNN_GROUP}
PKG_USERS= ${FREEWNN_USER}:${FREEWNN_GROUP}
PKG_GROUPS_VARS+= FREEWNN_GROUP
PKG_USERS_VARS+= FREEWNN_USER
.include "../../inputmethod/ja-freewnn-lib/buildlink3.mk"
.include "../../inputmethod/ja-freewnn-lib/Makefile.common"