blob: fb274ce0396439739c4eeb6691af663c9b309192 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# $NetBSD: Makefile,v 1.13 2005/12/29 06:21:38 jlam Exp $
#
DISTNAME= monotone-server-0.24
CATEGORIES= devel
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= jmmv@NetBSD.org
HOMEPAGE= http://www.venge.net/monotone/
COMMENT= Simplifies the configuration of a dedicated Monotone server
DEPENDS+= monotone>=0.24:../../devel/monotone
EXTRACT_ONLY= # empty
NO_BUILD= yes
NO_CHECKSUM= yes
WRKSRC= ${WRKDIR}
RCD_SCRIPTS= monotone
PKG_SYSCONFSUBDIR= monotone-server
BUILD_DEFS+= MONOTONE_GROUP MONOTONE_USER
EXAMPLEDIR= ${PREFIX}/share/examples/monotone-server
CONF_FILES_PERMS= ${EXAMPLEDIR}/branches.conf \
${PKG_SYSCONFDIR}/branches.conf \
${MONOTONE_USER} ${MONOTONE_GROUP} 600
CONF_FILES_PERMS+= ${EXAMPLEDIR}/hooks.conf \
${PKG_SYSCONFDIR}/hooks.conf \
${MONOTONE_USER} ${MONOTONE_GROUP} 600
PKG_USERS= ${MONOTONE_USER}:${MONOTONE_GROUP}::Monotone\ dedicated\ server:${VARBASE}/monotone:${SH}
PKG_GROUPS= ${MONOTONE_GROUP}
SUBST_CLASSES+= vars
SUBST_STAGE.vars= do-configure
SUBST_MESSAGE.vars= "Configuring sources."
SUBST_FILES.vars= *
SUBST_SED.vars= -e 's|@MONOTONE@|${PREFIX}/bin/monotone|g'
SUBST_SED.vars+= -e 's|@MONOTONE_GROUP@|${MONOTONE_GROUP}|g'
SUBST_SED.vars+= -e 's|@MONOTONE_USER@|${MONOTONE_USER}|g'
SUBST_SED.vars+= -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g'
SUBST_SED.vars+= -e 's|@SH@|${SH}|g'
SUBST_SED.vars+= -e 's|@VARBASE@|${VARBASE}|g'
FILES_SUBST+= MONOTONE_GROUP=${MONOTONE_GROUP:Q}
FILES_SUBST+= MONOTONE_USER=${MONOTONE_USER:Q}
INSTALLATION_DIRS= sbin
do-extract:
.for f in branches.conf hooks.conf monotone-server-init.sh
${CP} ${FILESDIR}/${f} ${WRKSRC}
.endfor
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/monotone-server-init.sh \
${PREFIX}/sbin/monotone-server-init
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/branches.conf ${EXAMPLEDIR}/branches.conf
${INSTALL_DATA} ${WRKSRC}/hooks.conf ${EXAMPLEDIR}/hooks.conf
.include "../../mk/bsd.pkg.mk"
|