blob: 789396c5c6e3d1b70f3e4e50353d4e6b4777c025 (
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
|
# $NetBSD: Makefile,v 1.12 2016/04/04 12:48:29 jakllsch Exp $
DISTNAME= openafs-1.6.17-src
PKGNAME= ${DISTNAME:C/-src//}
PKGREVISION= 1
CATEGORIES= filesystems net sysutils
MASTER_SITES= http://www.openafs.org/dl/openafs/1.6.17/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= gendalia@NetBSD.org
HOMEPAGE= http://www.openafs.org/
COMMENT= File system for sharing, scalability and transparent data migration
LICENSE= ibm-public-license-1.0
PREV_PKGPATH= net/openafs
CONFLICTS+= arla-[0-9]*
CONFLICTS+= heimdal-[0-9]*
CONFLICTS+= lwp-[0-9]*
CONFLICTS+= rx-[0-9]*
MAKE_JOBS_SAFE=no
GNU_CONFIGURE= yes
USE_TOOLS+= lex
RCD_SCRIPTS+= bosserver
.include "options.mk"
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
USE_GNU_CONFIGURE_HOST= no
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
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}
BUILD_DEFS+= VARBASE
# attempt to future-proof configuration
pre-patch:
cd ${WRKSRC}/src/config && for i in 70 80 90; do \
${SED} -e 's|nbsd60|nbsd'$$i'|g' param.i386_nbsd60.h > param.i386_nbsd$$i.h; \
${SED} -e 's|nbsd60|nbsd'$$i'|g' param.amd64_nbsd60.h > param.amd64_nbsd$$i.h; \
${CP} param.nbsd60.h param.nbsd$$i.h; \
done
post-patch:
cd ${WRKSRC}/src/config && for i in 80 90; do \
${CP} param.nbsd70.h param.nbsd$$i.h; \
done
MAKE_ENV+= LD_RUN_PATH=${PREFIX}/lib
.include "../../mk/bsd.pkg.mk"
|