blob: 930bc97ec3fd113a68fb875e3ed2c84f27ee5e51 (
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
|
# $NetBSD: Makefile,v 1.23 2007/05/13 06:59:16 agc Exp $
DISTNAME= openafs-1.4.4-src
PKGREVISION= 1
PKGNAME= ${DISTNAME:C/-src//}
CATEGORIES= net sysutils
MASTER_SITES= http://www.openafs.org/dl/openafs/1.4.4/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= gendalia@NetBSD.org
HOMEPAGE= http://www.openafs.org/
COMMENT= File system for sharing, scalability and transparent data migration
CONFLICTS+= arla-[0-9]*
CONFLICTS+= heimdal-[0-9]*
CONFLICTS+= lwp-[0-9]*
CONFLICTS+= rx-[0-9]*
GNU_CONFIGURE= yes
USE_TOOLS+= lex
CONFIGURE_ARGS+= --enable-bitmap-later
CONFIGURE_ARGS+= --enable-bos-new-config
CONFIGURE_ARGS+= --enable-fast-restart
CONFIGURE_ARGS+= --enable-largefile-fileserver
CONFIGURE_ARGS+= --disable-kernel-module
CONFIGURE_ARGS+= --enable-namei-fileserver
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
USE_GNU_CONFIGURE_HOST= no
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
PKG_SUPPORTED_OPTIONS= pam
PKG_OPTIONS_VAR= PKG_OPTIONS.openafs
RCD_SCRIPTS+= bosserver
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mpam)
CONFIGURE_ARGS+= --enable-pam
.include "../../mk/pam.buildlink3.mk"
PLIST_SRC+= ${.CURDIR}/PLIST.pam
.else
CONFIGURE_ARGS+= --disable-pam
.endif
PLIST_SRC+= ${.CURDIR}/PLIST
OWN_DIRS+= ${PKG_SYSCONFDIR}/openafs
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/openafs/server ${ROOT_USER} ${ROOT_GROUP} 775
OWN_DIRS_PERMS+= ${VARBASE}/openafs ${ROOT_USER} ${ROOT_GROUP} 770
OWN_DIRS+= ${VARBASE}/openafs/logs
OWN_DIRS_PERMS+= ${VARBASE}/openafs/db ${ROOT_USER} ${ROOT_GROUP} 700
FILES_SUBST+= HOSTNAME_CMD=${HOSTNAME_CMD:Q}
# attempt to future-proof configuration
pre-build:
cd ${WRKSRC}/src/config && for i in 40 50 60 70 80 90; do \
${SED} -e 's|nbsd20|nbsd'$$i'|g' param.i386_nbsd20.h > param.i386_nbsd$$i.h; \
${CP} param.nbsd30.h param.nbsd$$i.h; \
done
.include "../../mk/bsd.pkg.mk"
|