116d562364
pkglint -Wall -F --only aligned --only indent -r No manual corrections.
60 lines
1.7 KiB
Makefile
60 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.18 2019/11/03 19:26:21 rillig Exp $
|
|
|
|
DISTNAME= openafs-1.6.21-src
|
|
PKGNAME= ${DISTNAME:C/-src//}
|
|
CATEGORIES= filesystems net sysutils
|
|
MASTER_SITES= http://www.openafs.org/dl/openafs/1.6.21/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= gendalia@NetBSD.org
|
|
HOMEPAGE= http://www.openafs.org/
|
|
COMMENT= File system for sharing, scalability and transparent data migration
|
|
LICENSE= ipl-1.0 AND mit AND modified-bsd # AND sun-rpc?
|
|
|
|
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 ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 775
|
|
OWN_DIRS_PERMS+= ${VARBASE}/openafs ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 770
|
|
OWN_DIRS+= ${VARBASE}/openafs/logs
|
|
OWN_DIRS_PERMS+= ${VARBASE}/openafs/db ${REAL_ROOT_USER} ${REAL_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:
|
|
${CP} ${WRKSRC}/src/config/param.armv6_nbsd80.h ${WRKSRC}/src/config/param.armv7_nbsd80.h
|
|
|
|
MAKE_ENV+= LD_RUN_PATH=${PREFIX}/lib
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|