pkgsrc/comms/xisp/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

30 lines
907 B
Makefile

# $NetBSD: Makefile,v 1.28 2007/07/04 20:54:34 jlam Exp $
#
DISTNAME= xisp-2.7p1
PKGREVISION= 3
CATEGORIES= comms x11
MASTER_SITES= ${MASTER_SITE_SUNSITE:=system/network/serial/} \
http://xisp.hellug.gr/release/ \
ftp://argeas.cs-net.gr/pub/unix/linux/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://xisp.hellug.gr/
COMMENT= User-friendly X11 interface to pppd/chat
PKG_GROUPS= ${DIALER_GROUP}
PKG_GROUPS_VARS+= DIALER_GROUP
MAKE_ENV+= DIALER_GROUP="${DIALER_GROUP}"
MAKE_ENV+= VARBASE=${VARBASE:Q}
MESSAGE_SUBST+= DIALER_GROUP=${DIALER_GROUP}
# XXX TODO: maybe do MODEM_DEV also?
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xisp
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xisp/
${INSTALL_DATA} ${WRKSRC}/SECURITY ${PREFIX}/share/doc/xisp/
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/xforms/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"