summaryrefslogtreecommitdiff
path: root/net/mldonkey/Makefile
blob: 8a4dc9afb363c6697f401051725a3d9c157281bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# $NetBSD: Makefile,v 1.26 2004/12/28 02:47:47 reed Exp $
#

.include "Makefile.common"

PKGREVISION=		4

USE_PKGINSTALL=		YES

CONFIGURE_ARGS+=	--disable-gui

RCD_SCRIPTS=		mldonkey

BUILD_DEFS+=		MLDONKEY_GROUP MLDONKEY_HOME MLDONKEY_USER

OWN_DIRS_PERMS=		${MLDONKEY_HOME} ${MLDONKEY_USER} ${MLDONKEY_GROUP} 0700

PKG_GROUPS=		${MLDONKEY_GROUP}
PKG_USERS=		${MLDONKEY_USER}:${MLDONKEY_GROUP}::Dedicated\\ mldonkey\\ server:${MLDONKEY_HOME}:${SH}

FILES_SUBST+=		MLDONKEY_GROUP="${MLDONKEY_GROUP}"
FILES_SUBST+=		MLDONKEY_HOME="${MLDONKEY_HOME}"
FILES_SUBST+=		MLDONKEY_USER="${MLDONKEY_USER}"

do-install:
	${INSTALL_PROGRAM_DIR} ${PREFIX}/libexec/mldonkey
	${INSTALL_PROGRAM} ${WRKSRC}/mlnet ${PREFIX}/libexec/mldonkey

.include "../../mk/bsd.pkg.mk"